@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | |
4 | 4 | use EasyCorp\EasyLog\EasyLogHandler; |
5 | 5 | use Symfony\Component\Config\Resource\ClassExistenceResource; |
@@ -16,17 +16,17 @@ discard block |
||
16 | 16 | |
17 | 17 | public function getCacheDir(): string |
18 | 18 | { |
19 | - return dirname(__DIR__).'/var/cache/'.$this->environment; |
|
19 | + return dirname(__DIR__) . '/var/cache/' . $this->environment; |
|
20 | 20 | } |
21 | 21 | |
22 | 22 | public function getLogDir(): string |
23 | 23 | { |
24 | - return dirname(__DIR__).'/var/log'; |
|
24 | + return dirname(__DIR__) . '/var/log'; |
|
25 | 25 | } |
26 | 26 | |
27 | 27 | public function registerBundles(): iterable |
28 | 28 | { |
29 | - $contents = require dirname(__DIR__).'/config/bundles.php'; |
|
29 | + $contents = require dirname(__DIR__) . '/config/bundles.php'; |
|
30 | 30 | foreach ($contents as $class => $envs) { |
31 | 31 | if (isset($envs['all']) || isset($envs[$this->environment])) { |
32 | 32 | yield new $class(); |
@@ -36,24 +36,24 @@ discard block |
||
36 | 36 | |
37 | 37 | protected function configureContainer(ContainerBuilder $container, LoaderInterface $loader): void |
38 | 38 | { |
39 | - $confDir = dirname(__DIR__).'/config'; |
|
40 | - $loader->load($confDir.'/packages/*'.self::CONFIG_EXTS, 'glob'); |
|
41 | - if (is_dir($confDir.'/packages/'.$this->environment)) { |
|
42 | - $loader->load($confDir.'/packages/'.$this->environment.'/**/*'.self::CONFIG_EXTS, 'glob'); |
|
39 | + $confDir = dirname(__DIR__) . '/config'; |
|
40 | + $loader->load($confDir . '/packages/*' . self::CONFIG_EXTS, 'glob'); |
|
41 | + if (is_dir($confDir . '/packages/' . $this->environment)) { |
|
42 | + $loader->load($confDir . '/packages/' . $this->environment . '/**/*' . self::CONFIG_EXTS, 'glob'); |
|
43 | 43 | } |
44 | - $loader->load($confDir.'/services'.self::CONFIG_EXTS, 'glob'); |
|
45 | - $loader->load($confDir.'/services_'.$this->environment.self::CONFIG_EXTS, 'glob'); |
|
44 | + $loader->load($confDir . '/services' . self::CONFIG_EXTS, 'glob'); |
|
45 | + $loader->load($confDir . '/services_' . $this->environment . self::CONFIG_EXTS, 'glob'); |
|
46 | 46 | } |
47 | 47 | |
48 | 48 | protected function configureRoutes(RouteCollectionBuilder $routes): void |
49 | 49 | { |
50 | - $confDir = dirname(__DIR__).'/config'; |
|
51 | - if (is_dir($confDir.'/routes/')) { |
|
52 | - $routes->import($confDir.'/routes/*'.self::CONFIG_EXTS, '/', 'glob'); |
|
50 | + $confDir = dirname(__DIR__) . '/config'; |
|
51 | + if (is_dir($confDir . '/routes/')) { |
|
52 | + $routes->import($confDir . '/routes/*' . self::CONFIG_EXTS, '/', 'glob'); |
|
53 | 53 | } |
54 | - if (is_dir($confDir.'/routes/'.$this->environment)) { |
|
55 | - $routes->import($confDir.'/routes/'.$this->environment.'/**/*'.self::CONFIG_EXTS, '/', 'glob'); |
|
54 | + if (is_dir($confDir . '/routes/' . $this->environment)) { |
|
55 | + $routes->import($confDir . '/routes/' . $this->environment . '/**/*' . self::CONFIG_EXTS, '/', 'glob'); |
|
56 | 56 | } |
57 | - $routes->import($confDir.'/routes'.self::CONFIG_EXTS, '/', 'glob'); |
|
57 | + $routes->import($confDir . '/routes' . self::CONFIG_EXTS, '/', 'glob'); |
|
58 | 58 | } |
59 | 59 | } |
@@ -52,7 +52,7 @@ |
||
52 | 52 | * |
53 | 53 | * @throws \LogicException |
54 | 54 | */ |
55 | - public static function encode($input, ?int $options = null, ?int $depth = null): string |
|
55 | + public static function encode($input, ?int $options = null, ?int $depth = null) : string |
|
56 | 56 | { |
57 | 57 | $options = $options ?? 0; |
58 | 58 | $depth = $depth ?? 512; |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | /** |
4 | 4 | * /public/index.php |
5 | 5 | * |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | /** |
4 | 4 | * /public/check.php |
5 | 5 | * |
@@ -42,8 +42,8 @@ discard block |
||
42 | 42 | |
43 | 43 | $majorProblems = $symfonyRequirements->getFailedRequirements(); |
44 | 44 | $minorProblems = $symfonyRequirements->getFailedRecommendations(); |
45 | -$hasMajorProblems = (bool) count($majorProblems); |
|
46 | -$hasMinorProblems = (bool) count($minorProblems); |
|
45 | +$hasMajorProblems = (bool)count($majorProblems); |
|
46 | +$hasMinorProblems = (bool)count($minorProblems); |
|
47 | 47 | |
48 | 48 | ?> |
49 | 49 | <!DOCTYPE html> |
@@ -396,7 +396,10 @@ discard block |
||
396 | 396 | <?php if ($hasMinorProblems): ?> |
397 | 397 | <h2>Recommendations</h2> |
398 | 398 | <p> |
399 | - <?php if ($hasMajorProblems): ?>Additionally, to<?php else: ?>To<?php endif; ?> enhance your Symfony experience, |
|
399 | + <?php if ($hasMajorProblems): ?>Additionally, to<?php else { |
|
400 | + : ?>To<?php endif; |
|
401 | +} |
|
402 | +?> enhance your Symfony experience, |
|
400 | 403 | it’s recommended that you fix the following: |
401 | 404 | </p> |
402 | 405 | <ol> |
@@ -412,9 +415,12 @@ discard block |
||
412 | 415 | <p id="phpini">* |
413 | 416 | <?php if ($symfonyRequirements->getPhpIniPath()): ?> |
414 | 417 | Changes to the <strong>php.ini</strong> file must be done in "<strong><?php echo $symfonyRequirements->getPhpIniPath() ?></strong>". |
415 | - <?php else: ?> |
|
418 | + <?php else { |
|
419 | + : ?> |
|
416 | 420 | To change settings, create a "<strong>php.ini</strong>". |
417 | - <?php endif; ?> |
|
421 | + <?php endif; |
|
422 | +} |
|
423 | +?> |
|
418 | 424 | </p> |
419 | 425 | <?php endif; ?> |
420 | 426 |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -declare(strict_types=1); |
|
2 | +declare(strict_types = 1); |
|
3 | 3 | /** |
4 | 4 | * Application bootstrap file to load specified environment variables. |
5 | 5 | * |
@@ -236,7 +236,7 @@ |
||
236 | 236 | * |
237 | 237 | * @return string |
238 | 238 | */ |
239 | - $iterator = function (UserGroup $userGroup) { |
|
239 | + $iterator = function(UserGroup $userGroup) { |
|
240 | 240 | return $userGroup->getRole()->getId(); |
241 | 241 | }; |
242 | 242 |
@@ -395,7 +395,7 @@ |
||
395 | 395 | * |
396 | 396 | * @return string |
397 | 397 | */ |
398 | - $iterator = function (UserGroup $userGroup) { |
|
398 | + $iterator = function(UserGroup $userGroup) { |
|
399 | 399 | return $userGroup->getRole()->getId(); |
400 | 400 | }; |
401 | 401 |
@@ -1030,7 +1030,7 @@ |
||
1030 | 1030 | */ |
1031 | 1031 | private function cleanContent(string $content): string |
1032 | 1032 | { |
1033 | - $iterator = function ($search) use (&$content) { |
|
1033 | + $iterator = function($search) use (&$content) { |
|
1034 | 1034 | $content = \preg_replace('/(' . $search . '":)\s*"(.*)"/', '$1"*** REPLACED ***"', $content); |
1035 | 1035 | }; |
1036 | 1036 |