Add newline to files

This commit is contained in:
James Cole
2019-08-17 12:09:03 +02:00
parent b53cbbe469
commit fc78c32fca
153 changed files with 243 additions and 125 deletions

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/**
* CorrectDatabaseTest.php
* Copyright (c) 2019 thegrumpydictator@gmail.com
@@ -96,4 +97,4 @@ class CreateAccessTokensTest extends TestCase
->expectsOutput('All access tokens OK!')
->assertExitCode(0);
}
}
}

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/**
* CreateLinkTypesTest.php
* Copyright (c) 2019 thegrumpydictator@gmail.com
@@ -78,4 +79,4 @@ class CreateLinkTypesTest extends TestCase
$this->assertCount(4, LinkType::get());
}
}
}

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/**
* DeleteEmptyGroupsTest.php
* Copyright (c) 2019 thegrumpydictator@gmail.com
@@ -70,4 +71,4 @@ class DeleteEmptyGroupsTest extends TestCase
// should not be able to find it:
$this->assertCount(0, TransactionGroup::where('id', $group->id)->whereNull('deleted_at')->get());
}
}
}

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/**
* DeleteEmptyJournalsTest.php
* Copyright (c) 2019 thegrumpydictator@gmail.com
@@ -120,4 +121,4 @@ class DeleteEmptyJournalsTest extends TestCase
}
}
}

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/**
* DeleteOrphanedTransactionsTest.php
* Copyright (c) 2019 thegrumpydictator@gmail.com
@@ -144,4 +145,4 @@ class DeleteOrphanedTransactionsTest extends TestCase
$this->assertCount(0, TransactionJournal::where('id', $journal->id)->whereNull('deleted_at')->get());
$this->assertCount(0, Transaction::where('id', $transaction->id)->whereNull('deleted_at')->get());
}
}
}

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/**
* DeleteZeroAmountTest.php
* Copyright (c) 2019 thegrumpydictator@gmail.com
@@ -91,4 +92,4 @@ class DeleteZeroAmountTest extends TestCase
$this->assertCount(0, Transaction::where('id', $transaction->id)->whereNull('deleted_at')->get());
$this->assertCount(0, TransactionJournal::where('id', $journal->id)->whereNull('deleted_at')->get());
}
}
}

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/**
* EnableCurrenciesTest.php
* Copyright (c) 2019 thegrumpydictator@gmail.com
@@ -82,4 +83,4 @@ class EnableCurrenciesTest extends TestCase
$this->assertCount($count + 1, TransactionCurrency::where('enabled', 1)->get());
}
}
}

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/**
* FixAccountTypesTest.php
* Copyright (c) 2019 thegrumpydictator@gmail.com
@@ -371,4 +372,4 @@ class FixAccountTypesTest extends TestCase
$two->forceDelete();
$journal->forceDelete();
}
}
}

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/**
* FixPiggiesTest.php
* Copyright (c) 2019 thegrumpydictator@gmail.com
@@ -130,4 +131,4 @@ class FixPiggiesTest extends TestCase
$this->assertCount(0, PiggyBankEvent::where('id', $event->id)->where('transaction_journal_id', $transfer->id)->get());
$event->forceDelete();
}
}
}

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/**
* FixUnevenAmountTest.php
* Copyright (c) 2019 thegrumpydictator@gmail.com
@@ -101,4 +102,4 @@ class FixUnevenAmountTest extends TestCase
$this->assertCount(1, Transaction::where('id', $two->id)->where('amount', '10')->get());
}
}
}

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/**
* RemoveBillsTest.php
* Copyright (c) 2019 thegrumpydictator@gmail.com
@@ -75,4 +76,4 @@ class RemoveBillsTest extends TestCase
// verify change
$this->assertCount(0, TransactionJournal::where('id', $journal->id)->whereNotNull('bill_id')->get());
}
}
}

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/**
* RenameMetaFieldsTest.php
* Copyright (c) 2019 thegrumpydictator@gmail.com
@@ -76,4 +77,4 @@ class RenameMetaFieldsTest extends TestCase
$this->assertCount(1, TransactionJournalMeta::where('id', $entry->id)->where('name', 'import_hash_v2')->get());
}
}
}

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/**
* TransferBudgetsTest.php
* Copyright (c) 2019 thegrumpydictator@gmail.com
@@ -71,4 +72,4 @@ class TransferBudgetsTest extends TestCase
$this->assertCount(0, $deposit->budgets()->get());
}
}
}

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/**
* DecryptDatabaseTest.php
* Copyright (c) 2019 thegrumpydictator@gmail.com
@@ -139,4 +140,4 @@ class DecryptDatabaseTest extends TestCase
$this->assertCount(1, Account::where('id', $account->id)->where('iban', $iban)->get());
}
}
}

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/**
* CreateCSVImportTest.php
* Copyright (c) 2019 thegrumpydictator@gmail.com
@@ -433,4 +434,4 @@ class CreateCSVImportTest extends TestCase
// this method imports nothing so there is nothing to verify.
}
}
}

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/**
* ReportEmptyObjectsTest.php
* Copyright (c) 2019 thegrumpydictator@gmail.com
@@ -148,4 +149,4 @@ class ReportEmptyObjectsTest extends TestCase
}
}
}

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/**
* ReportSumTest.php
* Copyright (c) 2019 thegrumpydictator@gmail.com
@@ -85,4 +86,4 @@ class ReportSumTest extends TestCase
// this method changes no objects so there is nothing to verify.
}
}
}

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/**
* ApplyRulesTest.php
* Copyright (c) 2019 thegrumpydictator@gmail.com
@@ -463,4 +464,4 @@ class ApplyRulesTest extends TestCase
->assertExitCode(1);
}
}
}

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/**
* AccountCurrenciesTest.php
* Copyright (c) 2019 thegrumpydictator@gmail.com
@@ -350,4 +351,4 @@ class AccountCurrenciesTest extends TestCase
->assertExitCode(0);
// nothing changed, so nothing to verify.
}
}
}

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/**
* BackToJournalsTest.php
* Copyright (c) 2019 thegrumpydictator@gmail.com
@@ -244,4 +245,4 @@ class BackToJournalsTest extends TestCase
}
}
}

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/**
* BudgetLimitCurrencyTest.php
* Copyright (c) 2019 thegrumpydictator@gmail.com
@@ -97,4 +98,4 @@ class BudgetLimitCurrencyTest extends TestCase
// assume currency is filled in.
$this->assertCount(1, BudgetLimit::where('id', $limit->id)->where('transaction_currency_id', 1)->get());
}
}
}

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/**
* CCLiabilitiesTest.php
* Copyright (c) 2019 thegrumpydictator@gmail.com
@@ -129,4 +130,4 @@ class CCLiabilitiesTest extends TestCase
$type->forceDelete();
}
}
}

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/**
* MigrateAttachmentsTest.php
* Copyright (c) 2019 thegrumpydictator@gmail.com
@@ -96,4 +97,4 @@ class MigrateAttachmentsTest extends TestCase
$attachment->forceDelete();
}
}
}

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/**
* MigrateJournalNotesTest.php
* Copyright (c) 2019 thegrumpydictator@gmail.com
@@ -98,4 +99,4 @@ class MigrateJournalNotesTest extends TestCase
}
}
}

View File

@@ -258,4 +258,4 @@ class MigrateToGroupsTest extends TestCase
// the calls above let me know it's OK.
}
}
}

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/**
* MigrateToRulesTest.php
* Copyright (c) 2019 thegrumpydictator@gmail.com
@@ -322,4 +323,4 @@ class MigrateToRulesTest extends TestCase
->assertExitCode(0);
}
}
}

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/**
* OtherCurrenciesCorrectionsTest.php
* Copyright (c) 2019 thegrumpydictator@gmail.com
@@ -270,4 +271,4 @@ class OtherCurrenciesCorrectionsTest extends TestCase
}
}
}

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/**
* RenameAccountMetaTest.php
* Copyright (c) 2019 thegrumpydictator@gmail.com
@@ -100,4 +101,4 @@ class RenameAccountMetaTest extends TestCase
$meta->forceDelete();
}
}
}

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/**
* TransactionIdentifierTest.php
* Copyright (c) 2019 thegrumpydictator@gmail.com
@@ -153,4 +154,4 @@ class TransactionIdentifierTest extends TestCase
}
}
}

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/**
* TransferCurrenciesCorrectionsTest.php
* Copyright (c) 2019 thegrumpydictator@gmail.com
@@ -561,4 +562,4 @@ class TransferCurrenciesCorrectionsTest extends TestCase
$this->assertCount(1, Transaction::where('id', $destination->id)->where('transaction_currency_id', $euro->id)->get());
}
}
}

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/**
* FinTSJobConfigurationTest.php
* Copyright (c) 2019 thegrumpydictator@gmail.com
@@ -167,4 +168,4 @@ class FinTSJobConfigurationTest extends TestCase
}
$this->assertEquals('import.fints.choose_account', $res);
}
}
}

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/**
* FinTSRoutineTest.php
* Copyright (c) 2019 thegrumpydictator@gmail.com
@@ -87,4 +88,4 @@ class FinTSRoutineTest extends TestCase
$this->assertTrue(false, $e->getMessage());
}
}
}
}

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/**
* CreateRecurringTransactionsTest.php
* Copyright (c) 2019 thegrumpydictator@gmail.com
@@ -584,4 +585,4 @@ class CreateRecurringTransactionsTest extends TestCase
$this->assertEquals(1, $job->submitted);
}
}
}

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/**
* BelongsUserTest.php
* Copyright (c) 2019 thegrumpydictator@gmail.com
@@ -346,4 +347,4 @@ class BelongsUserTest extends TestCase
}
}
}
}

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/**
* IsAssetAccountIdTest.php
* Copyright (c) 2019 thegrumpydictator@gmail.com
@@ -83,4 +84,4 @@ class IsAssetAccountIdTest extends TestCase
$this->assertFalse($engine->passes($attribute, $value));
}
}
}

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/**
* IsBooleanTest.php
* Copyright (c) 2019 thegrumpydictator@gmail.com
@@ -78,4 +79,4 @@ class IsBooleanTest extends TestCase
}
}
}
}

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/**
* IsDateOrTimeTest.php
* Copyright (c) 2019 thegrumpydictator@gmail.com
@@ -74,4 +75,4 @@ class IsDateOrTimeTest extends TestCase
}
}
}

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/**
* IsValidAttachmentModelTest.php
* Copyright (c) 2019 thegrumpydictator@gmail.com
@@ -165,4 +166,4 @@ class IsValidAttachmentModelTest extends TestCase
$this->assertFalse($engine->passes($attribute, $value));
}
}
}

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/**
* UniqueIbanTest.php
* Copyright (c) 2019 thegrumpydictator@gmail.com
@@ -150,4 +151,4 @@ class UniqueIbanTest extends TestCase
$revenue->save();
}
}
}

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/**
* RecurringCronjobTest.php
* Copyright (c) 2019 thegrumpydictator@gmail.com
@@ -142,4 +143,4 @@ class RecurringCronjobTest extends TestCase
$job->fire();
}
}
}

View File

@@ -318,4 +318,4 @@ class NavigationTest extends TestCase
$this->assertEquals($expected->format('Y-m-d H:i:s'), $result->format('Y-m-d H:i:s'));
}
}
}
}

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/**
* LinkToBillTest.php
* Copyright (c) 2019 thegrumpydictator@gmail.com
@@ -95,4 +96,4 @@ class LinkToBillTest extends TestCase
}
}
}

View File

@@ -1,4 +1,5 @@
<?php
declare(strict_types=1);
/**
* TransactionGroupTransformerTest.php
* Copyright (c) 2019 thegrumpydictator@gmail.com
@@ -120,4 +121,4 @@ class TransactionGroupTransformerTest extends TestCase
$result = $transformer->transformObject($group);
}
}
}