Add newlines and strict types

This commit is contained in:
James Cole 2018-03-05 19:35:58 +01:00
parent 0d72fcdf02
commit a97bfc92e1
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E
100 changed files with 112 additions and 89 deletions

View File

@ -85,4 +85,4 @@ class AboutController extends Controller
return response()->json($manager->createData($resource)->toArray())->header('Content-Type', 'application/vnd.api+json'); return response()->json($manager->createData($resource)->toArray())->header('Content-Type', 'application/vnd.api+json');
} }
} }

View File

@ -260,4 +260,4 @@ class AccountController extends Controller
return $types['all']; // @codeCoverageIgnore return $types['all']; // @codeCoverageIgnore
} }
} }

View File

@ -330,4 +330,4 @@ class TransactionController extends Controller
return $types['default']; // @codeCoverageIgnore return $types['default']; // @codeCoverageIgnore
} }
} }

View File

@ -189,4 +189,4 @@ class UserController extends Controller
} }
} }

View File

@ -104,4 +104,4 @@ class AccountRequest extends Request
return $rules; return $rules;
} }
} }

View File

@ -116,4 +116,4 @@ class BillRequest extends Request
} }
); );
} }
} }

View File

@ -497,4 +497,4 @@ class TransactionRequest extends Request
return; return;
} }
} }

View File

@ -86,4 +86,4 @@ class UserRequest extends Request
return $rules; return $rules;
} }
} }

View File

@ -49,4 +49,4 @@ class RequestedVersionCheckStatus extends Event
{ {
$this->user = $user; $this->user = $user;
} }
} }

View File

@ -168,4 +168,4 @@ class AccountFactory
} }
} }

View File

@ -40,4 +40,4 @@ class AccountMetaFactory
return AccountMeta::create($data); return AccountMeta::create($data);
} }
} }

View File

@ -134,4 +134,4 @@ class BillFactory
$this->user = $user; $this->user = $user;
} }
} }

View File

@ -97,4 +97,4 @@ class BudgetFactory
$this->user = $user; $this->user = $user;
} }
} }

View File

@ -106,4 +106,4 @@ class CategoryFactory
$this->user = $user; $this->user = $user;
} }
} }

View File

@ -85,4 +85,4 @@ class PiggyBankEventFactory
return $event; return $event;
} }
} }

View File

@ -97,4 +97,4 @@ class PiggyBankFactory
} }
} }

View File

@ -99,4 +99,4 @@ class TagFactory
$this->user = $user; $this->user = $user;
} }
} }

View File

@ -64,4 +64,4 @@ class TransactionCurrencyFactory
} }
} }

View File

@ -145,4 +145,4 @@ class TransactionFactory
} }
} }

View File

@ -151,4 +151,4 @@ class TransactionJournalFactory
return $transactionType; return $transactionType;
} }
} }

View File

@ -69,4 +69,4 @@ class TransactionJournalMetaFactory
return $entry; return $entry;
} }
} }

View File

@ -41,4 +41,4 @@ class TransactionTypeFactory
return TransactionType::whereType(ucfirst($type))->first(); return TransactionType::whereType(ucfirst($type))->first();
} }
} }

View File

@ -113,4 +113,4 @@ class VersionCheckEventHandler
return; return;
} }
} }

View File

@ -171,4 +171,4 @@ class DebugController extends Controller
return $packages; return $packages;
} }
} }

View File

@ -182,4 +182,4 @@ class BulkController extends Controller
return redirect($this->getPreviousUri('transactions.bulk-edit.uri')); return redirect($this->getPreviousUri('transactions.bulk-edit.uri'));
} }
} }

View File

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

View File

@ -78,4 +78,4 @@ class ReconciliationStoreRequest extends Request
'reconcile' => 'required|in:create,nothing', 'reconcile' => 'required|in:create,nothing',
]; ];
} }
} }

View File

@ -41,4 +41,4 @@ class TransactionTypeRepository implements TransactionTypeRepositoryInterface
{ {
return TransactionType::where('type', ucfirst($type))->first(); return TransactionType::where('type', ucfirst($type))->first();
} }
} }

