@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | |
126 | 126 | $this->eventDispatcher->dispatch(self::EVENT_BEFORE_RUN, new SourceSetEvent($sourceSet)); |
127 | 127 | |
128 | - if ($updatedSources = array_filter($sourceSet->updatedSources(), function ($source) { |
|
128 | + if ($updatedSources = array_filter($sourceSet->updatedSources(), function($source) { |
|
129 | 129 | return !$source->isGenerated(); |
130 | 130 | })) { |
131 | 131 | if (!$found) { |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | $timer = microtime(true); |
142 | 142 | foreach ($updatedSources as $source) { |
143 | 143 | $this->generatorManager->generate($source, $sourceSet); |
144 | - $this->consoleIo->overwrite(sprintf('%3d%%', 100 * ((++$counter) / $total)), false); |
|
144 | + $this->consoleIo->overwrite(sprintf('%3d%%', 100*((++$counter)/$total)), false); |
|
145 | 145 | } |
146 | 146 | $this->consoleIo->write(sprintf(' (%d sources / %4.2f seconds)', $total, microtime(true) - $timer)); |
147 | 147 | } |
@@ -170,7 +170,7 @@ discard block |
||
170 | 170 | if ($source->canBeFormatted()) { |
171 | 171 | $source->data()->set('blocks', $this->formatterManager->formatSourceBlocks($source)); |
172 | 172 | } |
173 | - $this->consoleIo->overwrite(sprintf('%3d%%', 100 * ((++$counter) / $total)), false); |
|
173 | + $this->consoleIo->overwrite(sprintf('%3d%%', 100*((++$counter)/$total)), false); |
|
174 | 174 | } |
175 | 175 | $this->consoleIo->write(sprintf(' (%d sources / %4.2f seconds)', $total, microtime(true) - $timer)); |
176 | 176 | } |
@@ -193,7 +193,7 @@ discard block |
||
193 | 193 | } else { |
194 | 194 | $source->setFormattedContent($source->content()); |
195 | 195 | } |
196 | - $this->consoleIo->overwrite(sprintf('%3d%%', 100 * ((++$counter) / $total)), false); |
|
196 | + $this->consoleIo->overwrite(sprintf('%3d%%', 100*((++$counter)/$total)), false); |
|
197 | 197 | } |
198 | 198 | $this->eventDispatcher->dispatch(self::EVENT_AFTER_FORMAT, new SourceSetEvent($sourceSet)); |
199 | 199 | $this->consoleIo->write(sprintf(' (%d sources / %4.2f seconds)', $total, microtime(true) - $timer)); |
@@ -100,7 +100,7 @@ |
||
100 | 100 | ); |
101 | 101 | |
102 | 102 | if ($watch) { |
103 | - $httpServer->addPeriodicTimer(1, function () use ($dataSource, $sourceSet) { |
|
103 | + $httpServer->addPeriodicTimer(1, function() use ($dataSource, $sourceSet) { |
|
104 | 104 | clearstatcache(); |
105 | 105 | $sourceSet->reset(); |
106 | 106 |