Completed
Push — master ( 1d9f9e...861a2b )
by Frédéric
02:08
created
src/Routing/ResourceRegistrar.php 2 patches
Doc Comments   +13 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,6 +27,9 @@  discard block
 block discarded – undo
27 27
         parent::__construct($router);
28 28
     }
29 29
 
30
+    /**
31
+     * @param string $method
32
+     */
30 33
     protected function getLocaleResourceAction($controller, $method)
31 34
     {
32 35
         return $controller . '@' . $method;
@@ -51,6 +54,10 @@  discard block
 block discarded – undo
51 54
         return $this->localeRouter->get($name, $action, $uris);
52 55
     }
53 56
 
57
+    /**
58
+     * @param string $base
59
+     * @param string $label
60
+     */
54 61
     protected function getLocaleUris($base, $label, $options)
55 62
     {
56 63
         $uris = [];
@@ -94,7 +101,7 @@  discard block
 block discarded – undo
94 101
      * @param  string $name
95 102
      * @param  string $controller
96 103
      * @param  array $options
97
-     * @return \Illuminate\Routing\RouteCollection
104
+     * @return null|RouteCollection
98 105
      */
99 106
     public function register($name, $controller, array $options = [])
100 107
     {
@@ -127,6 +134,11 @@  discard block
 block discarded – undo
127 134
         return $collection;
128 135
     }
129 136
 
137
+    /**
138
+     * @param string $name
139
+     * @param string $base
140
+     * @param string $controller
141
+     */
130 142
     protected function registerMethod(
131 143
         string $method,
132 144
         $name,
Please login to merge, or discard this patch.
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -139,8 +139,7 @@
 block discarded – undo
139 139
         $routeCollection = $this->$addResourceMethod($name, $base, $controller, $options);
140 140
 
141 141
         $routeArray = is_a($routeCollection, RouteCollection::class) ?
142
-            $routeCollection->getRoutes() :
143
-            [$routeCollection];
142
+            $routeCollection->getRoutes() : [$routeCollection];
144 143
 
145 144
         foreach ($routeArray as $route) {
146 145
             $collection->add($route);
Please login to merge, or discard this patch.