Completed
Push — master ( 33e30f...a8b8e5 )
by
unknown
08:46 queued 06:31
created
src/Sculpin/Bundle/SculpinBundle/Command/GenerateCommand.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
             );
129 129
 
130 130
             if ($watch) {
131
-                $httpServer->addPeriodicTimer(1, function () use ($sculpin, $dataSource, $sourceSet, $consoleIo) {
131
+                $httpServer->addPeriodicTimer(1, function() use ($sculpin, $dataSource, $sourceSet, $consoleIo) {
132 132
                     clearstatcache();
133 133
                     $sourceSet->reset();
134 134
 
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
         IoInterface $io
193 193
     ) {
194 194
         $messages = [];
195
-        $errPrint = function (\Throwable $e) {
195
+        $errPrint = function(\Throwable $e) {
196 196
             return $e->getMessage().PHP_EOL.' at '.str_replace(getcwd().DIRECTORY_SEPARATOR, '', $e->getFile());
197 197
         };
198 198
 
@@ -201,11 +201,11 @@  discard block
 block discarded – undo
201 201
 
202 202
             return;
203 203
         } catch (LoaderError | RuntimeError | SyntaxError $e) {
204
-            $messages[] = '<error>Twig exception: ' . $errPrint($e) . '</error>';
204
+            $messages[] = '<error>Twig exception: '.$errPrint($e).'</error>';
205 205
         } catch (IOException $e) {
206
-            $messages[] = '<error>Filesystem exception: ' . $errPrint($e) . '</error>';
206
+            $messages[] = '<error>Filesystem exception: '.$errPrint($e).'</error>';
207 207
         } catch (\Throwable $e) {
208
-            $messages[] = '<error>Exception: ' . $errPrint($e) . '</error>';
208
+            $messages[] = '<error>Exception: '.$errPrint($e).'</error>';
209 209
         }
210 210
 
211 211
         if ($this->throwExceptions) {
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
             foreach ($e->getTrace() as $trace) {
219 219
                 $messages[] = sprintf(
220 220
                     '<comment>  %s at %s:%s</comment>',
221
-                    isset($trace['class']) ? $trace['class'] . '->' . $trace['function'] : $trace['function'],
221
+                    isset($trace['class']) ? $trace['class'].'->'.$trace['function'] : $trace['function'],
222 222
                     $trace['file'],
223 223
                     $trace['line']
224 224
                 );
Please login to merge, or discard this patch.