@@ -179,6 +179,9 @@ discard block |
||
| 179 | 179 | return isset($matches[1]) ? $matches[1] : []; |
| 180 | 180 | } // end getUriParams |
| 181 | 181 | |
| 182 | + /** |
|
| 183 | + * @param string $key |
|
| 184 | + */ |
|
| 182 | 185 | private function generateHashForUrl($key, $route, $method) |
| 183 | 186 | { |
| 184 | 187 | $path = preg_replace('~\s+~', '-', $key); |
@@ -203,6 +206,9 @@ discard block |
||
| 203 | 206 | return preg_split($splitCamelCaseRegexp, $chunk); |
| 204 | 207 | } // end splitCamelCaseToWords |
| 205 | 208 | |
| 209 | + /** |
|
| 210 | + * @param string $param |
|
| 211 | + */ |
|
| 206 | 212 | private function getRouteParam($route, $param) |
| 207 | 213 | { |
| 208 | 214 | $route = (array) $route; |
@@ -32,6 +32,9 @@ |
||
| 32 | 32 | $this->endpoints = $endpoints; |
| 33 | 33 | } |
| 34 | 34 | |
| 35 | + /** |
|
| 36 | + * @return string |
|
| 37 | + */ |
|
| 35 | 38 | public function render() |
| 36 | 39 | { |
| 37 | 40 | $host = $this->config->get('yaro.apidocs.blueprint.host'); |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | /** |
| 25 | 25 | * Exclude specific routes from documentation. Asterisks may be used to indicate wildcards. |
| 26 | 26 | */ |
| 27 | - 'exclude' => [ |
|
| 27 | + 'exclude' => [ |
|
| 28 | 28 | 'classes' => [ |
| 29 | 29 | // 'App\Http\Controllers\*' - exclude all controllers from docs. |
| 30 | 30 | // 'App\Http\Controllers\MyController@*' - remove all methods for specific controller from docs. |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | // 'payment/test', |
| 35 | 35 | // 'simulate/*', |
| 36 | 36 | ], |
| 37 | - ], |
|
| 37 | + ], |
|
| 38 | 38 | |
| 39 | 39 | /** |
| 40 | 40 | * Image src for logo. |