Completed
Pull Request — master (#3)
by Tomáš
06:46
created
DependencyInjection/Compiler/LoadCommandsToConsoleCompilerPass.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
     }
41 41
 
42 42
     /**
43
-     * @return bool|Definition
43
+     * @return string
44 44
      */
45 45
     private function getDefinitionByType(string $type)
46 46
     {
Please login to merge, or discard this patch.
src/Core/Sculpin.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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));
Please login to merge, or discard this patch.
src/Bundle/SculpinBundle/HttpServer/HttpServer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
         $socketServer = new ReactSocketServer($this->loop);
49 49
         $httpServer = new ReactHttpServer($socketServer);
50 50
 
51
-        $httpServer->on('request', function (Request $request, Response $response) use ($repository, $docroot, $io) {
51
+        $httpServer->on('request', function(Request $request, Response $response) use ($repository, $docroot, $io) {
52 52
             $path = $docroot.'/'.ltrim(rawurldecode($request->getPath()), '/');
53 53
             if (is_dir($path)) {
54 54
                 $path .= '/index.html';
Please login to merge, or discard this patch.
src/Bundle/SculpinBundle/Command/GenerateCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
102 102
             $httpServer = $this->httpServerFactory->create($docroot);
103 103
 
104 104
             if ($watch) {
105
-                $httpServer->addPeriodicTimer(1, function () {
105
+                $httpServer->addPeriodicTimer(1, function() {
106 106
                     clearstatcache();
107 107
                     $this->sourceSet->reset();
108 108
 
Please login to merge, or discard this patch.