Passed
Branch master (ae28f9)
by Alexey
03:28
created
src/Routing/src/Route.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -321,8 +321,7 @@
 block discarded – undo
321 321
     {
322 322
         $route = clone $this;
323 323
         $route->path = $prefix == '/' || $prefix == '' ?
324
-            $route->path :
325
-            sprintf('/%s/%s', trim($prefix, '/'), ltrim($route->path, '/'));
324
+            $route->path : sprintf('/%s/%s', trim($prefix, '/'), ltrim($route->path, '/'));
326 325
 
327 326
         return $route;
328 327
     }
Please login to merge, or discard this patch.
src/Container/src/Exception/UnresolvableDependencyException.php 1 patch
Spacing   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -48,8 +48,7 @@  discard block
 block discarded – undo
48 48
     private function formatFunction(ReflectionFunctionAbstract $function)
49 49
     {
50 50
         return $function instanceof ReflectionMethod ?
51
-            $function->getDeclaringClass()->getName() . '::' . $function->getName() :
52
-            $function->getName();
51
+            $function->getDeclaringClass()->getName() . '::' . $function->getName() : $function->getName();
53 52
     }
54 53
 
55 54
     /**
@@ -61,7 +60,6 @@  discard block
 block discarded – undo
61 60
     private function formatParameter(ReflectionParameter $parameter): string
62 61
     {
63 62
         return $parameter->hasType() ?
64
-            sprintf('%s $%s', $parameter->getType(), $parameter->getName()) :
65
-            sprintf('$%s', $parameter->getName());
63
+            sprintf('%s $%s', $parameter->getType(), $parameter->getName()) : sprintf('$%s', $parameter->getName());
66 64
     }
67 65
 }
68 66
\ No newline at end of file
Please login to merge, or discard this patch.
src/Framework/ErrorHandler/ErrorHandlerProvider.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -82,8 +82,7 @@
 block discarded – undo
82 82
             // Push pretty page handler only for local environment
83 83
             $whoops->pushHandler(
84 84
                 $kernel->getEnvironment() === 'local' ?
85
-                    new PrettyPageHandler() :
86
-                    new PlainTextHandler()
85
+                    new PrettyPageHandler() : new PlainTextHandler()
87 86
             );
88 87
         }
89 88
         /**
Please login to merge, or discard this patch.
src/Framework/Kernel/Bootstrap/Logging.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
             $handler->pushProcessor(new PsrLogMessageProcessor);
34 34
 
35 35
             if (!$this->kernel->isCli()) {
36
-                $handler->pushProcessor(new WebProcessor(null, [ // todo: make list configurable?
36
+                $handler->pushProcessor(new WebProcessor(null, [// todo: make list configurable?
37 37
                     'url' => 'REQUEST_URI',
38 38
                     'ip' => 'REMOTE_ADDR',
39 39
                     'http_method' => 'REQUEST_METHOD',
Please login to merge, or discard this patch.