Skip to content

Firefly III: a personal finances manager

Make sure that strict_types declaration is always at the very top of the file.

James Coled8c0091680c9
diff --git a/app/Api/V1/Controllers/BillController.php b/app/Api/V1/Controllers/BillController.php
index e49b8f6584..e26b96bbf5 100644
--- a/app/Api/V1/Controllers/BillController.php
+++ b/app/Api/V1/Controllers/BillController.php
@@ -1,4 +1,5 @@
<?php
+declare(strict_types=1);
/**
* BillController.php
* Copyright (c) 2018 [email protected]
@@ -18,7 +19,6 @@
* You should have received a copy of the GNU General Public License
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
*/
-declare(strict_types=1);
namespace FireflyIII\Api\V1\Controllers;
diff --git a/app/Api/V1/Controllers/Controller.php b/app/Api/V1/Controllers/Controller.php
index 1c944b8f75..3b79b6a678 100644
--- a/app/Api/V1/Controllers/Controller.php
+++ b/app/Api/V1/Controllers/Controller.php
@@ -1,4 +1,5 @@
<?php
+declare(strict_types=1);
/**
* Controller.php
* Copyright (c) 2018 [email protected]
@@ -18,7 +19,6 @@
* You should have received a copy of the GNU General Public License
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
*/
-declare(strict_types=1);
namespace FireflyIII\Api\V1\Controllers;
diff --git a/app/Api/V1/Controllers/TransactionController.php b/app/Api/V1/Controllers/TransactionController.php
index 894dc950b3..4ecec57436 100644
--- a/app/Api/V1/Controllers/TransactionController.php
+++ b/app/Api/V1/Controllers/TransactionController.php
@@ -1,4 +1,5 @@
<?php
+declare(strict_types=1);
/**
* TransactionController.php
* Copyright (c) 2018 [email protected]
@@ -19,7 +20,6 @@
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
*/
-declare(strict_types=1);
namespace FireflyIII\Api\V1\Controllers;
diff --git a/app/Api/V1/Controllers/UserController.php b/app/Api/V1/Controllers/UserController.php
index 027d94e9e7..ddc30c04d3 100644
--- a/app/Api/V1/Controllers/UserController.php
+++ b/app/Api/V1/Controllers/UserController.php
@@ -1,4 +1,5 @@
<?php
+declare(strict_types=1);
/**
* UserController.php
* Copyright (c) 2018 [email protected]
@@ -19,7 +20,6 @@
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
*/
-declare(strict_types=1);
namespace FireflyIII\Api\V1\Controllers;
diff --git a/app/Api/V1/Requests/AccountRequest.php b/app/Api/V1/Requests/AccountRequest.php
index fdb789779c..e115c07dc9 100644
--- a/app/Api/V1/Requests/AccountRequest.php
+++ b/app/Api/V1/Requests/AccountRequest.php
@@ -1,4 +1,5 @@
<?php
+declare(strict_types=1);
/**
* AccountRequest.php
* Copyright (c) 2018 [email protected]
@@ -19,7 +20,6 @@
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
*/
-declare(strict_types=1);
namespace FireflyIII\Api\V1\Requests;
diff --git a/app/Api/V1/Requests/BillRequest.php b/app/Api/V1/Requests/BillRequest.php
index 2efd4828cb..9c701e8502 100644
--- a/app/Api/V1/Requests/BillRequest.php
+++ b/app/Api/V1/Requests/BillRequest.php
@@ -1,4 +1,5 @@
<?php
+declare(strict_types=1);
/**
* BillRequest.php
* Copyright (c) 2018 [email protected]
@@ -19,7 +20,6 @@
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
*/
-declare(strict_types=1);
namespace FireflyIII\Api\V1\Requests;
diff --git a/app/Api/V1/Requests/Request.php b/app/Api/V1/Requests/Request.php
index 2c2362314d..509c092956 100644
--- a/app/Api/V1/Requests/Request.php
+++ b/app/Api/V1/Requests/Request.php
@@ -1,4 +1,5 @@
<?php
+declare(strict_types=1);
/**
* Request.php
* Copyright (c) 2018 [email protected]
@@ -18,7 +19,6 @@
* You should have received a copy of the GNU General Public License
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
*/
-declare(strict_types=1);
namespace FireflyIII\Api\V1\Requests;
diff --git a/app/Api/V1/Requests/TransactionRequest.php b/app/Api/V1/Requests/TransactionRequest.php
index 4fdf648e61..dcc4b8e322 100644
--- a/app/Api/V1/Requests/TransactionRequest.php
+++ b/app/Api/V1/Requests/TransactionRequest.php
@@ -1,4 +1,5 @@
<?php
+declare(strict_types=1);
/**
* TransactionRequest.php
* Copyright (c) 2018 [email protected]
@@ -19,7 +20,6 @@
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
*/
-declare(strict_types=1);
namespace FireflyIII\Api\V1\Requests;
diff --git a/app/Api/V1/Requests/UserRequest.php b/app/Api/V1/Requests/UserRequest.php
index 4a5844da49..2a1d76fe86 100644
--- a/app/Api/V1/Requests/UserRequest.php
+++ b/app/Api/V1/Requests/UserRequest.php
@@ -1,4 +1,5 @@
<?php
+declare(strict_types=1);
/**
* UserRequest.php
* Copyright (c) 2018 [email protected]
@@ -19,7 +20,6 @@
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
*/
-declare(strict_types=1);
namespace FireflyIII\Api\V1\Requests;
diff --git a/app/User.php b/app/User.php
index d8d76af5e7..d01ef2daae 100644
--- a/app/User.php
+++ b/app/User.php
@@ -1,4 +1,5 @@
<?php
+declare(strict_types=1);
/**
* User.php
* Copyright (c) 2017 [email protected]
@@ -18,7 +19,6 @@
* You should have received a copy of the GNU General Public License
* along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
*/
-declare(strict_types=1);
namespace FireflyIII;