Passed
Push — master ( 184b95...3a4432 )
by 世昌
01:52
created
nebula/route/collection/CollectionFile.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
     public function save(string $path):bool
34 34
     {
35 35
         foreach ($this as $name => $value) {
36
-            if (\file_put_contents($path, $name .'|'. \serialize($value), FILE_APPEND) === false) {
36
+            if (\file_put_contents($path, $name.'|'.\serialize($value), FILE_APPEND) === false) {
37 37
                 return false;
38 38
             }
39 39
         }
Please login to merge, or discard this patch.
nebula/route/collection/ReadLineIterator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,11 +40,11 @@
 block discarded – undo
40 40
             while (!feof($fp)) {
41 41
                 fseek($fp, $offset);
42 42
                 $content = fread($fp, $this->bufferSize);
43
-                $content.=(feof($fp))? "\n":'';
43
+                $content .= (feof($fp)) ? "\n" : '';
44 44
                 $size = strpos($content, "\n");
45 45
                 $offset += $size;
46 46
                 if ($content[$size - 1] === "\r") {
47
-                    $content = substr($content, 0, $size -1);
47
+                    $content = substr($content, 0, $size - 1);
48 48
                 } else {
49 49
                     $content = substr($content, 0, $size);
50 50
                 }
Please login to merge, or discard this patch.
nebula/route/RouteMatcher.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,9 +40,9 @@
 block discarded – undo
40 40
     protected $matcher;
41 41
     
42 42
 
43
-    public function __construct(array $methods, string $uri, array $attribute=[])
43
+    public function __construct(array $methods, string $uri, array $attribute = [])
44 44
     {
45
-        array_walk($methods, function ($value) {
45
+        array_walk($methods, function($value) {
46 46
             return strtoupper($value);
47 47
         });
48 48
         $this->methods = $methods;
Please login to merge, or discard this patch.