Code cleanup.

This commit is contained in:
James Cole
2018-04-02 14:17:11 +02:00
parent 4cea5d65a6
commit f96f38b172
44 changed files with 87 additions and 100 deletions

View File

@@ -57,7 +57,7 @@ class AssetAccountIbansTest extends TestCase
$this->assertCount(3, $mapping);
// assert this is what the result looks like:
$result = [
0 => strval(trans('import.map_do_not_map')),
0 => (string)trans('import.map_do_not_map'),
53 => 'Else',
17 => 'IBAN (Something)',
];

View File

@@ -57,7 +57,7 @@ class AssetAccountsTest extends TestCase
$this->assertCount(3, $mapping);
// assert this is what the result looks like:
$result = [
0 => strval(trans('import.map_do_not_map')),
0 => (string)trans('import.map_do_not_map'),
19 => 'Else',
23 => 'Something (IBAN)',

View File

@@ -58,7 +58,7 @@ class BillsTest extends TestCase
$this->assertCount(3, $mapping);
// assert this is what the result looks like:
$result = [
0 => strval(trans('import.map_do_not_map')),
0 => (string)trans('import.map_do_not_map'),
9 => 'Else [match]',
5 => 'Something [hi,bye]',
];

View File

@@ -55,7 +55,7 @@ class BudgetsTest extends TestCase
$this->assertCount(3, $mapping);
// assert this is what the result looks like:
$result = [
0 => strval(trans('import.map_do_not_map')),
0 => (string)trans('import.map_do_not_map'),
4 => 'Else',
8 => 'Something',

View File

@@ -55,7 +55,7 @@ class CategoriesTest extends TestCase
$this->assertCount(3, $mapping);
// assert this is what the result looks like:
$result = [
0 => strval(trans('import.map_do_not_map')),
0 => (string)trans('import.map_do_not_map'),
17 => 'Else',
9 => 'Something',

View File

@@ -59,7 +59,7 @@ class OpposingAccountIbansTest extends TestCase
$this->assertCount(3, $mapping);
// assert this is what the result looks like:
$result = [
0 => strval(trans('import.map_do_not_map')),
0 => (string)trans('import.map_do_not_map'),
17 => 'Else',
21 => 'IBAN (Something)',
];

View File

@@ -59,7 +59,7 @@ class OpposingAccountsTest extends TestCase
$this->assertCount(3, $mapping);
// assert this is what the result looks like:
$result = [
0 => strval(trans('import.map_do_not_map')),
0 => (string)trans('import.map_do_not_map'),
9 => 'Else',
13 => 'Something (IBAN)',
];

View File

@@ -55,7 +55,7 @@ class TagsTest extends TestCase
$this->assertCount(3, $mapping);
// assert this is what the result looks like:
$result = [
0 => strval(trans('import.map_do_not_map')),
0 => (string)trans('import.map_do_not_map'),
14 => 'Else',
12 => 'Something',
];

View File

@@ -57,7 +57,7 @@ class TransactionCurrenciesTest extends TestCase
$this->assertCount(3, $mapping);
// assert this is what the result looks like:
$result = [
0 => strval(trans('import.map_do_not_map')),
0 => (string)trans('import.map_do_not_map'),
11 => 'Else (DEF)',
9 => 'Something (ABC)',