View File

@ -41,4 +41,4 @@ interface TransactionTypeRepositoryInterface
*/ */
public function findByType(string $type): ?TransactionType; public function findByType(string $type): ?TransactionType;
} }

View File

@ -1,4 +1,6 @@
<?php <?php
declare(strict_types=1);
/** /**

View File

@ -86,4 +86,4 @@ class UniqueIban implements Rule
return true; return true;
} }
} }

View File

@ -1,4 +1,6 @@
<?php <?php
declare(strict_types=1);
/** /**

View File

@ -86,4 +86,4 @@ class Release extends GithubObject
} }
} }

View File

@ -32,4 +32,4 @@ interface GithubRequest
{ {
public function call(); public function call();
} }

View File

@ -79,4 +79,4 @@ class UpdateRequest implements GithubRequest
} }
} }

View File

@ -69,4 +69,4 @@ class AccountDestroyService
return true; return true;
} }
} }

View File

@ -44,4 +44,4 @@ class BillDestroyService
} }
} }
} }

View File

@ -62,4 +62,4 @@ class JournalDestroyService
return; return;
} }
} }

View File

@ -394,4 +394,4 @@ trait AccountServiceTrait
return false; return false;
} }
} }

View File

@ -61,4 +61,4 @@ trait BillServiceTrait
return true; return true;
} }
} }

View File

@ -130,4 +130,4 @@ trait JournalServiceTrait
return; return;
} }
} }

View File

@ -267,4 +267,4 @@ trait TransactionServiceTrait
} }
} }

View File

@ -79,4 +79,4 @@ class AccountUpdateService
return $account; return $account;
} }
} }

View File

@ -66,4 +66,4 @@ class BillUpdateService
return $bill; return $bill;
} }
} }

View File

@ -166,4 +166,4 @@ class JournalUpdateService
return $journal; return $journal;
} }
} }

View File

@ -159,4 +159,4 @@ class TransactionUpdateService
return $transaction; return $transaction;
} }
} }

View File

@ -29,4 +29,4 @@ namespace FireflyIII\Services\Spectre\Exception;
class DuplicatedCustomerException extends SpectreException class DuplicatedCustomerException extends SpectreException
{ {
} }

View File

@ -31,4 +31,4 @@ use Exception;
class SpectreException extends Exception class SpectreException extends Exception
{ {
} }

View File

@ -106,4 +106,4 @@ class Account extends SpectreObject
return $array; return $array;
} }
} }

View File

@ -205,4 +205,4 @@ class Attempt extends SpectreObject
} }
} }

View File

@ -45,4 +45,4 @@ class Holder extends SpectreObject
{ {
return []; return [];
} }
} }

View File

@ -143,4 +143,4 @@ class Login extends SpectreObject
} }
} }

View File

@ -73,4 +73,4 @@ class Token extends SpectreObject
return $this->token; return $this->token;
} }
} }

View File

@ -185,4 +185,4 @@ class Transaction extends SpectreObject
} }
} }

View File

@ -166,4 +166,4 @@ class TransactionExtra extends SpectreObject
} }
} }

View File

@ -92,4 +92,4 @@ class CreateTokenRequest extends SpectreRequest
} }
} }

View File

@ -90,4 +90,4 @@ class ListAccountsRequest extends SpectreRequest
} }
} }

View File

@ -79,4 +79,4 @@ class ListCustomersRequest extends SpectreRequest
} }
} }

View File

@ -89,4 +89,4 @@ class ListLoginsRequest extends SpectreRequest
} }
} }

View File

@ -91,4 +91,4 @@ class ListTransactionsRequest extends SpectreRequest
} }
} }

View File

@ -153,4 +153,4 @@ class HaveAccounts implements ConfigurationInterface
return $collection; return $collection;
} }
} }

View File

@ -156,6 +156,9 @@ class Preferences
if (null !== $preference) { if (null !== $preference) {
$lastActivity = $preference->data; $lastActivity = $preference->data;
} }
if (is_array($lastActivity)) {
$lastActivity = implode(',', $lastActivity);
}
return md5($lastActivity); return md5($lastActivity);
} }

View File

@ -240,4 +240,4 @@ class AccountTransformer extends TransformerAbstract
return $result; return $result;
} }
} }

View File

@ -106,4 +106,4 @@ class AttachmentTransformer extends TransformerAbstract
]; ];
} }
} }

View File

@ -292,4 +292,4 @@ class BillTransformer extends TransformerAbstract
return $simple->toArray(); return $simple->toArray();
} }
} }

View File

@ -132,4 +132,4 @@ class BudgetTransformer extends TransformerAbstract
return $data; return $data;
} }
} }

View File

@ -131,4 +131,4 @@ class CategoryTransformer extends TransformerAbstract
return $data; return $data;
} }
} }

View File

@ -120,4 +120,4 @@ class JournalMetaTransformer extends TransformerAbstract
return $data; return $data;
} }
} }

View File

@ -145,4 +145,4 @@ class PiggyBankEventTransformer extends TransformerAbstract
return $data; return $data;
} }
} }

View File

@ -163,4 +163,4 @@ class PiggyBankTransformer extends TransformerAbstract
return $data; return $data;
} }
} }

View File

@ -137,4 +137,4 @@ class TagTransformer extends TransformerAbstract
return $data; return $data;
} }
} }

View File

@ -255,4 +255,4 @@ class TransactionTransformer extends TransformerAbstract
return $data; return $data;
} }
} }

View File

@ -205,4 +205,4 @@ class UserTransformer extends TransformerAbstract
]; ];
} }
} }

View File

@ -1,4 +1,6 @@
<?php <?php
declare(strict_types=1);
/** /**

View File

@ -1,4 +1,6 @@
<?php <?php
declare(strict_types=1);
/** /**

View File

@ -1,4 +1,6 @@
<?php <?php
declare(strict_types=1);
/** /**

View File

@ -1,4 +1,6 @@
<?php <?php
declare(strict_types=1);
/** /**

View File

@ -1,4 +1,6 @@
<?php <?php
declare(strict_types=1);
/** /**

View File

@ -1,4 +1,6 @@
<?php <?php
declare(strict_types=1);
/** /**

View File

@ -1,4 +1,6 @@
<?php <?php
declare(strict_types=1);
/** /**

View File

@ -54,4 +54,4 @@ if (token) {
// encrypted: true // encrypted: true
// }); // });
/** Include font awesome */ /** Include font awesome */

