@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | $response = $docblockResponse; |
| 84 | 84 | $showresponse = true; |
| 85 | 85 | } |
| 86 | - if (! $response) { |
|
| 86 | + if (!$response) { |
|
| 87 | 87 | $transformerResponse = $this->getTransformerResponse($routeDescription['tags']); |
| 88 | 88 | if ($transformerResponse) { |
| 89 | 89 | // we have a transformer response from the docblock ( @transformer || @transformercollection ) |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | $showresponse = true; |
| 92 | 92 | } |
| 93 | 93 | } |
| 94 | - if (! $response) { |
|
| 94 | + if (!$response) { |
|
| 95 | 95 | $response = $this->getRouteResponse($route, $bindings, $headers); |
| 96 | 96 | } |
| 97 | 97 | if ($response->headers->get('Content-Type') === 'application/json') { |
@@ -102,7 +102,7 @@ discard block |
||
| 102 | 102 | } |
| 103 | 103 | |
| 104 | 104 | return $this->getParameters([ |
| 105 | - 'id' => md5($this->getUri($route).':'.implode($this->getMethods($route))), |
|
| 105 | + 'id' => md5($this->getUri($route) . ':' . implode($this->getMethods($route))), |
|
| 106 | 106 | 'resource' => $routeGroup, |
| 107 | 107 | 'title' => $routeDescription['short'], |
| 108 | 108 | 'description' => $routeDescription['long'], |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | */ |
| 124 | 124 | public function prepareMiddleware($enable = true) |
| 125 | 125 | { |
| 126 | - App::instance('middleware.disable', ! $enable); |
|
| 126 | + App::instance('middleware.disable', !$enable); |
|
| 127 | 127 | } |
| 128 | 128 | |
| 129 | 129 | /** |
@@ -169,8 +169,8 @@ discard block |
||
| 169 | 169 | protected function getTransformerResponse($tags) |
| 170 | 170 | { |
| 171 | 171 | try { |
| 172 | - $transFormerTags = array_filter($tags, function ($tag) { |
|
| 173 | - if (! ($tag instanceof Tag)) { |
|
| 172 | + $transFormerTags = array_filter($tags, function($tag) { |
|
| 173 | + if (!($tag instanceof Tag)) { |
|
| 174 | 174 | return false; |
| 175 | 175 | } |
| 176 | 176 | |
@@ -181,8 +181,8 @@ discard block |
||
| 181 | 181 | return false; |
| 182 | 182 | } |
| 183 | 183 | |
| 184 | - $modelTag = array_first(array_filter($tags, function ($tag) { |
|
| 185 | - if (! ($tag instanceof Tag)) { |
|
| 184 | + $modelTag = array_first(array_filter($tags, function($tag) { |
|
| 185 | + if (!($tag instanceof Tag)) { |
|
| 186 | 186 | return false; |
| 187 | 187 | } |
| 188 | 188 | |
@@ -190,7 +190,7 @@ discard block |
||
| 190 | 190 | })); |
| 191 | 191 | $tag = \array_first($transFormerTags); |
| 192 | 192 | $transformer = $tag->getContent(); |
| 193 | - if (! \class_exists($transformer)) { |
|
| 193 | + if (!\class_exists($transformer)) { |
|
| 194 | 194 | // if we can't find the transformer we can't generate a response |
| 195 | 195 | return; |
| 196 | 196 | } |
@@ -206,7 +206,7 @@ discard block |
||
| 206 | 206 | if (version_compare(PHP_VERSION, '7.0.0') >= 0 && \is_null($type)) { |
| 207 | 207 | // we can only get the type with reflection for PHP 7 |
| 208 | 208 | if ($parameter->hasType() && |
| 209 | - ! $parameter->getType()->isBuiltin() && |
|
| 209 | + !$parameter->getType()->isBuiltin() && |
|
| 210 | 210 | \class_exists((string) $parameter->getType())) { |
| 211 | 211 | //we have a type |
| 212 | 212 | $type = (string) $parameter->getType(); |