Skip to content

Firefly III: a personal finances manager

Add strict types and newlines.

James Colef74b9ba7abb3
diff --git a/app/Api/V1/Requests/CurrencyRequest.php b/app/Api/V1/Requests/CurrencyRequest.php
index 72666a3a77..8e2edfeda9 100644
--- a/app/Api/V1/Requests/CurrencyRequest.php
+++ b/app/Api/V1/Requests/CurrencyRequest.php
@@ -80,4 +80,4 @@ class CurrencyRequest extends Request
return $rules;
}
-}
\ No newline at end of file
+}
diff --git a/app/Import/JobConfiguration/FakeJobConfiguration.php b/app/Import/JobConfiguration/FakeJobConfiguration.php
index f4d8e6e772..657546944e 100644
--- a/app/Import/JobConfiguration/FakeJobConfiguration.php
+++ b/app/Import/JobConfiguration/FakeJobConfiguration.php
@@ -163,4 +163,4 @@ class FakeJobConfiguration implements JobConfigurationInterface
$this->job = $job;
$this->repository->setUser($job->user);
}
-}
\ No newline at end of file
+}
diff --git a/app/Import/JobConfiguration/FileJobConfiguration.php b/app/Import/JobConfiguration/FileJobConfiguration.php
new file mode 100644
index 0000000000..6229bee3de
--- /dev/null
+++ b/app/Import/JobConfiguration/FileJobConfiguration.php
@@ -0,0 +1,89 @@
+<?php
+declare(strict_types=1);
+/**
+ * FileJobConfiguration.php
+ * Copyright (c) 2018 [email protected]
+ *
+ * This file is part of Firefly III.
+ *
+ * Firefly III is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * Firefly III is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
+ */
+
+namespace FireflyIII\Import\JobConfiguration;
+
+
+use FireflyIII\Models\ImportJob;
+use Illuminate\Support\MessageBag;
+
+class FileJobConfiguration implements JobConfigurationInterface
+{
+
+ /**
+ * ConfiguratorInterface constructor.
+ */
+ public function __construct()
+ {
+ }
+
+ /**
+ * Store any data from the $data array into the job. Anything in the message bag will be flashed
+ * as an error to the user, regardless of its content.
+ *
+ * @param array $data
+ *
+ * @return MessageBag
+ */
+ public function configureJob(array $data): MessageBag
+ {
+ // TODO: Implement configureJob() method.
+ }
+
+ /**
+ * Return the data required for the next step in the job configuration.
+ *
+ * @return array
+ */
+ public function getNextData(): array
+ {
+ // TODO: Implement getNextData() method.
+ }
+
+ /**
+ * Returns the view of the next step in the job configuration.
+ *
+ * @return string
+ */
+ public function getNextView(): string
+ {
+ // TODO: Implement getNextView() method.
+ }
+
+ /**
+ * Returns true when the initial configuration for this job is complete.
+ *
+ * @return bool
+ */
+ public function configurationComplete(): bool
+ {
+ // TODO: Implement configurationComplete() method.
+ }
+
+ /**
+ * @param ImportJob $job
+ */
+ public function setJob(ImportJob $job): void
+ {
+ // TODO: Implement setJob() method.
+ }
+}
diff --git a/app/Import/Prerequisites/BunqPrerequisites.php b/app/Import/Prerequisites/BunqPrerequisites.php
index fe6d46c0f9..ac4056fe7c 100644
--- a/app/Import/Prerequisites/BunqPrerequisites.php
+++ b/app/Import/Prerequisites/BunqPrerequisites.php
@@ -36,146 +36,146 @@ use Preferences;
*/
class BunqPrerequisites implements PrerequisitesInterface
{
-// /** @var User */
-// private $user;
-//
-// /**
-// * Returns view name that allows user to fill in prerequisites. Currently asks for the API key.
-// *
-// * @return string
-// */
-// public function getView(): string
-// {
-// Log::debug('Now in BunqPrerequisites::getView()');
-//
-// return 'import.bunq.prerequisites';
-// }
-//
-// /**
-// * Returns any values required for the prerequisites-view.
-// *
-// * @return array
-// */
-// public function getViewParameters(): array
-// {
-// Log::debug('Now in BunqPrerequisites::getViewParameters()');
-// $key = '';
-// $serverIP = '';
-// if ($this->hasApiKey()) {
-// $key = Preferences::getForUser($this->user, 'bunq_api_key', null)->data;
-// }
-// if ($this->hasServerIP()) {
-// $serverIP = Preferences::getForUser($this->user, 'external_ip', null)->data;
-// }
-// if (!$this->hasServerIP()) {
-// /** @var IPRetrievalInterface $service */
-// $service = app(IPRetrievalInterface::class);
-// $serverIP = (string)$service->getIP();
-// }
-//
-//
-// // get IP address
-// return ['key' => $key, 'ip' => $serverIP];
-// }
-//
-// /**
-// * Returns if this import method has any special prerequisites such as config
-// * variables or other things. The only thing we verify is the presence of the API key. Everything else
-// * tumbles into place: no installation token? Will be requested. No device server? Will be created. Etc.
-// *
-// * @return bool
-// */
-// public function hasPrerequisites(): bool
-// {
-// $hasApiKey = $this->hasApiKey();
-// $hasServerIP = $this->hasServerIP();
-//
-// return !$hasApiKey || !$hasServerIP;
-// }
-//
-// /**
-// * Indicate if all prerequisites have been met.
-// *
-// * @return bool
-// */
-// public function isComplete(): bool
-// {
-// // is complete when user has entered both the API key
-// // and his IP address.
-//
-// $hasApiKey = $this->hasApiKey();
-// $hasServerIP = $this->hasServerIP();
-//
-// return $hasApiKey && $hasServerIP;
-// }
-//
-// /**
-// * Set the user for this Prerequisites-routine. Class is expected to implement and save this.
-// *
-// * @param User $user
-// */
-// public function setUser(User $user): void
-// {
-// Log::debug(sprintf('Now in setUser(#%d)', $user->id));
-// $this->user = $user;
-// }
-//
-// /**
-// * This method responds to the user's submission of an API key. It tries to register this instance as a new Firefly III device.
-// * If this fails, the error is returned in a message bag and the user is notified (this is fairly friendly).
-// *
-// * @param Request $request
-// *
-// * @return MessageBag
-// */
-// public function storePrerequisites(Request $request): MessageBag
-// {
-// $apiKey = $request->get('api_key');
-// $serverIP = $request->get('external_ip');
-// Log::debug('Storing bunq API key');
-// Preferences::setForUser($this->user, 'bunq_api_key', $apiKey);
-// Preferences::setForUser($this->user, 'external_ip', $serverIP);
-//
-// return new MessageBag;
-// }
-//
-// /**
-// * @return bool
-// */
-// private function hasApiKey(): bool
-// {
-// $apiKey = Preferences::getForUser($this->user, 'bunq_api_key', false);
-// if (null === $apiKey) {
-// return false;
-// }
-// if (null === $apiKey->data) {
-// return false;
-// }
-// if (\strlen((string)$apiKey->data) === 64) {
-// return true;
-// }
-//
-// return false;
-// }
-//
-// /**
-// * @return bool
-// */
-// private function hasServerIP(): bool
-// {
-// $serverIP = Preferences::getForUser($this->user, 'external_ip', false);
-// if (null === $serverIP) {
-// return false;
-// }
-// if (null === $serverIP->data) {
-// return false;
-// }
-// if (\strlen((string)$serverIP->data) > 6) {
-// return true;
-// }
-//
-// return false;
-// }
+ /** @var User */
+ private $user;
+ //
+ // /**
+ // * Returns view name that allows user to fill in prerequisites. Currently asks for the API key.
+ // *
+ // * @return string
+ // */
+ // public function getView(): string
+ // {
+ // Log::debug('Now in BunqPrerequisites::getView()');
+ //
+ // return 'import.bunq.prerequisites';
+ // }
+ //
+ // /**
+ // * Returns any values required for the prerequisites-view.
+ // *
+ // * @return array
+ // */
+ // public function getViewParameters(): array
+ // {
+ // Log::debug('Now in BunqPrerequisites::getViewParameters()');
+ // $key = '';
+ // $serverIP = '';
+ // if ($this->hasApiKey()) {
+ // $key = Preferences::getForUser($this->user, 'bunq_api_key', null)->data;
+ // }
+ // if ($this->hasServerIP()) {
+ // $serverIP = Preferences::getForUser($this->user, 'external_ip', null)->data;
+ // }
+ // if (!$this->hasServerIP()) {
+ // /** @var IPRetrievalInterface $service */
+ // $service = app(IPRetrievalInterface::class);
+ // $serverIP = (string)$service->getIP();
+ // }
+ //
+ //
+ // // get IP address
+ // return ['key' => $key, 'ip' => $serverIP];
+ // }
+ //
+ // /**
+ // * Returns if this import method has any special prerequisites such as config
+ // * variables or other things. The only thing we verify is the presence of the API key. Everything else
+ // * tumbles into place: no installation token? Will be requested. No device server? Will be created. Etc.
+ // *
+ // * @return bool
+ // */
+ // public function hasPrerequisites(): bool
+ // {
+ // $hasApiKey = $this->hasApiKey();
+ // $hasServerIP = $this->hasServerIP();
+ //
+ // return !$hasApiKey || !$hasServerIP;
+ // }
+ //
+ // /**
+ // * Indicate if all prerequisites have been met.
+ // *
+ // * @return bool
+ // */
+ // public function isComplete(): bool
+ // {
+ // // is complete when user has entered both the API key
+ // // and his IP address.
+ //
+ // $hasApiKey = $this->hasApiKey();
+ // $hasServerIP = $this->hasServerIP();
+ //
+ // return $hasApiKey && $hasServerIP;
+ // }
+ //
+ // /**
+ // * Set the user for this Prerequisites-routine. Class is expected to implement and save this.
+ // *
+ // * @param User $user
+ // */
+ // public function setUser(User $user): void
+ // {
+ // Log::debug(sprintf('Now in setUser(#%d)', $user->id));
+ // $this->user = $user;
+ // }
+ //
+ // /**
+ // * This method responds to the user's submission of an API key. It tries to register this instance as a new Firefly III device.
+ // * If this fails, the error is returned in a message bag and the user is notified (this is fairly friendly).
+ // *
+ // * @param Request $request
+ // *
+ // * @return MessageBag
+ // */
+ // public function storePrerequisites(Request $request): MessageBag
+ // {
+ // $apiKey = $request->get('api_key');
+ // $serverIP = $request->get('external_ip');
+ // Log::debug('Storing bunq API key');
+ // Preferences::setForUser($this->user, 'bunq_api_key', $apiKey);
+ // Preferences::setForUser($this->user, 'external_ip', $serverIP);
+ //
+ // return new MessageBag;
+ // }
+ //
+ // /**
+ // * @return bool
+ // */
+ // private function hasApiKey(): bool
+ // {
+ // $apiKey = Preferences::getForUser($this->user, 'bunq_api_key', false);
+ // if (null === $apiKey) {
+ // return false;
+ // }
+ // if (null === $apiKey->data) {
+ // return false;
+ // }
+ // if (\strlen((string)$apiKey->data) === 64) {
+ // return true;
+ // }
+ //
+ // return false;
+ // }
+ //
+ // /**
+ // * @return bool
+ // */
+ // private function hasServerIP(): bool
+ // {
+ // $serverIP = Preferences::getForUser($this->user, 'external_ip', false);
+ // if (null === $serverIP) {
+ // return false;
+ // }
+ // if (null === $serverIP->data) {
+ // return false;
+ // }
+ // if (\strlen((string)$serverIP->data) > 6) {
+ // return true;
+ // }
+ //
+ // return false;
+ // }
/**
* Returns view name that allows user to fill in prerequisites.
*
@@ -183,8 +183,7 @@ class BunqPrerequisites implements PrerequisitesInterface
*/
public function getView(): string
{
- // TODO: Implement getView() method.
- throw new NotImplementedException;
+ return 'todo';
}
/**
@@ -194,8 +193,7 @@ class BunqPrerequisites implements PrerequisitesInterface
*/
public function getViewParameters(): array
{
- // TODO: Implement getViewParameters() method.
- throw new NotImplementedException;
+ return [];
}
/**
@@ -205,8 +203,7 @@ class BunqPrerequisites implements PrerequisitesInterface
*/
public function isComplete(): bool
{
- // TODO: Implement isComplete() method.
- throw new NotImplementedException;
+ return false;
}
/**
@@ -216,8 +213,7 @@ class BunqPrerequisites implements PrerequisitesInterface
*/
public function setUser(User $user): void
{
- // TODO: Implement setUser() method.
- throw new NotImplementedException;
+ $this->user = $user;
}
/**
@@ -231,7 +227,6 @@ class BunqPrerequisites implements PrerequisitesInterface
*/
public function storePrerequisites(array $data): MessageBag
{
- // TODO: Implement storePrerequisites() method.
- throw new NotImplementedException;
+ return new MessageBag;
}
}
diff --git a/app/Import/Prerequisites/FilePrerequisites.php b/app/Import/Prerequisites/FilePrerequisites.php
index 7e9ee6becc..07e236af14 100644
--- a/app/Import/Prerequisites/FilePrerequisites.php
+++ b/app/Import/Prerequisites/FilePrerequisites.php
@@ -34,83 +34,83 @@ use Illuminate\Support\MessageBag;
*/
class FilePrerequisites implements PrerequisitesInterface
{
-// /** @var User */
-// private $user;
-//
-// /**
-// * Returns view name that allows user to fill in prerequisites. Currently asks for the API key.
-// *
-// * @return string
-// */
-// public function getView(): string
-// {
-// return '';
-// }
-//
-// /**
-// * Returns any values required for the prerequisites-view.
-// *
-// * @return array
-// */
-// public function getViewParameters(): array
-// {
-// return [];
-// }
-//
-// /**
-// * Returns if this import method has any special prerequisites such as config
-// * variables or other things. The only thing we verify is the presence of the API key. Everything else
-// * tumbles into place: no installation token? Will be requested. No device server? Will be created. Etc.
-// *
-// * True if prerequisites. False if not.
-// *
-// * @return bool
-// *
-// * @throws FireflyException
-// */
-// public function hasPrerequisites(): bool
-// {
-// if ($this->user->hasRole('demo')) {
-// throw new FireflyException('Apologies, the demo user cannot import files.');
-// }
-//
-// return false;
-// }
-//
-// /**
-// * Indicate if all prerequisites have been met.
-// *
-// * @return bool
-// */
-// public function isComplete(): bool
-// {
-// // has no prerequisites, so always return true.
-// return true;
-// }
-//
-// /**
-// * Set the user for this Prerequisites-routine. Class is expected to implement and save this.
-// *
-// * @param User $user
-// */
-// public function setUser(User $user): void
-// {
-// $this->user = $user;
-//
-// }
-//
-// /**
-// * This method responds to the user's submission of an API key. It tries to register this instance as a new Firefly III device.
-// * If this fails, the error is returned in a message bag and the user is notified (this is fairly friendly).
-// *
-// * @param Request $request
-// *
-// * @return MessageBag
-// */
-// public function storePrerequisites(Request $request): MessageBag
-// {
-// return new MessageBag;
-// }
+ // /** @var User */
+ // private $user;
+ //
+ // /**
+ // * Returns view name that allows user to fill in prerequisites. Currently asks for the API key.
+ // *
+ // * @return string
+ // */
+ // public function getView(): string
+ // {
+ // return '';
+ // }
+ //
+ // /**
+ // * Returns any values required for the prerequisites-view.
+ // *
+ // * @return array
+ // */
+ // public function getViewParameters(): array
+ // {
+ // return [];
+ // }
+ //
+ // /**
+ // * Returns if this import method has any special prerequisites such as config
+ // * variables or other things. The only thing we verify is the presence of the API key. Everything else
+ // * tumbles into place: no installation token? Will be requested. No device server? Will be created. Etc.
+ // *
+ // * True if prerequisites. False if not.
+ // *
+ // * @return bool
+ // *
+ // * @throws FireflyException
+ // */
+ // public function hasPrerequisites(): bool
+ // {
+ // if ($this->user->hasRole('demo')) {
+ // throw new FireflyException('Apologies, the demo user cannot import files.');
+ // }
+ //
+ // return false;
+ // }
+ //
+ // /**
+ // * Indicate if all prerequisites have been met.
+ // *
+ // * @return bool
+ // */
+ // public function isComplete(): bool
+ // {
+ // // has no prerequisites, so always return true.
+ // return true;
+ // }
+ //
+ // /**
+ // * Set the user for this Prerequisites-routine. Class is expected to implement and save this.
+ // *
+ // * @param User $user
+ // */
+ // public function setUser(User $user): void
+ // {
+ // $this->user = $user;
+ //
+ // }
+ //
+ // /**
+ // * This method responds to the user's submission of an API key. It tries to register this instance as a new Firefly III device.
+ // * If this fails, the error is returned in a message bag and the user is notified (this is fairly friendly).
+ // *
+ // * @param Request $request
+ // *
+ // * @return MessageBag
+ // */
+ // public function storePrerequisites(Request $request): MessageBag
+ // {
+ // return new MessageBag;
+ // }
/**
* Returns view name that allows user to fill in prerequisites.
*
@@ -118,8 +118,7 @@ class FilePrerequisites implements PrerequisitesInterface
*/
public function getView(): string
{
- // TODO: Implement getView() method.
- throw new NotImplementedException;
+ return '';
}
/**
@@ -129,8 +128,7 @@ class FilePrerequisites implements PrerequisitesInterface
*/
public function getViewParameters(): array
{
- // TODO: Implement getViewParameters() method.
- throw new NotImplementedException;
+ return [];
}
/**
@@ -140,8 +138,7 @@ class FilePrerequisites implements PrerequisitesInterface
*/
public function isComplete(): bool
{
- // TODO: Implement isComplete() method.
- throw new NotImplementedException;
+ return true;
}
/**
@@ -151,8 +148,7 @@ class FilePrerequisites implements PrerequisitesInterface
*/
public function setUser(User $user): void
{
- // TODO: Implement setUser() method.
- throw new NotImplementedException;
+
}
/**
@@ -166,7 +162,6 @@ class FilePrerequisites implements PrerequisitesInterface
*/
public function storePrerequisites(array $data): MessageBag
{
- // TODO: Implement storePrerequisites() method.
- throw new NotImplementedException;
+ return new MessageBag;
}
}
diff --git a/app/Import/Prerequisites/SpectrePrerequisites.php b/app/Import/Prerequisites/SpectrePrerequisites.php
index 80bd702b4f..35ef68b989 100644
--- a/app/Import/Prerequisites/SpectrePrerequisites.php
+++ b/app/Import/Prerequisites/SpectrePrerequisites.php
@@ -196,8 +196,7 @@ class SpectrePrerequisites implements PrerequisitesInterface
*/
public function getView(): string
{
- // TODO: Implement getView() method.
- throw new NotImplementedException;
+ return '';
}
/**
@@ -207,8 +206,7 @@ class SpectrePrerequisites implements PrerequisitesInterface
*/
public function getViewParameters(): array
{
- // TODO: Implement getViewParameters() method.
- throw new NotImplementedException;
+ return [];
}
/**
@@ -218,8 +216,7 @@ class SpectrePrerequisites implements PrerequisitesInterface
*/
public function isComplete(): bool
{
- // TODO: Implement isComplete() method.
- throw new NotImplementedException;
+ return false;
}
/**
@@ -229,8 +226,6 @@ class SpectrePrerequisites implements PrerequisitesInterface
*/
public function setUser(User $user): void
{
- // TODO: Implement setUser() method.
- throw new NotImplementedException;
}
/**
@@ -244,7 +239,6 @@ class SpectrePrerequisites implements PrerequisitesInterface
*/
public function storePrerequisites(array $data): MessageBag
{
- // TODO: Implement storePrerequisites() method.
- throw new NotImplementedException;
+ return new MessageBag;
}
}
diff --git a/app/Import/Routine/FakeRoutine.php b/app/Import/Routine/FakeRoutine.php
index ea626e3e19..5d392dcd8a 100644
--- a/app/Import/Routine/FakeRoutine.php
+++ b/app/Import/Routine/FakeRoutine.php
@@ -108,4 +108,4 @@ class FakeRoutine implements RoutineInterface
$this->job = $job;
$this->repository->setUser($job->user);
}
-}
\ No newline at end of file
+}
diff --git a/app/Import/Storage/ImportArrayStorage.php b/app/Import/Storage/ImportArrayStorage.php
index 1f1add01cd..35b49cfe80 100644
--- a/app/Import/Storage/ImportArrayStorage.php
+++ b/app/Import/Storage/ImportArrayStorage.php
@@ -1,4 +1,5 @@
<?php
+declare(strict_types=1);
namespace FireflyIII\Import\Storage;
@@ -458,4 +459,4 @@ class ImportArrayStorage
return $totalHits >= $requiredHits;
}
-}
\ No newline at end of file
+}
diff --git a/app/Services/IP/IPRetrievalInterface.php b/app/Services/IP/IPRetrievalInterface.php
index 69ca1132a9..5bd2966e4a 100644
--- a/app/Services/IP/IPRetrievalInterface.php
+++ b/app/Services/IP/IPRetrievalInterface.php
@@ -37,4 +37,4 @@ interface IPRetrievalInterface
* @return null|string
*/
public function getIP(): ?string;
-}
\ No newline at end of file
+}
diff --git a/app/Services/IP/IpifyOrg.php b/app/Services/IP/IpifyOrg.php
index 89256e9024..2e72e23c9c 100644
--- a/app/Services/IP/IpifyOrg.php
+++ b/app/Services/IP/IpifyOrg.php
@@ -57,4 +57,4 @@ class IpifyOrg implements IPRetrievalInterface
return (string)$response->body;
}
-}
\ No newline at end of file
+}
diff --git a/app/Services/Spectre/Exception/WrongRequestFormatException.php b/app/Services/Spectre/Exception/WrongRequestFormatException.php
index ac0469f068..dea494a798 100644
--- a/app/Services/Spectre/Exception/WrongRequestFormatException.php
+++ b/app/Services/Spectre/Exception/WrongRequestFormatException.php
@@ -29,4 +29,4 @@ namespace FireflyIII\Services\Spectre\Exception;
class WrongRequestFormatException extends SpectreException
{
-}
\ No newline at end of file
+}
diff --git a/app/Support/Binder/SimpleJournalList.php b/app/Support/Binder/SimpleJournalList.php
index 0b3dadf344..c356331b48 100644
--- a/app/Support/Binder/SimpleJournalList.php
+++ b/app/Support/Binder/SimpleJournalList.php
@@ -108,4 +108,4 @@ class SimpleJournalList implements BinderInterface
}
throw new NotFoundHttpException;
}
-}
\ No newline at end of file
+}
diff --git a/app/Support/Import/Routine/Fake/StageAhoyHandler.php b/app/Support/Import/Routine/Fake/StageAhoyHandler.php
index d26f3db8c4..8c4bb211c0 100644
--- a/app/Support/Import/Routine/Fake/StageAhoyHandler.php
+++ b/app/Support/Import/Routine/Fake/StageAhoyHandler.php
@@ -43,4 +43,4 @@ class StageAhoyHandler
}
}
-}
\ No newline at end of file
+}
diff --git a/app/Support/Import/Routine/Fake/StageFinalHandler.php b/app/Support/Import/Routine/Fake/StageFinalHandler.php
index b16c74ac0c..94f48ce3f9 100644
--- a/app/Support/Import/Routine/Fake/StageFinalHandler.php
+++ b/app/Support/Import/Routine/Fake/StageFinalHandler.php
@@ -1,4 +1,5 @@
<?php
+declare(strict_types=1);
namespace FireflyIII\Support\Import\Routine\Fake;
@@ -123,4 +124,4 @@ class StageFinalHandler
}
-}
\ No newline at end of file
+}
diff --git a/app/Support/Import/Routine/Fake/StageNewHandler.php b/app/Support/Import/Routine/Fake/StageNewHandler.php
index 6051c199ac..2c0f7cdd3c 100644
--- a/app/Support/Import/Routine/Fake/StageNewHandler.php
+++ b/app/Support/Import/Routine/Fake/StageNewHandler.php
@@ -43,4 +43,4 @@ class StageNewHandler
}
}
-}
\ No newline at end of file
+}
diff --git a/database/migrations/2018_04_07_210913_changes_for_v473.php b/database/migrations/2018_04_07_210913_changes_for_v473.php
index 0e9492ca88..bdb3b43e0e 100644
--- a/database/migrations/2018_04_07_210913_changes_for_v473.php
+++ b/database/migrations/2018_04_07_210913_changes_for_v473.php
@@ -1,4 +1,5 @@
<?php
+declare(strict_types=1);
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
diff --git a/database/migrations/2018_04_29_174524_changes_for_v474.php b/database/migrations/2018_04_29_174524_changes_for_v474.php
index d47561bcc9..c0fa438549 100644
--- a/database/migrations/2018_04_29_174524_changes_for_v474.php
+++ b/database/migrations/2018_04_29_174524_changes_for_v474.php
@@ -1,4 +1,5 @@
<?php
+declare(strict_types=1);
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
diff --git a/tests/Api/V1/Controllers/CurrencyControllerTest.php b/tests/Api/V1/Controllers/CurrencyControllerTest.php
index 6e6fc5b27f..48c3c47610 100644
--- a/tests/Api/V1/Controllers/CurrencyControllerTest.php
+++ b/tests/Api/V1/Controllers/CurrencyControllerTest.php
@@ -272,4 +272,4 @@ class CurrencyControllerTest extends TestCase
$response->assertHeader('Content-Type', 'application/vnd.api+json');
$response->assertSee($currency->name);
}
-}
\ No newline at end of file
+}
diff --git a/tests/Feature/Controllers/Import/JobConfigurationControllerTest.php b/tests/Feature/Controllers/Import/JobConfigurationControllerTest.php
index e10de14b87..dd04607562 100644
--- a/tests/Feature/Controllers/Import/JobConfigurationControllerTest.php
+++ b/tests/Feature/Controllers/Import/JobConfigurationControllerTest.php
@@ -225,4 +225,4 @@ class JobConfigurationControllerTest extends TestCase
}
-}
\ No newline at end of file
+}
diff --git a/tests/Unit/Handlers/Events/VersionCheckEventHandlerTest.php b/tests/Unit/Handlers/Events/VersionCheckEventHandlerTest.php
index cc00e06c22..5f289b62c3 100644
--- a/tests/Unit/Handlers/Events/VersionCheckEventHandlerTest.php
+++ b/tests/Unit/Handlers/Events/VersionCheckEventHandlerTest.php
@@ -169,4 +169,4 @@ class VersionCheckEventHandlerTest extends TestCase
$handler->checkForUpdates($event);
}
-}
\ No newline at end of file
+}
diff --git a/tests/Unit/Import/JobConfiguration/FakeJobConfigurationTest.php b/tests/Unit/Import/JobConfiguration/FakeJobConfigurationTest.php
index 10027d3dbe..a6111b24cb 100644
--- a/tests/Unit/Import/JobConfiguration/FakeJobConfigurationTest.php
+++ b/tests/Unit/Import/JobConfiguration/FakeJobConfigurationTest.php
@@ -590,4 +590,4 @@ class FakeJobConfigurationTest extends TestCase
$view = $configurator->getNextView();
$this->assertEquals('import.fake.enter-song', $view);
}
-}
\ No newline at end of file
+}
diff --git a/tests/Unit/Import/Prerequisites/FakePrerequisitesTest.php b/tests/Unit/Import/Prerequisites/FakePrerequisitesTest.php
index dd15107619..7aa2d9d289 100644
--- a/tests/Unit/Import/Prerequisites/FakePrerequisitesTest.php
+++ b/tests/Unit/Import/Prerequisites/FakePrerequisitesTest.php
@@ -171,4 +171,4 @@ class FakePrerequisitesTest extends TestCase
$this->assertCount(0, $messages);
}
-}
\ No newline at end of file
+}
diff --git a/tests/Unit/Import/Routine/FakeRoutineTest.php b/tests/Unit/Import/Routine/FakeRoutineTest.php
index 70d21d4e21..9f2abdc9f3 100644
--- a/tests/Unit/Import/Routine/FakeRoutineTest.php
+++ b/tests/Unit/Import/Routine/FakeRoutineTest.php
@@ -144,4 +144,4 @@ class FakeRoutineTest extends TestCase
}
}
-}
\ No newline at end of file
+}
diff --git a/tests/Unit/Import/Specifics/AbnAmroDescriptionTest.php b/tests/Unit/Import/Specifics/AbnAmroDescriptionTest.php
index 97ace313bb..4f6ebad8c4 100644
--- a/tests/Unit/Import/Specifics/AbnAmroDescriptionTest.php
+++ b/tests/Unit/Import/Specifics/AbnAmroDescriptionTest.php
@@ -165,4 +165,4 @@ class AbnAmroDescriptionTest extends TestCase
}
-}
\ No newline at end of file
+}
diff --git a/tests/Unit/Import/Specifics/IngDescriptionTest.php b/tests/Unit/Import/Specifics/IngDescriptionTest.php
index 70638e13a3..f9e142f773 100644
--- a/tests/Unit/Import/Specifics/IngDescriptionTest.php
+++ b/tests/Unit/Import/Specifics/IngDescriptionTest.php
@@ -135,4 +135,4 @@ class IngDescriptionTest extends TestCase
$this->assertEquals($row, $result);
}
-}
\ No newline at end of file
+}
diff --git a/tests/Unit/Import/Specifics/PresidentsChoiceTest.php b/tests/Unit/Import/Specifics/PresidentsChoiceTest.php
index d6e509f880..e2ba5bd6e6 100644
--- a/tests/Unit/Import/Specifics/PresidentsChoiceTest.php
+++ b/tests/Unit/Import/Specifics/PresidentsChoiceTest.php
@@ -58,4 +58,4 @@ class PresidentsChoiceTest extends TestCase
}
-}
\ No newline at end of file
+}
diff --git a/tests/Unit/Import/Specifics/RabobankDescriptionTest.php b/tests/Unit/Import/Specifics/RabobankDescriptionTest.php
index b3f437b030..1e881ef85b 100644
--- a/tests/Unit/Import/Specifics/RabobankDescriptionTest.php
+++ b/tests/Unit/Import/Specifics/RabobankDescriptionTest.php
@@ -72,4 +72,4 @@ class RabobankDescriptionTest extends TestCase
$this->assertEquals($row, $result);
}
-}
\ No newline at end of file
+}
diff --git a/tests/Unit/Import/Specifics/SnsDescriptionTest.php b/tests/Unit/Import/Specifics/SnsDescriptionTest.php
index 9069784627..30b985a920 100644
--- a/tests/Unit/Import/Specifics/SnsDescriptionTest.php
+++ b/tests/Unit/Import/Specifics/SnsDescriptionTest.php
@@ -69,4 +69,4 @@ class SnsDescriptionTest extends TestCase
$this->assertEquals('Some text', $result[17]);
}
-}
\ No newline at end of file
+}
diff --git a/tests/Unit/Import/Storage/ImportArrayStorageTest.php b/tests/Unit/Import/Storage/ImportArrayStorageTest.php
index e3e66d6f93..6392ec730f 100644
--- a/tests/Unit/Import/Storage/ImportArrayStorageTest.php
+++ b/tests/Unit/Import/Storage/ImportArrayStorageTest.php
@@ -632,4 +632,4 @@ class ImportArrayStorageTest extends TestCase
],
];
}
-}
\ No newline at end of file
+}