Skip to content

Firefly III: a personal finances manager

Code cleanup.

James Cole4a88e241b504
diff --git a/app/Repositories/Account/AccountRepository.php b/app/Repositories/Account/AccountRepository.php
index a49ecad462..7a5495e338 100644
--- a/app/Repositories/Account/AccountRepository.php
+++ b/app/Repositories/Account/AccountRepository.php
@@ -45,7 +45,6 @@ class AccountRepository implements AccountRepositoryInterface
*/
public function __construct(User $user)
{
- Log::debug('Constructed account repository for user #' . $user->id . ' (' . $user->email . ')');
$this->user = $user;
}
diff --git a/app/Repositories/Attachment/AttachmentRepository.php b/app/Repositories/Attachment/AttachmentRepository.php
index 7cae0ed4ec..8ce7d08524 100644
--- a/app/Repositories/Attachment/AttachmentRepository.php
+++ b/app/Repositories/Attachment/AttachmentRepository.php
@@ -6,7 +6,6 @@ namespace FireflyIII\Repositories\Attachment;
use FireflyIII\Models\Attachment;
use FireflyIII\User;
use Illuminate\Support\Collection;
-use Log;
/**
* Class AttachmentRepository
@@ -25,7 +24,6 @@ class AttachmentRepository implements AttachmentRepositoryInterface
*/
public function __construct(User $user)
{
- Log::debug('Constructed attachment repository for user #' . $user->id . ' (' . $user->email . ')');
$this->user = $user;
}
diff --git a/app/Repositories/Bill/BillRepository.php b/app/Repositories/Bill/BillRepository.php
index 3c399fa926..dfb0c18675 100644
--- a/app/Repositories/Bill/BillRepository.php
+++ b/app/Repositories/Bill/BillRepository.php
@@ -14,7 +14,6 @@ use FireflyIII\User;
use Illuminate\Database\Query\Builder;
use Illuminate\Database\Query\JoinClause;
use Illuminate\Support\Collection;
-use Log;
use Navigation;
/**
@@ -35,7 +34,6 @@ class BillRepository implements BillRepositoryInterface
*/
public function __construct(User $user)
{
- Log::debug('Constructed bill repository for user #' . $user->id . ' (' . $user->email . ')');
$this->user = $user;
}
@@ -468,7 +466,6 @@ class BillRepository implements BillRepositoryInterface
$description = strtolower($journal->description) . ' ' . strtolower(TransactionJournal::destinationAccount($journal)->name);
$wordMatch = $this->doWordMatch($matches, $description);
$amountMatch = $this->doAmountMatch(TransactionJournal::amountPositive($journal), $bill->amount_min, $bill->amount_max);
- Log::debug('Journal #' . $journal->id . ' has description "' . $description . '"');
/*
@@ -479,8 +476,6 @@ class BillRepository implements BillRepositoryInterface
$journal->save();
return true;
- } else {
- Log::debug('Wordmatch: ' . (($wordMatch) ? 'true' : 'false') . ' AmountMatch: ' . (($amountMatch) ? 'true' : 'false'));
}
if ($bill->id == $journal->bill_id) {
// if no match, but bill used to match, remove it:
diff --git a/app/Repositories/Budget/BudgetRepository.php b/app/Repositories/Budget/BudgetRepository.php
index e4135e774a..21072a82df 100644
--- a/app/Repositories/Budget/BudgetRepository.php
+++ b/app/Repositories/Budget/BudgetRepository.php
@@ -18,7 +18,6 @@ use Illuminate\Database\Query\JoinClause;
use Illuminate\Pagination\LengthAwarePaginator;
use Illuminate\Support\Collection;
use Input;
-use Log;
/**
* Class BudgetRepository
@@ -37,7 +36,6 @@ class BudgetRepository extends ComponentRepository implements BudgetRepositoryIn
*/
public function __construct(User $user)
{
- Log::debug('Constructed bill repository for user #' . $user->id . ' (' . $user->email . ')');
$this->user = $user;
}
diff --git a/app/Repositories/Budget/BudgetRepositoryInterface.php b/app/Repositories/Budget/BudgetRepositoryInterface.php
index 99aa34e476..36c60ccabc 100644
--- a/app/Repositories/Budget/BudgetRepositoryInterface.php
+++ b/app/Repositories/Budget/BudgetRepositoryInterface.php
@@ -241,7 +241,7 @@ interface BudgetRepositoryInterface
/**
* @param Budget $budget
* @param Carbon $date
- * @param int $amount
+ * @param int $amount
*
* @return mixed
*/
diff --git a/app/Repositories/Category/CategoryRepository.php b/app/Repositories/Category/CategoryRepository.php
index 98df4d9403..fa9ecc98bf 100644
--- a/app/Repositories/Category/CategoryRepository.php
+++ b/app/Repositories/Category/CategoryRepository.php
@@ -11,7 +11,6 @@ use FireflyIII\Sql\Query;
use FireflyIII\User;
use Illuminate\Database\Query\JoinClause;
use Illuminate\Support\Collection;
-use Log;
/**
* Class CategoryRepository
@@ -30,7 +29,6 @@ class CategoryRepository implements CategoryRepositoryInterface
*/
public function __construct(User $user)
{
- Log::debug('Constructed bill repository for user #' . $user->id . ' (' . $user->email . ')');
$this->user = $user;
}
diff --git a/app/Repositories/ExportJob/ExportJobRepository.php b/app/Repositories/ExportJob/ExportJobRepository.php
index 625323b163..179ddeb09b 100644
--- a/app/Repositories/ExportJob/ExportJobRepository.php
+++ b/app/Repositories/ExportJob/ExportJobRepository.php
@@ -14,7 +14,6 @@ use Carbon\Carbon;
use FireflyIII\Models\ExportJob;
use FireflyIII\User;
use Illuminate\Support\Str;
-use Log;
/**
* Class ExportJobRepository
@@ -33,7 +32,6 @@ class ExportJobRepository implements ExportJobRepositoryInterface
*/
public function __construct(User $user)
{
- Log::debug('Constructed bill repository for user #' . $user->id . ' (' . $user->email . ')');
$this->user = $user;
}
diff --git a/app/Repositories/Journal/JournalRepository.php b/app/Repositories/Journal/JournalRepository.php
index bac997f23a..8704965d25 100644
--- a/app/Repositories/Journal/JournalRepository.php
+++ b/app/Repositories/Journal/JournalRepository.php
@@ -36,7 +36,6 @@ class JournalRepository implements JournalRepositoryInterface
*/
public function __construct(User $user)
{
- Log::debug('Constructed transaction journal repository for user #' . $user->id . ' (' . $user->email . ')');
$this->user = $user;
}
diff --git a/app/Repositories/PiggyBank/PiggyBankRepository.php b/app/Repositories/PiggyBank/PiggyBankRepository.php
index 8fce9124fe..791d206394 100644
--- a/app/Repositories/PiggyBank/PiggyBankRepository.php
+++ b/app/Repositories/PiggyBank/PiggyBankRepository.php
@@ -9,7 +9,6 @@ use FireflyIII\Models\PiggyBank;
use FireflyIII\Models\PiggyBankEvent;
use FireflyIII\User;
use Illuminate\Support\Collection;
-use Log;
/**
* Class PiggyBankRepository
@@ -29,7 +28,6 @@ class PiggyBankRepository implements PiggyBankRepositoryInterface
*/
public function __construct(User $user)
{
- Log::debug('Constructed piggy bank repository for user #' . $user->id . ' (' . $user->email . ')');
$this->user = $user;
}
diff --git a/app/Repositories/Rule/RuleRepository.php b/app/Repositories/Rule/RuleRepository.php
index 5f2677e5f3..afd48e1380 100644
--- a/app/Repositories/Rule/RuleRepository.php
+++ b/app/Repositories/Rule/RuleRepository.php
@@ -16,7 +16,6 @@ use FireflyIII\Models\RuleAction;
use FireflyIII\Models\RuleGroup;
use FireflyIII\Models\RuleTrigger;
use FireflyIII\User;
-use Log;
/**
* Class RuleRepository
@@ -35,7 +34,6 @@ class RuleRepository implements RuleRepositoryInterface
*/
public function __construct(User $user)
{
- Log::debug('Constructed rule repository for user #' . $user->id . ' (' . $user->email . ')');
$this->user = $user;
}
diff --git a/app/Repositories/RuleGroup/RuleGroupRepository.php b/app/Repositories/RuleGroup/RuleGroupRepository.php
index a0f809f9a4..8cacdc0fa8 100644
--- a/app/Repositories/RuleGroup/RuleGroupRepository.php
+++ b/app/Repositories/RuleGroup/RuleGroupRepository.php
@@ -4,13 +4,12 @@ declare(strict_types = 1);
namespace FireflyIII\Repositories\RuleGroup;
-use Auth;
use FireflyIII\Models\Rule;
use FireflyIII\Models\RuleGroup;
use FireflyIII\User;
use Illuminate\Database\Eloquent\Relations\HasMany;
use Illuminate\Support\Collection;
-use Log;
+
/**
* Class RuleGroupRepository
*
@@ -28,7 +27,6 @@ class RuleGroupRepository implements RuleGroupRepositoryInterface
*/
public function __construct(User $user)
{
- Log::debug('Constructed piggy bank repository for user #' . $user->id . ' (' . $user->email . ')');
$this->user = $user;
}
diff --git a/app/Repositories/Tag/TagRepository.php b/app/Repositories/Tag/TagRepository.php
index a0a6a3ab88..c939045b9b 100644
--- a/app/Repositories/Tag/TagRepository.php
+++ b/app/Repositories/Tag/TagRepository.php
@@ -13,7 +13,6 @@ use FireflyIII\Models\TransactionType;
use FireflyIII\User;
use Illuminate\Database\Query\JoinClause;
use Illuminate\Support\Collection;
-use Log;
/**
* Class TagRepository
@@ -33,7 +32,6 @@ class TagRepository implements TagRepositoryInterface
*/
public function __construct(User $user)
{
- Log::debug('Constructed piggy bank repository for user #' . $user->id . ' (' . $user->email . ')');
$this->user = $user;
}