Passed
Push — master ( bec3a0...d17744 )
by 世昌
01:55
created
nebula/route/RouteCollection.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
      *
24 24
      * @param RouteMatcher[] $collection
25 25
      */
26
-    public function __construct(array $collection=[])
26
+    public function __construct(array $collection = [])
27 27
     {
28 28
         $this->merge($collection);
29 29
     }
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
      * @param array $collection
35 35
      * @return void
36 36
      */
37
-    public function merge(array $collection=[])
37
+    public function merge(array $collection = [])
38 38
     {
39 39
         $this->collection = array_merge($this->collection, $collection);
40 40
     }
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
      * @param string $name
58 58
      * @return RouteMatcher|null
59 59
      */
60
-    public function get(string $name):?RouteMatcher
60
+    public function get(string $name): ?RouteMatcher
61 61
     {
62 62
         return $this->collection[$name] ?? null;
63 63
     }
Please login to merge, or discard this patch.