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');
}
}
}

View File

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

View File

@ -330,4 +330,4 @@ class TransactionController extends Controller
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;
}
}
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -99,4 +99,4 @@ class TagFactory
$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;
}
}
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,4 +1,6 @@
<?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();
}
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -73,4 +73,4 @@ class Token extends SpectreObject
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;
}
}
}

View File

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

View File

@ -240,4 +240,4 @@ class AccountTransformer extends TransformerAbstract
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();
}
}
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -27,4 +27,4 @@ const Lang = new lang({messages});
Lang.setLocale(window.language);
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:
'not_expected_period' => 'Unerwarteter Zeitraum',
'not_or_not_yet' => '(Noch) nicht',
];
];

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -58,4 +58,4 @@
var updateCheckUri = '{{ route('admin.update-check.manual') }}';
</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>
If you are not redirected automatically, follow this <a href='{{ data['token-url'] }}'>link to Spectre.</a>.
</body>
</html>#}
</html>#}

View File

@ -42,4 +42,4 @@ var sessionEnd = '{{ session('end').format('Y-m-d') }}';
// some formatting stuff:
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>
<div style="padding-left:8px;">
{{ paginator.render|raw }}
</div>
</div>

View File

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

View File

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

View File

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