@@ -147,7 +147,7 @@ discard block |
||
147 | 147 | |
148 | 148 | $this->eventDispatcher->dispatch(self::EVENT_BEFORE_RUN, new SourceSetEvent($sourceSet)); |
149 | 149 | |
150 | - if ($updatedSources = array_filter($sourceSet->updatedSources(), function ($source) { |
|
150 | + if ($updatedSources = array_filter($sourceSet->updatedSources(), function($source) { |
|
151 | 151 | return !$source->isGenerated(); |
152 | 152 | })) { |
153 | 153 | if (!$found) { |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | $timer = microtime(true); |
164 | 164 | foreach ($updatedSources as $source) { |
165 | 165 | $this->generatorManager->generate($source, $sourceSet); |
166 | - $io->overwrite(sprintf('%3d%%', 100 * ((++$counter) / $total)), false); |
|
166 | + $io->overwrite(sprintf('%3d%%', 100*((++$counter)/$total)), false); |
|
167 | 167 | } |
168 | 168 | $io->write(sprintf(' (%d sources / %4.2f seconds)', $total, microtime(true) - $timer)); |
169 | 169 | } |
@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | if ($source->canBeFormatted()) { |
193 | 193 | $source->data()->set('blocks', $this->formatterManager->formatSourceBlocks($source)); |
194 | 194 | } |
195 | - $io->overwrite(sprintf('%3d%%', 100 * ((++$counter) / $total)), false); |
|
195 | + $io->overwrite(sprintf('%3d%%', 100*((++$counter)/$total)), false); |
|
196 | 196 | } |
197 | 197 | $io->write(sprintf(' (%d sources / %4.2f seconds)', $total, microtime(true) - $timer)); |
198 | 198 | } |
@@ -215,7 +215,7 @@ discard block |
||
215 | 215 | } else { |
216 | 216 | $source->setFormattedContent($source->content()); |
217 | 217 | } |
218 | - $io->overwrite(sprintf('%3d%%', 100 * ((++$counter) / $total)), false); |
|
218 | + $io->overwrite(sprintf('%3d%%', 100*((++$counter)/$total)), false); |
|
219 | 219 | } |
220 | 220 | $this->eventDispatcher->dispatch(self::EVENT_AFTER_FORMAT, new SourceSetEvent($sourceSet)); |
221 | 221 | $io->write(sprintf(' (%d sources / %4.2f seconds)', $total, microtime(true) - $timer)); |
@@ -43,7 +43,7 @@ |
||
43 | 43 | $event['method'] = 'on'.preg_replace_callback([ |
44 | 44 | '/(?<=\b)[a-z]/i', |
45 | 45 | '/[^a-z0-9]/i', |
46 | - ], function ($matches) { |
|
46 | + ], function($matches) { |
|
47 | 47 | return strtoupper($matches[0]); |
48 | 48 | }, $event['event']); |
49 | 49 | $event['method'] = preg_replace('/[^a-z0-9]/i', '', $event['method']); |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * This file is a part of Sculpin. |
@@ -20,7 +20,6 @@ |
||
20 | 20 | use Symfony\Component\Console\Output\ConsoleOutput; |
21 | 21 | use Symfony\Component\Console\Output\OutputInterface; |
22 | 22 | use Symfony\Component\HttpKernel\Bundle\BundleInterface; |
23 | -use Symfony\Component\HttpKernel\Kernel; |
|
24 | 23 | use Symfony\Component\HttpKernel\KernelInterface; |
25 | 24 | |
26 | 25 | final class Application extends BaseApplication |