Set strict types everywhere (except includes)

This commit is contained in:
Bot 2023-02-03 20:41:59 +01:00 committed by Igor Scheller
parent 3c6a5bb385
commit f9d22f9bda
409 changed files with 822 additions and 0 deletions

View File

@ -40,4 +40,10 @@
<rule ref="SlevomatCodingStandard.Commenting.EmptyComment" />
<rule ref="SlevomatCodingStandard.Commenting.UselessFunctionDocComment" />
<rule ref="Generic.Formatting.SpaceAfterCast" />
<rule ref="SlevomatCodingStandard.TypeHints.DeclareStrictTypes">
<exclude-pattern>/includes</exclude-pattern>
<properties>
<property name="spacesCountAroundEqualsSign" value="0" />
</properties>
</rule>
</ruleset>

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
// Application config
return [

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
// To change settings create a config.php
return [

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
use FastRoute\RouteCollector;
/** @var RouteCollector $route */

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Database\Factories\Engelsystem\Models;
use Engelsystem\Models\AngelType;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Database\Factories\Engelsystem\Models;
use Engelsystem\Models\Faq;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Database\Factories\Engelsystem\Models;
use Engelsystem\Models\Group;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Database\Factories\Engelsystem\Models;
use Engelsystem\Models\Message;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Database\Factories\Engelsystem\Models;
use Engelsystem\Models\News;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Database\Factories\Engelsystem\Models;
use Engelsystem\Models\News;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Database\Factories\Engelsystem\Models;
use Engelsystem\Models\Privilege;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Database\Factories\Engelsystem\Models;
use Carbon\Carbon;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Database\Factories\Engelsystem\Models;
use Engelsystem\Models\Room;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Database\Factories\Engelsystem\Models\Shifts;
use Engelsystem\Models\AngelType;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Database\Factories\Engelsystem\Models\Shifts;
use Engelsystem\Models\Shifts\Schedule;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Database\Factories\Engelsystem\Models\Shifts;
use Engelsystem\Models\AngelType;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Database\Factories\Engelsystem\Models\Shifts;
use Engelsystem\Models\Shifts\ShiftType;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Database\Factories\Engelsystem\Models\User;
use Engelsystem\Models\User\Contact;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Database\Factories\Engelsystem\Models\User;
use Engelsystem\Models\User\License;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Database\Factories\Engelsystem\Models\User;
use Engelsystem\Models\User\PasswordReset;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Database\Factories\Engelsystem\Models\User;
use Carbon\Carbon;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Database\Factories\Engelsystem\Models\User;
use Engelsystem\Models\User\Settings;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Database\Factories\Engelsystem\Models\User;
use Carbon\Carbon;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Database\Factories\Engelsystem\Models\User;
use Engelsystem\Models\User\User;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Database\Factories\Engelsystem\Models;
use Engelsystem\Models\AngelType;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Database\Factories\Engelsystem\Models;
use Engelsystem\Models\User\User;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Engelsystem\Migrations;
use Engelsystem\Database\Migration\Migration;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Engelsystem\Migrations;
use Engelsystem\Database\Migration\Migration;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Engelsystem\Migrations;
use Engelsystem\Database\Migration\Migration;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Engelsystem\Migrations;
use Engelsystem\Database\Migration\Migration;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Engelsystem\Migrations;
use Engelsystem\Database\Migration\Migration;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Engelsystem\Migrations;
use Engelsystem\Database\Migration\Migration;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Engelsystem\Migrations;
use Engelsystem\Database\Migration\Migration;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Engelsystem\Migrations;
use Carbon\Carbon;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Engelsystem\Migrations;
use Carbon\Carbon;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Engelsystem\Migrations;
use Engelsystem\Database\Migration\Migration;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Engelsystem\Migrations;
use Engelsystem\Database\Migration\Migration;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Engelsystem\Migrations;
use Engelsystem\Database\Migration\Migration;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Engelsystem\Migrations;
use Engelsystem\Database\Migration\Migration;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Engelsystem\Migrations;
use Engelsystem\Database\Migration\Migration;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Engelsystem\Migrations;
use Engelsystem\Database\Migration\Migration;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Engelsystem\Migrations;
use Carbon\Carbon;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Engelsystem\Migrations;
use Engelsystem\Database\Migration\Migration;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Engelsystem\Migrations;
use Engelsystem\Database\Migration\Migration;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Engelsystem\Migrations;
use Carbon\Carbon;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Engelsystem\Migrations;
use Engelsystem\Database\Migration\Migration;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Engelsystem\Migrations;
use Engelsystem\Database\Migration\Migration;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Engelsystem\Migrations;
use Engelsystem\Database\Migration\Migration;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Engelsystem\Migrations;
use Engelsystem\Database\Migration\Migration;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Engelsystem\Migrations;
use Engelsystem\Config\Config;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Engelsystem\Migrations;
use Engelsystem\Database\Migration\Migration;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Engelsystem\Migrations;
use Engelsystem\Database\Migration\Migration;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Engelsystem\Migrations;
use Engelsystem\Database\Migration\Migration;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Engelsystem\Migrations;
use Engelsystem\Database\Migration\Migration;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Engelsystem\Migrations;
use Engelsystem\Database\Migration\Migration;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Engelsystem\Migrations;
use Engelsystem\Database\Migration\Migration;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Engelsystem\Migrations;
use Engelsystem\Database\Migration\Migration;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Engelsystem\Migrations;
use Engelsystem\Database\Migration\Migration;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Engelsystem\Migrations;
use Engelsystem\Database\Migration\Migration;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Engelsystem\Migrations;
use Engelsystem\Database\Migration\Migration;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Engelsystem\Migrations;
use Engelsystem\Database\Migration\Migration;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Engelsystem\Migrations;
use Engelsystem\Database\Migration\Migration;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Engelsystem\Migrations;
use Illuminate\Database\Schema\Blueprint;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Engelsystem\Migrations;
use Illuminate\Database\Schema\Blueprint;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
use Engelsystem\Application;
use Engelsystem\Middleware\Dispatcher;
use Psr\Http\Message\ServerRequestInterface;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Engelsystem;
use Engelsystem\Config\Config;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Engelsystem\Config;
use Engelsystem\Application;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Engelsystem\Container;
use Illuminate\Container\Container as IlluminateContainer;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Engelsystem\Container;
use Engelsystem\Application;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Engelsystem\Controllers\Admin;
use Engelsystem\Controllers\BaseController;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Engelsystem\Controllers\Admin;
use Engelsystem\Controllers\BaseController;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Engelsystem\Controllers\Admin;
use Engelsystem\Controllers\BaseController;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Engelsystem\Controllers\Admin;
use Carbon\Carbon;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Engelsystem\Controllers\Admin;
use Engelsystem\Config\Config;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Engelsystem\Controllers\Admin;
use Carbon\Carbon;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Engelsystem\Controllers;
use Engelsystem\Http\Response;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Engelsystem\Controllers;
use Carbon\Carbon;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Engelsystem\Controllers;
use Engelsystem\Http\Validation\ValidatesRequest;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Engelsystem\Controllers;
use Carbon\Carbon;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Engelsystem\Controllers;
use Engelsystem\Config\Config;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Engelsystem\Controllers;
use Carbon\CarbonImmutable;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Engelsystem\Controllers;
use Engelsystem\Config\Config;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Engelsystem\Controllers;
use Carbon\CarbonTimeZone;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Engelsystem\Controllers;
use Illuminate\Support\Arr;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Engelsystem\Controllers;
use Engelsystem\Http\Response;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Engelsystem\Controllers;
use Engelsystem\Config\Config;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Engelsystem\Controllers;
use Engelsystem\Database\Database;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Engelsystem\Controllers\Metrics;
use Engelsystem\Config\Config;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Engelsystem\Controllers\Metrics;
use Engelsystem\Renderer\EngineInterface;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Engelsystem\Controllers;
use Engelsystem\Config\Config;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Engelsystem\Controllers;
use Carbon\Carbon;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Engelsystem\Controllers;
use Engelsystem\Http\Exceptions\HttpNotFound;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Engelsystem\Controllers;
use Engelsystem\Helpers\Authenticator;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Engelsystem\Controllers;
use Engelsystem\Config\Config;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Engelsystem\Database;
use Illuminate\Database\Connection as DatabaseConnection;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Engelsystem\Database;
use Carbon\Carbon;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Engelsystem\Database;
use Illuminate\Database\Capsule\Manager as CapsuleManager;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Engelsystem\Database\Migration;
use Engelsystem\Application;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Engelsystem\Database\Migration;
use Illuminate\Database\Schema\Builder as SchemaBuilder;

View File

@ -1,5 +1,7 @@
<?php
declare(strict_types=1);
namespace Engelsystem\Database\Migration;
use Engelsystem\Container\ServiceProvider;

Some files were not shown because too many files have changed in this diff Show More