View File

@ -27,4 +27,4 @@ const Lang = new lang({messages});
Lang.setLocale(window.language); Lang.setLocale(window.language);
Lang.setFallback('en_US'); Lang.setFallback('en_US');
export default Lang; export default Lang;

File diff suppressed because one or more lines are too long

View File

@ -27,4 +27,4 @@ return [
// bills: // bills:
'not_expected_period' => 'Unerwarteter Zeitraum', 'not_expected_period' => 'Unerwarteter Zeitraum',
'not_or_not_yet' => '(Noch) nicht', 'not_or_not_yet' => '(Noch) nicht',
]; ];

View File

@ -27,4 +27,4 @@ return [
// bills: // bills:
'not_expected_period' => 'No se esperaba este período', 'not_expected_period' => 'No se esperaba este período',
'not_or_not_yet' => 'No (todavía)', 'not_or_not_yet' => 'No (todavía)',
]; ];

View File

@ -27,4 +27,4 @@ return [
// bills: // bills:
'not_expected_period' => 'Not expected this period', 'not_expected_period' => 'Not expected this period',
'not_or_not_yet' => 'Not (yet)', 'not_or_not_yet' => 'Not (yet)',
]; ];

View File

@ -27,4 +27,4 @@ return [
// bills: // bills:
'not_expected_period' => 'Not expected this period', 'not_expected_period' => 'Not expected this period',
'not_or_not_yet' => 'Not (yet)', 'not_or_not_yet' => 'Not (yet)',
]; ];

