Passed
Push — master ( 72194f...754eba )
by Alexey
05:19
created
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/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.
src/Filesystem/src/Filesystem.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
     public function list(string $path = '.', bool $recursive = false): array
88 88
     {
89 89
         return array_map(
90
-            function($item){ return new Metadata($item); },
90
+            function ($item) { return new Metadata($item); },
91 91
             $this->flysystem->listContents($path, $recursive)
92 92
         );
93 93
     }
@@ -98,10 +98,10 @@  discard block
 block discarded – undo
98 98
     public function listDirectories(string $path = '.', bool $recursive = false): array
99 99
     {
100 100
         return array_map(
101
-            function($item){ return new Metadata($item); },
101
+            function ($item) { return new Metadata($item); },
102 102
             array_filter(
103 103
                 $this->flysystem->listContents($path, $recursive),
104
-                function($item){ return $item['type'] === MetadataContract::TYPE_DIR; }
104
+                function ($item) { return $item['type'] === MetadataContract::TYPE_DIR; }
105 105
             )
106 106
         );
107 107
     }
@@ -112,10 +112,10 @@  discard block
 block discarded – undo
112 112
     public function listFiles(string $path = '.', bool $recursive = false): array
113 113
     {
114 114
         return array_map(
115
-            function($item){ return new Metadata($item); },
115
+            function ($item) { return new Metadata($item); },
116 116
             array_filter(
117 117
                 $this->flysystem->listContents($path, $recursive),
118
-                function($item){ return $item['type'] === MetadataContract::TYPE_FILE; }
118
+                function ($item) { return $item['type'] === MetadataContract::TYPE_FILE; }
119 119
             )
120 120
         );
121 121
     }
Please login to merge, or discard this patch.