Code cleanup.

This commit is contained in:
James Cole
2017-11-08 09:05:10 +01:00
parent b6514c7e54
commit 8707bc6612
71 changed files with 77 additions and 67 deletions

View File

@@ -78,4 +78,4 @@ trait VerifiesAccessToken
return true;
}
}
}

View File

@@ -59,4 +59,4 @@ class UserChangedEmail extends Event
$this->oldEmail = $oldEmail;
$this->newEmail = $newEmail;
}
}
}

View File

@@ -64,4 +64,4 @@ class AdminEventHandler
// @codeCoverageIgnoreEnd
return true;
}
}
}

View File

@@ -215,4 +215,4 @@ class BoxController extends Controller
return Response::json($return);
}
}
}

View File

@@ -71,4 +71,4 @@ class FrontpageController extends Controller
return Response::json(['html' => $html]);
}
}
}

View File

@@ -90,4 +90,4 @@ class TransactionController extends Controller
return Response::json($result);
}
}
}

View File

@@ -64,4 +64,4 @@ class StartFireflySession extends StartSession
$session->setPreviousUrl($uri);
}
}
}
}

View File

@@ -1,4 +1,6 @@
<?php
declare(strict_types=1);
/**
* AdminTestMail.php
* Copyright (c) 2017 thegrumpydictator@gmail.com

View File

@@ -1,4 +1,6 @@
<?php
declare(strict_types=1);
/**
* ConfirmEmailChangeMail.php
* Copyright (c) 2017 thegrumpydictator@gmail.com

View File

@@ -1,4 +1,6 @@
<?php
declare(strict_types=1);
/**
* UndoEmailChangeMail.php
* Copyright (c) 2017 thegrumpydictator@gmail.com

View File

@@ -46,4 +46,4 @@ class SessionServiceProvider extends BaseSessionServiceProvider
$this->app->singleton(StartFireflySession::class);
}
}
}

View File

@@ -509,4 +509,4 @@ class Transaction extends Twig_Extension
return $txt;
}
}
}

View File

@@ -89,4 +89,4 @@ class TransactionJournal extends Twig_Extension
}
}
}

View File

@@ -54,4 +54,4 @@ class TransactionJournalLoader implements Twig_RuntimeLoaderInterface
return null;
}
}
}

View File

@@ -54,4 +54,4 @@ class TransactionLoader implements Twig_RuntimeLoaderInterface
return null;
}
}
}

View File

@@ -1,4 +1,6 @@
<?php
declare(strict_types=1);
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

View File

@@ -1,6 +1,8 @@
<?php
declare(strict_types=1);
return [
'bunq_prerequisites_title' => 'Prerequisites for an import from bunq',
'bunq_prerequisites_text' => 'In order to import from bunq, you need to obtain an API key. You can do this through the app.',
];
];

View File

@@ -39,4 +39,4 @@
{% block scripts %}
<script type="text/javascript" src="js/lib/bootstrap-sortable.js?v={{ FF_VERSION }}"></script>
{% endblock %}
{% endblock %}

View File

@@ -44,4 +44,4 @@ Debug information generated at {{ now }} for Firefly III version **{{ FF_VERSION
```
</textarea>
</body>
</html>
</html>

View File

@@ -116,4 +116,4 @@
});
</script>
{% endif %}
{% endif %}

View File

@@ -14,4 +14,4 @@
</div>
{% endfor %}
</div>
</div>
</div>

View File

@@ -70,4 +70,4 @@
{% endif %}
</td>
{% endif %}
</tr>
</tr>

View File

@@ -103,4 +103,4 @@ class AmountTest extends TestCase
}
}
}

View File

@@ -67,4 +67,4 @@ class AddTagTest extends TestCase
}
}
}

View File

@@ -51,4 +51,4 @@ class AppendDescriptionTest extends TestCase
}
}
}

View File

@@ -92,4 +92,4 @@ class AppendNotesTest extends TestCase
$this->assertEquals($toAppend, $newNote->text);
}
}
}

View File

@@ -59,4 +59,4 @@ class ClearBudgetTest extends TestCase
$this->assertEquals(0, $journal->budgets()->count());
}
}
}

View File

@@ -57,4 +57,4 @@ class ClearCategoryTest extends TestCase
$this->assertEquals(0, $journal->categories()->count());
}
}
}

View File

@@ -65,4 +65,4 @@ class ClearNotesTest extends TestCase
$this->assertEquals(0, $journal->notes()->count());
}
}
}

View File

@@ -61,4 +61,4 @@ class PrependDescriptionTest extends TestCase
$this->assertEquals($prepend.$description, $journal->description);
}
}
}

View File

@@ -92,4 +92,4 @@ class PrependNotesTest extends TestCase
$this->assertEquals($toPrepend, $newNote->text);
}
}
}

View File

@@ -60,4 +60,4 @@ class RemoveAllTagsTest extends TestCase
$this->assertEquals(0, $journal->tags()->count());
}
}
}

View File

@@ -88,4 +88,4 @@ class RemoveTagTest extends TestCase
$this->assertTrue($result);
$this->assertEquals($tags->count(), $journal->tags()->count());
}
}
}

View File

@@ -57,4 +57,4 @@ class SetBudgetTest extends TestCase
$this->assertEquals(1, $journal->budgets()->count());
$this->assertEquals($budget->name, $journal->budgets()->first()->name);
}
}
}

View File

@@ -56,4 +56,4 @@ class SetCategoryTest extends TestCase
$this->assertEquals(1, $journal->categories()->count());
$this->assertEquals($category->name, $journal->categories()->first()->name);
}
}
}

View File

@@ -60,4 +60,4 @@ class SetDescriptionTest extends TestCase
$this->assertEquals($newDescription, $journal->description);
}
}
}

View File

@@ -183,4 +183,4 @@ class SetDestinationAccountTest extends TestCase
$this->assertFalse($result);
}
}
}

View File

@@ -89,4 +89,4 @@ class SetNotesTest extends TestCase
// assert result
$this->assertEquals(1, $journal->notes()->count());
}
}
}

View File

@@ -181,4 +181,4 @@ class SetSourceAccountTest extends TestCase
$this->assertFalse($result);
}
}
}

View File

@@ -80,4 +80,4 @@ class AmountExactlyTest extends TestCase
}
}
}

View File

@@ -92,4 +92,4 @@ class AmountLessTest extends TestCase
}
}
}

View File

@@ -102,4 +102,4 @@ class AmountMoreTest extends TestCase
}
}
}

View File

@@ -109,4 +109,4 @@ class BudgetIsTest extends TestCase
$result = BudgetIs::willMatchEverything($value);
$this->assertTrue($result);
}
}
}

View File

@@ -109,4 +109,4 @@ class CategoryIsTest extends TestCase
$result = CategoryIs::willMatchEverything($value);
$this->assertTrue($result);
}
}
}

View File

@@ -125,4 +125,4 @@ class DescriptionContainsTest extends TestCase
$result = DescriptionContains::willMatchEverything($value);
$this->assertTrue($result);
}
}
}

View File

@@ -137,4 +137,4 @@ class DescriptionEndsTest extends TestCase
$result = DescriptionEnds::willMatchEverything($value);
$this->assertTrue($result);
}
}
}

View File

@@ -103,4 +103,4 @@ class DescriptionIsTest extends TestCase
$result = DescriptionIs::willMatchEverything($value);
$this->assertTrue($result);
}
}
}

View File

@@ -125,4 +125,4 @@ class DescriptionStartsTest extends TestCase
$result = DescriptionStarts::willMatchEverything($value);
$this->assertTrue($result);
}
}
}

View File

@@ -92,4 +92,4 @@ class FromAccountContainsTest extends TestCase
}
}
}

View File

@@ -106,4 +106,4 @@ class FromAccountEndsTest extends TestCase
}
}
}

View File

@@ -93,4 +93,4 @@ class FromAccountIsTest extends TestCase
$this->assertTrue($result);
}
}
}

View File

@@ -106,4 +106,4 @@ class FromAccountStartsTest extends TestCase
}
}
}

View File

@@ -96,4 +96,4 @@ class HasAnyBudgetTest extends TestCase
$this->assertFalse($result);
}
}
}

View File

@@ -96,4 +96,4 @@ class HasAnyCategoryTest extends TestCase
$this->assertFalse($result);
}
}
}

View File

@@ -73,4 +73,4 @@ class HasAnyTagTest extends TestCase
$this->assertFalse($result);
}
}
}

View File

@@ -82,4 +82,4 @@ class HasAttachmentTest extends TestCase
$this->assertTrue($result);
}
}
}

View File

@@ -96,4 +96,4 @@ class HasNoBudgetTest extends TestCase
$result = HasNoBudget::willMatchEverything($value);
$this->assertFalse($result);
}
}
}

View File

@@ -96,4 +96,4 @@ class HasNoCategoryTest extends TestCase
$result = HasNoCategory::willMatchEverything($value);
$this->assertFalse($result);
}
}
}

View File

@@ -76,4 +76,4 @@ class HasNoTagTest extends TestCase
$result = HasNoTag::willMatchEverything($value);
$this->assertFalse($result);
}
}
}

View File

@@ -90,4 +90,4 @@ class NotesAnyTest extends TestCase
$result = NotesAny::willMatchEverything($value);
$this->assertFalse($result);
}
}
}

View File

@@ -117,4 +117,4 @@ class NotesAreTest extends TestCase
$result = NotesAre::willMatchEverything($value);
$this->assertTrue($result);
}
}
}

View File

@@ -143,4 +143,4 @@ class NotesContainTest extends TestCase
$result = NotesContain::willMatchEverything($value);
$this->assertTrue($result);
}
}
}

View File

@@ -91,4 +91,4 @@ class NotesEmptyTest extends TestCase
$this->assertFalse($result);
}
}
}

View File

@@ -115,4 +115,4 @@ class NotesEndTest extends TestCase
$result = NotesEnd::willMatchEverything($value);
$this->assertTrue($result);
}
}
}

View File

@@ -115,4 +115,4 @@ class NotesStartTest extends TestCase
$result = NotesStart::willMatchEverything($value);
$this->assertTrue($result);
}
}
}

View File

@@ -102,4 +102,4 @@ class TagIsTest extends TestCase
$result = TagIs::willMatchEverything($value);
$this->assertTrue($result);
}
}
}

View File

@@ -90,4 +90,4 @@ class ToAccountContainsTest extends TestCase
}
}
}

View File

@@ -106,4 +106,4 @@ class ToAccountEndsTest extends TestCase
}
}
}

View File

@@ -93,4 +93,4 @@ class ToAccountIsTest extends TestCase
}
}
}

View File

@@ -106,4 +106,4 @@ class ToAccountStartsTest extends TestCase
}
}
}

View File

@@ -78,4 +78,4 @@ class TransactionTypeTest extends TestCase
}
}
}