@@ -60,11 +60,11 @@ discard block |
||
60 | 60 | $kernel = AspectKernel::getInstance(); |
61 | 61 | $options = $kernel->getOptions(); |
62 | 62 | |
63 | - if (empty($options['cacheDir'])) { |
|
63 | + if (empty($options[ 'cacheDir' ])) { |
|
64 | 64 | throw new \InvalidArgumentException('Cache warmer require the `cacheDir` options to be configured'); |
65 | 65 | } |
66 | 66 | |
67 | - $enumerator = new Enumerator($options['appDir'], $options['includePaths'], $options['excludePaths']); |
|
67 | + $enumerator = new Enumerator($options[ 'appDir' ], $options[ 'includePaths' ], $options[ 'excludePaths' ]); |
|
68 | 68 | $iterator = $enumerator->enumerate(); |
69 | 69 | |
70 | 70 | $totalFiles = iterator_count($iterator); |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | }); |
77 | 77 | |
78 | 78 | $index = 0; |
79 | - $errors = []; |
|
79 | + $errors = [ ]; |
|
80 | 80 | foreach ($iterator as $file) { |
81 | 81 | if ($output->getVerbosity() >= OutputInterface::VERBOSITY_VERBOSE) { |
82 | 82 | $output->writeln("Processing file <info>{$file->getRealPath()}</info>"); |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | $isSuccess = true; |
93 | 93 | } catch (\Exception $e) { |
94 | 94 | $isSuccess = false; |
95 | - $errors[$file->getRealPath()] = $e; |
|
95 | + $errors[ $file->getRealPath() ] = $e; |
|
96 | 96 | } |
97 | 97 | if ($output->getVerbosity() == OutputInterface::VERBOSITY_NORMAL) { |
98 | 98 | $output->write($isSuccess ? '.' : '<error>E</error>'); |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | | AOP will check this list to apply an AOP to selected directories only, |
73 | 73 | | leave it empty if you want AOP to be applied to all files in the appDir |
74 | 74 | */ |
75 | - 'includePaths' => [], |
|
75 | + 'includePaths' => [ ], |
|
76 | 76 | |
77 | 77 | /* |
78 | 78 | |-------------------------------------------------------------------------- |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | | |
82 | 82 | | AOP will check this list to disable AOP for selected directories |
83 | 83 | */ |
84 | - 'excludePaths' => [], |
|
84 | + 'excludePaths' => [ ], |
|
85 | 85 | |
86 | 86 | /** |
87 | 87 | |-------------------------------------------------------------------------- |
@@ -101,5 +101,5 @@ discard block |
||
101 | 101 | AspectContainer::class => AspectContainerFactory::class, |
102 | 102 | ] |
103 | 103 | ], |
104 | - 'goaop_aspect' => [] |
|
104 | + 'goaop_aspect' => [ ] |
|
105 | 105 | ]; |