View File

@ -27,4 +27,4 @@ return [
// bills: // bills:
'not_expected_period' => 'Niet verwacht deze periode', 'not_expected_period' => 'Niet verwacht deze periode',
'not_or_not_yet' => '(nog) niet', 'not_or_not_yet' => '(nog) niet',
]; ];

View File

@ -27,4 +27,4 @@ return [
// bills: // bills:
'not_expected_period' => 'Nie oczekiwany w tym okresie', 'not_expected_period' => 'Nie oczekiwany w tym okresie',
'not_or_not_yet' => 'Nie (jeszcze)', 'not_or_not_yet' => 'Nie (jeszcze)',
]; ];

View File

@ -27,4 +27,4 @@ return [
// bills: // bills:
'not_expected_period' => 'Não esperado neste período', 'not_expected_period' => 'Não esperado neste período',
'not_or_not_yet' => 'Não (ainda)', 'not_or_not_yet' => 'Não (ainda)',
]; ];

View File

@ -27,4 +27,4 @@ return [
// bills: // bills:
'not_expected_period' => 'Не ожидается в данном периоде', 'not_expected_period' => 'Не ожидается в данном периоде',
'not_or_not_yet' => 'Пока нет', 'not_or_not_yet' => 'Пока нет',
]; ];

View File

@ -27,4 +27,4 @@ return [
// bills: // bills:
'not_expected_period' => 'Not expected this period', 'not_expected_period' => 'Not expected this period',
'not_or_not_yet' => 'Not (yet)', 'not_or_not_yet' => 'Not (yet)',
]; ];

View File

@ -56,4 +56,4 @@
</div> </div>
</div> </div>
</div> </div>
{% endblock %} {% endblock %}

View File

@ -58,4 +58,4 @@
var updateCheckUri = '{{ route('admin.update-check.manual') }}'; var updateCheckUri = '{{ route('admin.update-check.manual') }}';
</script> </script>
<script type="text/javascript" src="js/ff/admin/update/index.js?v={{ FF_VERSION }}"></script> <script type="text/javascript" src="js/ff/admin/update/index.js?v={{ FF_VERSION }}"></script>
{% endblock %} {% endblock %}

View File

@ -11,4 +11,4 @@
<body> <body>
If you are not redirected automatically, follow this <a href='{{ data['token-url'] }}'>link to Spectre.</a>. If you are not redirected automatically, follow this <a href='{{ data['token-url'] }}'>link to Spectre.</a>.
</body> </body>
</html>#} </html>#}

View File

@ -42,4 +42,4 @@ var sessionEnd = '{{ session('end').format('Y-m-d') }}';
// some formatting stuff: // some formatting stuff:
var month_and_day_js = "{{ trans('config.month_and_day_js') }}"; var month_and_day_js = "{{ trans('config.month_and_day_js') }}";
var acc_config_new = {format: accountingConfig}; var acc_config_new = {format: accountingConfig};

View File

@ -125,4 +125,4 @@
</table> </table>
<div style="padding-left:8px;"> <div style="padding-left:8px;">
{{ paginator.render|raw }} {{ paginator.render|raw }}
</div> </div>

View File

@ -41,4 +41,4 @@
</table> </table>
<div style="padding-left:8px;"> <div style="padding-left:8px;">
{{ categories.render|raw }} {{ categories.render|raw }}
</div> </div>

View File

@ -51,4 +51,4 @@
$("form#preferences_code input:enabled:visible:first").first().select(); $("form#preferences_code input:enabled:visible:first").first().select();
}); });
</script> </script>
{% endblock %} {% endblock %}

View File

@ -1,2 +1,2 @@
list-length: {{ listLength }} list-length: {{ listLength }}
sandstorm-anon: {% if SANDSTORM_ANON %}true{% else %}false{% endif %} sandstorm-anon: {% if SANDSTORM_ANON %}true{% else %}false{% endif %}