From 195a32614b221cb9954aedd79cec3376d0550ff7 Mon Sep 17 00:00:00 2001 From: Johan Cwiklinski Date: Thu, 16 May 2024 07:55:42 +0200 Subject: [PATCH] Strict types declaration --- _config.inc.php | 2 ++ _define.php | 2 ++ _routes.php | 2 ++ lib/GaletteAuto/AbstractObject.php | 2 ++ lib/GaletteAuto/Auto.php | 2 ++ lib/GaletteAuto/Autos.php | 2 ++ lib/GaletteAuto/Body.php | 2 ++ lib/GaletteAuto/Brand.php | 2 ++ lib/GaletteAuto/Color.php | 2 ++ lib/GaletteAuto/Controllers/Controller.php | 2 ++ lib/GaletteAuto/Controllers/Crud/ModelsController.php | 2 ++ lib/GaletteAuto/Controllers/Crud/PropertiesController.php | 2 ++ lib/GaletteAuto/Filters/AutosList.php | 2 ++ lib/GaletteAuto/Filters/ModelsList.php | 2 ++ lib/GaletteAuto/Filters/PropertiesList.php | 2 ++ lib/GaletteAuto/Finition.php | 2 ++ lib/GaletteAuto/History.php | 2 ++ lib/GaletteAuto/Model.php | 2 ++ lib/GaletteAuto/Picture.php | 2 ++ lib/GaletteAuto/PluginGaletteAuto.php | 2 ++ lib/GaletteAuto/Repository/Models.php | 2 ++ lib/GaletteAuto/State.php | 2 ++ lib/GaletteAuto/Transmission.php | 2 ++ 23 files changed, 46 insertions(+) diff --git a/_config.inc.php b/_config.inc.php index 2586ced..b0c4de5 100644 --- a/_config.inc.php +++ b/_config.inc.php @@ -19,4 +19,6 @@ * along with Galette. If not, see . */ +declare(strict_types=1); + define('AUTO_PREFIX', 'auto_'); diff --git a/_define.php b/_define.php index ddec28a..bd89cbc 100644 --- a/_define.php +++ b/_define.php @@ -19,6 +19,8 @@ * along with Galette. If not, see . */ +declare(strict_types=1); + $this->register( 'Galette Auto', //Name 'Plugin to manage Automobile clubs', //Short description diff --git a/_routes.php b/_routes.php index dc55304..d228365 100644 --- a/_routes.php +++ b/_routes.php @@ -19,6 +19,8 @@ * along with Galette. If not, see . */ +declare(strict_types=1); + use GaletteAuto\Controllers\Controller; use GaletteAuto\Controllers\Crud\PropertiesController; use GaletteAuto\Controllers\Crud\ModelsController; diff --git a/lib/GaletteAuto/AbstractObject.php b/lib/GaletteAuto/AbstractObject.php index 4f9fea9..3c9d6d4 100644 --- a/lib/GaletteAuto/AbstractObject.php +++ b/lib/GaletteAuto/AbstractObject.php @@ -19,6 +19,8 @@ * along with Galette. If not, see . */ +declare(strict_types=1); + namespace GaletteAuto; use Analog\Analog; diff --git a/lib/GaletteAuto/Auto.php b/lib/GaletteAuto/Auto.php index c032ce9..8011e40 100644 --- a/lib/GaletteAuto/Auto.php +++ b/lib/GaletteAuto/Auto.php @@ -19,6 +19,8 @@ * along with Galette. If not, see . */ +declare(strict_types=1); + namespace GaletteAuto; use ArrayObject; diff --git a/lib/GaletteAuto/Autos.php b/lib/GaletteAuto/Autos.php index 510a974..b500d6f 100644 --- a/lib/GaletteAuto/Autos.php +++ b/lib/GaletteAuto/Autos.php @@ -19,6 +19,8 @@ * along with Galette. If not, see . */ +declare(strict_types=1); + namespace GaletteAuto; use Analog\Analog; diff --git a/lib/GaletteAuto/Body.php b/lib/GaletteAuto/Body.php index 02e9890..bcc1fda 100644 --- a/lib/GaletteAuto/Body.php +++ b/lib/GaletteAuto/Body.php @@ -19,6 +19,8 @@ * along with Galette. If not, see . */ +declare(strict_types=1); + namespace GaletteAuto; use Galette\Core\Db; diff --git a/lib/GaletteAuto/Brand.php b/lib/GaletteAuto/Brand.php index a880475..60beae9 100644 --- a/lib/GaletteAuto/Brand.php +++ b/lib/GaletteAuto/Brand.php @@ -19,6 +19,8 @@ * along with Galette. If not, see . */ +declare(strict_types=1); + namespace GaletteAuto; use Galette\Core\Db; diff --git a/lib/GaletteAuto/Color.php b/lib/GaletteAuto/Color.php index 8daa1ef..883b5e5 100644 --- a/lib/GaletteAuto/Color.php +++ b/lib/GaletteAuto/Color.php @@ -19,6 +19,8 @@ * along with Galette. If not, see . */ +declare(strict_types=1); + namespace GaletteAuto; use Galette\Core\Db; diff --git a/lib/GaletteAuto/Controllers/Controller.php b/lib/GaletteAuto/Controllers/Controller.php index 02fdbcf..a3da803 100644 --- a/lib/GaletteAuto/Controllers/Controller.php +++ b/lib/GaletteAuto/Controllers/Controller.php @@ -19,6 +19,8 @@ * along with Galette. If not, see . */ +declare(strict_types=1); + namespace GaletteAuto\Controllers; use ArrayObject; diff --git a/lib/GaletteAuto/Controllers/Crud/ModelsController.php b/lib/GaletteAuto/Controllers/Crud/ModelsController.php index f0cd43d..cb3514b 100644 --- a/lib/GaletteAuto/Controllers/Crud/ModelsController.php +++ b/lib/GaletteAuto/Controllers/Crud/ModelsController.php @@ -19,6 +19,8 @@ * along with Galette. If not, see . */ +declare(strict_types=1); + namespace GaletteAuto\Controllers\Crud; use DI\Attribute\Inject; diff --git a/lib/GaletteAuto/Controllers/Crud/PropertiesController.php b/lib/GaletteAuto/Controllers/Crud/PropertiesController.php index b2a385f..ad87b0d 100644 --- a/lib/GaletteAuto/Controllers/Crud/PropertiesController.php +++ b/lib/GaletteAuto/Controllers/Crud/PropertiesController.php @@ -19,6 +19,8 @@ * along with Galette. If not, see . */ +declare(strict_types=1); + namespace GaletteAuto\Controllers\Crud; use DI\Attribute\Inject; diff --git a/lib/GaletteAuto/Filters/AutosList.php b/lib/GaletteAuto/Filters/AutosList.php index 1a5ab1c..390c9c8 100644 --- a/lib/GaletteAuto/Filters/AutosList.php +++ b/lib/GaletteAuto/Filters/AutosList.php @@ -19,6 +19,8 @@ * along with Galette. If not, see . */ +declare(strict_types=1); + namespace GaletteAuto\Filters; use Galette\Core\Pagination; diff --git a/lib/GaletteAuto/Filters/ModelsList.php b/lib/GaletteAuto/Filters/ModelsList.php index f56e05f..9c007d3 100644 --- a/lib/GaletteAuto/Filters/ModelsList.php +++ b/lib/GaletteAuto/Filters/ModelsList.php @@ -19,6 +19,8 @@ * along with Galette. If not, see . */ +declare(strict_types=1); + namespace GaletteAuto\Filters; use Galette\Core\Pagination; diff --git a/lib/GaletteAuto/Filters/PropertiesList.php b/lib/GaletteAuto/Filters/PropertiesList.php index 0be316b..2ff6c8b 100644 --- a/lib/GaletteAuto/Filters/PropertiesList.php +++ b/lib/GaletteAuto/Filters/PropertiesList.php @@ -19,6 +19,8 @@ * along with Galette. If not, see . */ +declare(strict_types=1); + namespace GaletteAuto\Filters; use Galette\Core\Pagination; diff --git a/lib/GaletteAuto/Finition.php b/lib/GaletteAuto/Finition.php index a51989a..36d575e 100644 --- a/lib/GaletteAuto/Finition.php +++ b/lib/GaletteAuto/Finition.php @@ -19,6 +19,8 @@ * along with Galette. If not, see . */ +declare(strict_types=1); + namespace GaletteAuto; use Galette\Core\Db; diff --git a/lib/GaletteAuto/History.php b/lib/GaletteAuto/History.php index dbfb6bb..bd5eb58 100644 --- a/lib/GaletteAuto/History.php +++ b/lib/GaletteAuto/History.php @@ -19,6 +19,8 @@ * along with Galette. If not, see . */ +declare(strict_types=1); + namespace GaletteAuto; use Analog\Analog; diff --git a/lib/GaletteAuto/Model.php b/lib/GaletteAuto/Model.php index b287820..2817c4c 100644 --- a/lib/GaletteAuto/Model.php +++ b/lib/GaletteAuto/Model.php @@ -19,6 +19,8 @@ * along with Galette. If not, see . */ +declare(strict_types=1); + namespace GaletteAuto; use Analog\Analog; diff --git a/lib/GaletteAuto/Picture.php b/lib/GaletteAuto/Picture.php index 5f85174..e14f068 100644 --- a/lib/GaletteAuto/Picture.php +++ b/lib/GaletteAuto/Picture.php @@ -19,6 +19,8 @@ * along with Galette. If not, see . */ +declare(strict_types=1); + namespace GaletteAuto; use Analog\Analog; diff --git a/lib/GaletteAuto/PluginGaletteAuto.php b/lib/GaletteAuto/PluginGaletteAuto.php index 931b3fc..3fa9ecf 100644 --- a/lib/GaletteAuto/PluginGaletteAuto.php +++ b/lib/GaletteAuto/PluginGaletteAuto.php @@ -19,6 +19,8 @@ * along with Galette. If not, see . */ +declare(strict_types=1); + namespace GaletteAuto; use Galette\Core\Login; diff --git a/lib/GaletteAuto/Repository/Models.php b/lib/GaletteAuto/Repository/Models.php index 2052a28..8e9c47c 100644 --- a/lib/GaletteAuto/Repository/Models.php +++ b/lib/GaletteAuto/Repository/Models.php @@ -19,6 +19,8 @@ * along with Galette. If not, see . */ +declare(strict_types=1); + namespace GaletteAuto\Repository; use Galette\Core\Db; diff --git a/lib/GaletteAuto/State.php b/lib/GaletteAuto/State.php index cdf13a8..b12b248 100644 --- a/lib/GaletteAuto/State.php +++ b/lib/GaletteAuto/State.php @@ -19,6 +19,8 @@ * along with Galette. If not, see . */ +declare(strict_types=1); + namespace GaletteAuto; use Galette\Core\Db; diff --git a/lib/GaletteAuto/Transmission.php b/lib/GaletteAuto/Transmission.php index 3d5f802..87dcc20 100644 --- a/lib/GaletteAuto/Transmission.php +++ b/lib/GaletteAuto/Transmission.php @@ -19,6 +19,8 @@ * along with Galette. If not, see . */ +declare(strict_types=1); + namespace GaletteAuto; use Galette\Core\Db;