@@ -6,15 +6,15 @@ |
||
6 | 6 | |
7 | 7 | require_once __DIR__ . '/vendor/autoload.php'; |
8 | 8 | |
9 | -$dotenv = Dotenv::createImmutable(__DIR__); |
|
9 | +$dotenv=Dotenv::createImmutable(__DIR__); |
|
10 | 10 | $dotenv->load(); |
11 | 11 | |
12 | -$_ENV['YII_ENV'] = empty($_ENV['YII_ENV']) ? null : $_ENV['YII_ENV']; |
|
13 | -$_SERVER['YII_ENV'] = $_ENV['YII_ENV']; |
|
12 | +$_ENV['YII_ENV']=empty($_ENV['YII_ENV']) ? null : $_ENV['YII_ENV']; |
|
13 | +$_SERVER['YII_ENV']=$_ENV['YII_ENV']; |
|
14 | 14 | |
15 | -$_ENV['YII_DEBUG'] = filter_var( |
|
15 | +$_ENV['YII_DEBUG']=filter_var( |
|
16 | 16 | !empty($_ENV['YII_DEBUG']) ? $_ENV['YII_DEBUG'] : true, |
17 | 17 | FILTER_VALIDATE_BOOLEAN, |
18 | 18 | FILTER_NULL_ON_FAILURE |
19 | 19 | ) ?? true; |
20 | -$_SERVER['YII_DEBUG'] = $_ENV['YII_DEBUG']; |
|
20 | +$_SERVER['YII_DEBUG']=$_ENV['YII_DEBUG']; |
@@ -14,7 +14,7 @@ |
||
14 | 14 | public function __construct( |
15 | 15 | ApplicationParameters $applicationParameters |
16 | 16 | ) { |
17 | - $this->applicationParameters = $applicationParameters; |
|
17 | + $this->applicationParameters=$applicationParameters; |
|
18 | 18 | } |
19 | 19 | |
20 | 20 | public function getCommonParameters(): array |
@@ -11,7 +11,7 @@ |
||
11 | 11 | { |
12 | 12 | public function __construct(private ViewRenderer $viewRenderer) |
13 | 13 | { |
14 | - $this->viewRenderer = $viewRenderer->withControllerName('site'); |
|
14 | + $this->viewRenderer=$viewRenderer->withControllerName('site'); |
|
15 | 15 | } |
16 | 16 | |
17 | 17 | public function index(): ResponseInterface |
@@ -24,7 +24,7 @@ |
||
24 | 24 | chmod($path, $mode); |
25 | 25 | |
26 | 26 | /** @psalm-var iterable<array-key, string> $iterator */ |
27 | - $iterator = new RIterator( |
|
27 | + $iterator=new RIterator( |
|
28 | 28 | new DirIterator($path, FSIterator::SKIP_DOTS | FSIterator::CURRENT_AS_PATHNAME), |
29 | 29 | RIterator::SELF_FIRST |
30 | 30 | ); |
@@ -6,8 +6,8 @@ discard block |
||
6 | 6 | |
7 | 7 | final class ApplicationParameters |
8 | 8 | { |
9 | - private string $charset = 'UTF-8'; |
|
10 | - private string $name = 'My Project'; |
|
9 | + private string $charset='UTF-8'; |
|
10 | + private string $name='My Project'; |
|
11 | 11 | |
12 | 12 | public function getCharset(): string |
13 | 13 | { |
@@ -21,15 +21,15 @@ discard block |
||
21 | 21 | |
22 | 22 | public function charset(string $value): self |
23 | 23 | { |
24 | - $new = clone $this; |
|
25 | - $new->charset = $value; |
|
24 | + $new=clone $this; |
|
25 | + $new->charset=$value; |
|
26 | 26 | return $new; |
27 | 27 | } |
28 | 28 | |
29 | 29 | public function name(string $value): self |
30 | 30 | { |
31 | - $new = clone $this; |
|
32 | - $new->name = $value; |
|
31 | + $new=clone $this; |
|
32 | + $new->name=$value; |
|
33 | 33 | return $new; |
34 | 34 | } |
35 | 35 | } |
@@ -11,8 +11,8 @@ |
||
11 | 11 | |
12 | 12 | final class Hello extends Command |
13 | 13 | { |
14 | - protected static $defaultName = 'hello'; |
|
15 | - protected static $defaultDescription = 'An example command'; |
|
14 | + protected static $defaultName='hello'; |
|
15 | + protected static $defaultDescription='An example command'; |
|
16 | 16 | |
17 | 17 | public function __construct() |
18 | 18 | { |
@@ -19,7 +19,7 @@ |
||
19 | 19 | private CurrentRoute $currentRoute, |
20 | 20 | private ViewRenderer $viewRenderer |
21 | 21 | ) { |
22 | - $this->viewRenderer = $viewRenderer->withControllerName('site'); |
|
22 | + $this->viewRenderer=$viewRenderer->withControllerName('site'); |
|
23 | 23 | } |
24 | 24 | |
25 | 25 | public function handle(ServerRequestInterface $request): ResponseInterface |
@@ -8,11 +8,11 @@ |
||
8 | 8 | |
9 | 9 | final class AppAsset extends AssetBundle |
10 | 10 | { |
11 | - public ?string $basePath = '@assets'; |
|
12 | - public ?string $baseUrl = '@assetsUrl'; |
|
13 | - public ?string $sourcePath = '@resources/assets/css'; |
|
11 | + public ?string $basePath='@assets'; |
|
12 | + public ?string $baseUrl='@assetsUrl'; |
|
13 | + public ?string $sourcePath='@resources/assets/css'; |
|
14 | 14 | |
15 | - public array $css = [ |
|
15 | + public array $css=[ |
|
16 | 16 | 'site.css', |
17 | 17 | ]; |
18 | 18 | } |
@@ -13,7 +13,7 @@ |
||
13 | 13 | return [ |
14 | 14 | Yiisoft\Yii\Http\Application::class => [ |
15 | 15 | '__construct()' => [ |
16 | - 'dispatcher' => DynamicReference::to(static function (Injector $injector) use ($params) { |
|
16 | + 'dispatcher' => DynamicReference::to(static function(Injector $injector) use ($params) { |
|
17 | 17 | return ($injector->make(MiddlewareDispatcher::class)) |
18 | 18 | ->withMiddlewares($params['middlewares']); |
19 | 19 | }), |