@@ -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)); |
@@ -71,7 +71,7 @@ |
||
71 | 71 | { |
72 | 72 | $this->port = $port; |
73 | 73 | |
74 | - $this->reactHttpServer->on('request', function (Request $request, Response $response) { |
|
74 | + $this->reactHttpServer->on('request', function(Request $request, Response $response) { |
|
75 | 75 | $path = $this->outputDirectory.'/'.ltrim(rawurldecode($request->getPath()), '/'); |
76 | 76 | if (is_dir($path)) { |
77 | 77 | $path .= '/index.html'; |
@@ -109,7 +109,7 @@ |
||
109 | 109 | |
110 | 110 | $this->httpServer->init(); |
111 | 111 | if ($watch) { |
112 | - $this->httpServer->addPeriodicTimer(1, function () use ($sourceSet) { |
|
112 | + $this->httpServer->addPeriodicTimer(1, function() use ($sourceSet) { |
|
113 | 113 | clearstatcache(); |
114 | 114 | $sourceSet->reset(); |
115 | 115 |