Code cleanup.

This commit is contained in:
James Cole
2017-11-22 21:12:27 +01:00
parent 4e6b782204
commit 781ca052d8
142 changed files with 213 additions and 859 deletions

View File

@@ -18,7 +18,6 @@
* You should have received a copy of the GNU General Public License
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
*/
declare(strict_types=1);
namespace Tests\Unit\TransactionRules\Triggers;
@@ -29,8 +28,6 @@ use Tests\TestCase;
/**
* Class HasAnyBudgetTest
*
* @package Tests\Unit\TransactionRules\Triggers
*/
class HasAnyBudgetTest extends TestCase
{
@@ -76,7 +73,7 @@ class HasAnyBudgetTest extends TestCase
// append to transaction
foreach ($journal->transactions()->get() as $index => $transaction) {
$transaction->budgets()->detach();
if ($index === 0) {
if (0 === $index) {
$transaction->budgets()->save($budget);
}
}
@@ -95,5 +92,4 @@ class HasAnyBudgetTest extends TestCase
$result = HasAnyBudget::willMatchEverything($value);
$this->assertFalse($result);
}
}