@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | |
| 85 | 85 | protected function getFractal(): Manager |
| 86 | 86 | { |
| 87 | - if (!$this->fractal) { |
|
| 87 | + if ( ! $this->fractal) { |
|
| 88 | 88 | throw new InvalidStateException("Fractal manager isn't initialized. Did you call parent::__construct() in your handler constructor?"); |
| 89 | 89 | } |
| 90 | 90 | |
@@ -123,11 +123,11 @@ discard block |
||
| 123 | 123 | */ |
| 124 | 124 | final public function createLink(array $params = []): string |
| 125 | 125 | { |
| 126 | - if (!$this->linkGenerator) { |
|
| 126 | + if ( ! $this->linkGenerator) { |
|
| 127 | 127 | throw new InvalidStateException("You have setupLinkGenerator for this handler if you want to generate link in this handler"); |
| 128 | 128 | } |
| 129 | 129 | |
| 130 | - if (!$this->endpoint) { |
|
| 130 | + if ( ! $this->endpoint) { |
|
| 131 | 131 | throw new InvalidStateException("You have setEndpoint() for this handler if you want to generate link in this handler"); |
| 132 | 132 | } |
| 133 | 133 | |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | |
| 11 | 11 | public function getValue() |
| 12 | 12 | { |
| 13 | - if (!filter_has_var(INPUT_COOKIE, $this->key) && isset($_COOKIE[$this->key])) { |
|
| 13 | + if ( ! filter_has_var(INPUT_COOKIE, $this->key) && isset($_COOKIE[$this->key])) { |
|
| 14 | 14 | return $_COOKIE[$this->key]; |
| 15 | 15 | } |
| 16 | 16 | |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | |
| 11 | 11 | public function getValue() |
| 12 | 12 | { |
| 13 | - if (!filter_has_var(INPUT_POST, $this->key) && isset($_POST[$this->key])) { |
|
| 13 | + if ( ! filter_has_var(INPUT_POST, $this->key) && isset($_POST[$this->key])) { |
|
| 14 | 14 | return $_POST[$this->key]; |
| 15 | 15 | } |
| 16 | 16 | |
@@ -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 | } |