@@ -122,7 +122,7 @@ |
||
| 122 | 122 | protected function getResourcesPath($module) |
| 123 | 123 | { |
| 124 | 124 | if (is_callable(array($module, 'getResourcesPath'))) { |
| 125 | - $resourcesPath = $module->getResourcesPath(); |
|
| 125 | + $resourcesPath = $module->getResourcesPath(); |
|
| 126 | 126 | } else { |
| 127 | 127 | $resourcesPath = $module->getPath(); |
| 128 | 128 | } |
@@ -144,7 +144,7 @@ |
||
| 144 | 144 | } |
| 145 | 145 | |
| 146 | 146 | // The included file must return the laravel router |
| 147 | - $getRouteCollector = function () use ($routeCollector, $path) { |
|
| 147 | + $getRouteCollector = function() use ($routeCollector, $path) { |
|
| 148 | 148 | $r = $routeCollector; |
| 149 | 149 | include $path; |
| 150 | 150 | |
@@ -173,7 +173,7 @@ discard block |
||
| 173 | 173 | $value = array($value); |
| 174 | 174 | } |
| 175 | 175 | |
| 176 | - if (! is_array($value) || ! $this->arrayContainsOnlyStrings($value)) { |
|
| 176 | + if (!is_array($value) || !$this->arrayContainsOnlyStrings($value)) { |
|
| 177 | 177 | throw new InvalidArgumentException( |
| 178 | 178 | 'Invalid header value; must be a string or array of strings' |
| 179 | 179 | ); |
@@ -212,13 +212,13 @@ discard block |
||
| 212 | 212 | $value = array($value); |
| 213 | 213 | } |
| 214 | 214 | |
| 215 | - if (! is_array($value) || ! $this->arrayContainsOnlyStrings($value)) { |
|
| 215 | + if (!is_array($value) || !$this->arrayContainsOnlyStrings($value)) { |
|
| 216 | 216 | throw new InvalidArgumentException( |
| 217 | 217 | 'Invalid header value; must be a string or array of strings' |
| 218 | 218 | ); |
| 219 | 219 | } |
| 220 | 220 | |
| 221 | - if (! $this->hasHeader($header)) { |
|
| 221 | + if (!$this->hasHeader($header)) { |
|
| 222 | 222 | return $this->withHeader($header, $value); |
| 223 | 223 | } |
| 224 | 224 | |
@@ -246,7 +246,7 @@ discard block |
||
| 246 | 246 | */ |
| 247 | 247 | public function withoutHeader($header) |
| 248 | 248 | { |
| 249 | - if (! $this->hasHeader($header)) { |
|
| 249 | + if (!$this->hasHeader($header)) { |
|
| 250 | 250 | return clone $this; |
| 251 | 251 | } |
| 252 | 252 | |
@@ -599,14 +599,14 @@ discard block |
||
| 599 | 599 | if (null === $method) { |
| 600 | 600 | return true; |
| 601 | 601 | } |
| 602 | - if (! is_string($method)) { |
|
| 602 | + if (!is_string($method)) { |
|
| 603 | 603 | throw new InvalidArgumentException(sprintf( |
| 604 | 604 | 'Unsupported HTTP method; must be a string, received %s', |
| 605 | 605 | (is_object($method) ? get_class($method) : gettype($method)) |
| 606 | 606 | )); |
| 607 | 607 | } |
| 608 | 608 | $method = strtoupper($method); |
| 609 | - if (! in_array($method, $this->validMethods, true)) { |
|
| 609 | + if (!in_array($method, $this->validMethods, true)) { |
|
| 610 | 610 | throw new InvalidArgumentException(sprintf( |
| 611 | 611 | 'Unsupported HTTP method "%s" provided', |
| 612 | 612 | $method |
@@ -163,7 +163,7 @@ discard block |
||
| 163 | 163 | $value = array($value); |
| 164 | 164 | } |
| 165 | 165 | |
| 166 | - if (! is_array($value) || ! $this->arrayContainsOnlyStrings($value)) { |
|
| 166 | + if (!is_array($value) || !$this->arrayContainsOnlyStrings($value)) { |
|
| 167 | 167 | throw new InvalidArgumentException( |
| 168 | 168 | 'Invalid header value; must be a string or array of strings' |
| 169 | 169 | ); |
@@ -202,13 +202,13 @@ discard block |
||
| 202 | 202 | $value = array($value); |
| 203 | 203 | } |
| 204 | 204 | |
| 205 | - if (! is_array($value) || ! $this->arrayContainsOnlyStrings($value)) { |
|
| 205 | + if (!is_array($value) || !$this->arrayContainsOnlyStrings($value)) { |
|
| 206 | 206 | throw new InvalidArgumentException( |
| 207 | 207 | 'Invalid header value; must be a string or array of strings' |
| 208 | 208 | ); |
| 209 | 209 | } |
| 210 | 210 | |
| 211 | - if (! $this->hasHeader($header)) { |
|
| 211 | + if (!$this->hasHeader($header)) { |
|
| 212 | 212 | return $this->withHeader($header, $value); |
| 213 | 213 | } |
| 214 | 214 | |
@@ -236,7 +236,7 @@ discard block |
||
| 236 | 236 | */ |
| 237 | 237 | public function withoutHeader($header) |
| 238 | 238 | { |
| 239 | - if (! $this->hasHeader($header)) { |
|
| 239 | + if (!$this->hasHeader($header)) { |
|
| 240 | 240 | return clone $this; |
| 241 | 241 | } |
| 242 | 242 | |
@@ -257,7 +257,7 @@ discard block |
||
| 257 | 257 | */ |
| 258 | 258 | public function setBody($body = 'php://memory') |
| 259 | 259 | { |
| 260 | - if (! is_string($body) && ! is_resource($body) && ! $body instanceof StreamInterface) { |
|
| 260 | + if (!is_string($body) && !is_resource($body) && !$body instanceof StreamInterface) { |
|
| 261 | 261 | throw new InvalidArgumentException( |
| 262 | 262 | 'Stream must be a string stream resource identifier, ' |
| 263 | 263 | . 'an actual stream resource, ' |
@@ -499,15 +499,15 @@ discard block |
||
| 499 | 499 | { |
| 500 | 500 | $headerNames = $headers = array(); |
| 501 | 501 | foreach ($originalHeaders as $header => $value) { |
| 502 | - if (! is_string($header)) { |
|
| 502 | + if (!is_string($header)) { |
|
| 503 | 503 | continue; |
| 504 | 504 | } |
| 505 | 505 | |
| 506 | - if (! is_array($value) && ! is_string($value)) { |
|
| 506 | + if (!is_array($value) && !is_string($value)) { |
|
| 507 | 507 | continue; |
| 508 | 508 | } |
| 509 | 509 | |
| 510 | - if (! is_array($value)) { |
|
| 510 | + if (!is_array($value)) { |
|
| 511 | 511 | $value = array($value); |
| 512 | 512 | } |
| 513 | 513 | |
@@ -542,7 +542,7 @@ discard block |
||
| 542 | 542 | */ |
| 543 | 543 | private function validateStatus($code) |
| 544 | 544 | { |
| 545 | - if (! is_numeric($code) |
|
| 545 | + if (!is_numeric($code) |
|
| 546 | 546 | || is_float($code) |
| 547 | 547 | || $code < 100 |
| 548 | 548 | || $code >= 600 |