Skip to content

Commit

Permalink
Strict types declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
trasher committed May 16, 2024
1 parent 0ef2f8e commit 195a326
Show file tree
Hide file tree
Showing 23 changed files with 46 additions and 0 deletions.
2 changes: 2 additions & 0 deletions _config.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,6 @@
* along with Galette. If not, see <http://www.gnu.org/licenses/>.
*/

declare(strict_types=1);

define('AUTO_PREFIX', 'auto_');
2 changes: 2 additions & 0 deletions _define.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
* along with Galette. If not, see <http://www.gnu.org/licenses/>.
*/

declare(strict_types=1);

$this->register(
'Galette Auto', //Name
'Plugin to manage Automobile clubs', //Short description
Expand Down
2 changes: 2 additions & 0 deletions _routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
* along with Galette. If not, see <http://www.gnu.org/licenses/>.
*/

declare(strict_types=1);

use GaletteAuto\Controllers\Controller;
use GaletteAuto\Controllers\Crud\PropertiesController;
use GaletteAuto\Controllers\Crud\ModelsController;
Expand Down
2 changes: 2 additions & 0 deletions lib/GaletteAuto/AbstractObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
* along with Galette. If not, see <http://www.gnu.org/licenses/>.
*/

declare(strict_types=1);

namespace GaletteAuto;

use Analog\Analog;
Expand Down
2 changes: 2 additions & 0 deletions lib/GaletteAuto/Auto.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
* along with Galette. If not, see <http://www.gnu.org/licenses/>.
*/

declare(strict_types=1);

namespace GaletteAuto;

use ArrayObject;
Expand Down
2 changes: 2 additions & 0 deletions lib/GaletteAuto/Autos.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
* along with Galette. If not, see <http://www.gnu.org/licenses/>.
*/

declare(strict_types=1);

namespace GaletteAuto;

use Analog\Analog;
Expand Down
2 changes: 2 additions & 0 deletions lib/GaletteAuto/Body.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
* along with Galette. If not, see <http://www.gnu.org/licenses/>.
*/

declare(strict_types=1);

namespace GaletteAuto;

use Galette\Core\Db;
Expand Down
2 changes: 2 additions & 0 deletions lib/GaletteAuto/Brand.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
* along with Galette. If not, see <http://www.gnu.org/licenses/>.
*/

declare(strict_types=1);

namespace GaletteAuto;

use Galette\Core\Db;
Expand Down
2 changes: 2 additions & 0 deletions lib/GaletteAuto/Color.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
* along with Galette. If not, see <http://www.gnu.org/licenses/>.
*/

declare(strict_types=1);

namespace GaletteAuto;

use Galette\Core\Db;
Expand Down
2 changes: 2 additions & 0 deletions lib/GaletteAuto/Controllers/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
* along with Galette. If not, see <http://www.gnu.org/licenses/>.
*/

declare(strict_types=1);

namespace GaletteAuto\Controllers;

use ArrayObject;
Expand Down
2 changes: 2 additions & 0 deletions lib/GaletteAuto/Controllers/Crud/ModelsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
* along with Galette. If not, see <http://www.gnu.org/licenses/>.
*/

declare(strict_types=1);

namespace GaletteAuto\Controllers\Crud;

use DI\Attribute\Inject;
Expand Down
2 changes: 2 additions & 0 deletions lib/GaletteAuto/Controllers/Crud/PropertiesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
* along with Galette. If not, see <http://www.gnu.org/licenses/>.
*/

declare(strict_types=1);

namespace GaletteAuto\Controllers\Crud;

use DI\Attribute\Inject;
Expand Down
2 changes: 2 additions & 0 deletions lib/GaletteAuto/Filters/AutosList.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
* along with Galette. If not, see <http://www.gnu.org/licenses/>.
*/

declare(strict_types=1);

namespace GaletteAuto\Filters;

use Galette\Core\Pagination;
Expand Down
2 changes: 2 additions & 0 deletions lib/GaletteAuto/Filters/ModelsList.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
* along with Galette. If not, see <http://www.gnu.org/licenses/>.
*/

declare(strict_types=1);

namespace GaletteAuto\Filters;

use Galette\Core\Pagination;
Expand Down
2 changes: 2 additions & 0 deletions lib/GaletteAuto/Filters/PropertiesList.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
* along with Galette. If not, see <http://www.gnu.org/licenses/>.
*/

declare(strict_types=1);

namespace GaletteAuto\Filters;

use Galette\Core\Pagination;
Expand Down
2 changes: 2 additions & 0 deletions lib/GaletteAuto/Finition.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
* along with Galette. If not, see <http://www.gnu.org/licenses/>.
*/

declare(strict_types=1);

namespace GaletteAuto;

use Galette\Core\Db;
Expand Down
2 changes: 2 additions & 0 deletions lib/GaletteAuto/History.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
* along with Galette. If not, see <http://www.gnu.org/licenses/>.
*/

declare(strict_types=1);

namespace GaletteAuto;

use Analog\Analog;
Expand Down
2 changes: 2 additions & 0 deletions lib/GaletteAuto/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
* along with Galette. If not, see <http://www.gnu.org/licenses/>.
*/

declare(strict_types=1);

namespace GaletteAuto;

use Analog\Analog;
Expand Down
2 changes: 2 additions & 0 deletions lib/GaletteAuto/Picture.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
* along with Galette. If not, see <http://www.gnu.org/licenses/>.
*/

declare(strict_types=1);

namespace GaletteAuto;

use Analog\Analog;
Expand Down
2 changes: 2 additions & 0 deletions lib/GaletteAuto/PluginGaletteAuto.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
* along with Galette. If not, see <http://www.gnu.org/licenses/>.
*/

declare(strict_types=1);

namespace GaletteAuto;

use Galette\Core\Login;
Expand Down
2 changes: 2 additions & 0 deletions lib/GaletteAuto/Repository/Models.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
* along with Galette. If not, see <http://www.gnu.org/licenses/>.
*/

declare(strict_types=1);

namespace GaletteAuto\Repository;

use Galette\Core\Db;
Expand Down
2 changes: 2 additions & 0 deletions lib/GaletteAuto/State.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
* along with Galette. If not, see <http://www.gnu.org/licenses/>.
*/

declare(strict_types=1);

namespace GaletteAuto;

use Galette\Core\Db;
Expand Down
2 changes: 2 additions & 0 deletions lib/GaletteAuto/Transmission.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
* along with Galette. If not, see <http://www.gnu.org/licenses/>.
*/

declare(strict_types=1);

namespace GaletteAuto;

use Galette\Core\Db;
Expand Down

0 comments on commit 195a326

Please sign in to comment.