Completed
Push — master ( 34df22...dc98f7 )
by Yaro
01:43
created
src/ApiDocs.php 1 patch
Spacing   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
     private function isPrefixedRoute($route)
76 76
     {
77 77
         $prefix = $this->config->get('yaro.apidocs.prefix', 'api');
78
-        $regexp = '~^'. preg_quote($prefix) .'~';
78
+        $regexp = '~^'.preg_quote($prefix).'~';
79 79
         
80 80
         return preg_match($regexp, $this->getRouteParam($route, 'uri'));
81 81
     } // end isPrefixedRoute
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
         $checkForLongDescription = true;
110 110
         foreach ($docs as $line) {
111 111
             if ($checkForLongDescription && !preg_match('~^@\w+~', $line)) {
112
-                $description .= trim($line) .' ';
112
+                $description .= trim($line).' ';
113 113
             } elseif (preg_match('~^@\w+~', $line)) {
114 114
                 $checkForLongDescription = false;
115 115
                 if (preg_match('~^@param~', $line)) {
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
         $httpMethod = $this->getRouteParam($route, 'methods.0');
198 198
         $classMethod = implode('-', $this->splitCamelCaseToWords($method));
199 199
         
200
-        $hash = $path .'::'. $httpMethod .'::'. $classMethod;
200
+        $hash = $path.'::'.$httpMethod.'::'.$classMethod;
201 201
         
202 202
         return strtolower($hash);
203 203
     } // end generateHashForUrl
@@ -230,8 +230,7 @@  discard block
 block discarded – undo
230 230
     private function ins(&$ary, $keys, $val) 
231 231
     {
232 232
         $keys ? 
233
-            $this->ins($ary[array_shift($keys)], $keys, $val) :
234
-            $ary = $val;
233
+            $this->ins($ary[array_shift($keys)], $keys, $val) : $ary = $val;
235 234
     } // end ins
236 235
     
237 236
 }
Please login to merge, or discard this patch.