Passed
Push — master ( d0d0ee...229425 )
by 世昌
01:51
created
nebula/src/application/NameFinder.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -55,8 +55,8 @@  discard block
 block discarded – undo
55 55
         $rpos = \strrpos($name, ':');
56 56
         if ($rpos > 0) {
57 57
             $module = substr($name, 0, $rpos);
58
-            $name = \substr($name, $rpos+1);
59
-            $moduleFull  = $this->getFullName($module);
58
+            $name = \substr($name, $rpos + 1);
59
+            $moduleFull = $this->getFullName($module);
60 60
             return [$moduleFull, $name];
61 61
         }
62 62
         if ($rpos === 0) {
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
         if (\array_key_exists($version, $this->knownsFullName[$name])) {
78 78
             return $this->knownsFullName[$name][$version];
79 79
         }
80
-        return $hasVersion?$name.':'.$version:end($this->knownsFullName[$name]);
80
+        return $hasVersion ? $name.':'.$version : end($this->knownsFullName[$name]);
81 81
     }
82 82
     
83 83
     protected function getLikeName(string $name):string
Please login to merge, or discard this patch.
nebula/src/application/route/GroupRoutes.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
      */
47 47
     public function add(?string $group = null, string $name, RouteMatcher $router)
48 48
     {
49
-        $group =  $group ? $this->finder->getFullName($group) : $this->default;
49
+        $group = $group ? $this->finder->getFullName($group) : $this->default;
50 50
         if (\array_key_exists($group, $this->routes)) {
51 51
             $this->routes[$group]->add($name, $router);
52 52
         } else {
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
      * @param string $name
61 61
      * @return RouteMatcher|null
62 62
      */
63
-    public function find(string $name, ?string $default = null):?RouteMatcher
63
+    public function find(string $name, ?string $default = null): ?RouteMatcher
64 64
     {
65 65
         list($group, $name) = $this->finder->info($name, $default ?? $this->default);
66 66
         if (\array_key_exists($group, $this->routes)) {
Please login to merge, or discard this patch.