@@ -10,7 +10,7 @@ |
||
| 10 | 10 | |
| 11 | 11 | public function getValue() |
| 12 | 12 | { |
| 13 | - if (!filter_has_var(INPUT_GET, $this->key) && isset($_GET[$this->key])) { |
|
| 13 | + if ( ! filter_has_var(INPUT_GET, $this->key) && isset($_GET[$this->key])) { |
|
| 14 | 14 | return $_GET[$this->key]; |
| 15 | 15 | } |
| 16 | 16 | |
@@ -50,7 +50,7 @@ |
||
| 50 | 50 | $versionHandlers = []; |
| 51 | 51 | foreach ($handlers as $handler) { |
| 52 | 52 | $endPoint = $handler->getEndpoint(); |
| 53 | - if (!isset($versionHandlers[$endPoint->getVersion()])) { |
|
| 53 | + if ( ! isset($versionHandlers[$endPoint->getVersion()])) { |
|
| 54 | 54 | $versionHandlers[$endPoint->getVersion()] = []; |
| 55 | 55 | } |
| 56 | 56 | |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | |
| 30 | 30 | if (count($args) < 3) { |
| 31 | 31 | $message = "Invalid link destination, too few arguments."; |
| 32 | - if (!Debugger::$productionMode) { |
|
| 32 | + if ( ! Debugger::$productionMode) { |
|
| 33 | 33 | throw new InvalidLinkException($message); |
| 34 | 34 | } |
| 35 | 35 | |
@@ -46,8 +46,8 @@ discard block |
||
| 46 | 46 | ]; |
| 47 | 47 | |
| 48 | 48 | return $writer->write('echo ($this->filters->apiLink)((new Tomaj\NetteApi\EndpointIdentifier(' . |
| 49 | - $arguments['method'] . ', ' . |
|
| 50 | - $arguments['version'] . ', ' . |
|
| 49 | + $arguments['method'] . ', ' . |
|
| 50 | + $arguments['version'] . ', ' . |
|
| 51 | 51 | $arguments['package'] . ', ' . |
| 52 | 52 | $arguments['action'] . ')), ' . $arguments['params'] . ')'); |
| 53 | 53 | } |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | |
| 63 | 63 | public function enableGlobalPreflight(?CorsPreflightHandlerInterface $corsHandler = null) |
| 64 | 64 | { |
| 65 | - if (!$corsHandler) { |
|
| 65 | + if ( ! $corsHandler) { |
|
| 66 | 66 | $corsHandler = new CorsPreflightHandler(new Response()); |
| 67 | 67 | } |
| 68 | 68 | |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | private function getHandler(Api $api): ApiHandlerInterface |
| 101 | 101 | { |
| 102 | 102 | $handler = $api->getHandler(); |
| 103 | - if (!is_string($handler)) { |
|
| 103 | + if ( ! is_string($handler)) { |
|
| 104 | 104 | return $handler; |
| 105 | 105 | } |
| 106 | 106 | |