@@ -41,7 +41,7 @@ |
||
| 41 | 41 | return false; |
| 42 | 42 | } |
| 43 | 43 | |
| 44 | - if (!$value && $this->isRequired() === self::OPTIONAL) { |
|
| 44 | + if ( ! $value && $this->isRequired() === self::OPTIONAL) { |
|
| 45 | 45 | return true; |
| 46 | 46 | } |
| 47 | 47 | |
@@ -143,7 +143,7 @@ |
||
| 143 | 143 | |
| 144 | 144 | public function updateConsoleForm(Form $form): void |
| 145 | 145 | { |
| 146 | - $count = $this->isMulti() ? 5 : 1; // TODO moznost nastavit kolko inputov sa ma vygenerovat v konzole, default moze byt 5 |
|
| 146 | + $count = $this->isMulti() ? 5 : 1; // TODO moznost nastavit kolko inputov sa ma vygenerovat v konzole, default moze byt 5 |
|
| 147 | 147 | for ($i = 0; $i < $count; $i++) { |
| 148 | 148 | $key = $this->getKey(); |
| 149 | 149 | if ($this->isMulti()) { |
@@ -8,7 +8,7 @@ |
||
| 8 | 8 | |
| 9 | 9 | public function getValue() |
| 10 | 10 | { |
| 11 | - if (!filter_has_var(INPUT_COOKIE, $this->key) && isset($_COOKIE[$this->key])) { |
|
| 11 | + if ( ! filter_has_var(INPUT_COOKIE, $this->key) && isset($_COOKIE[$this->key])) { |
|
| 12 | 12 | return $_COOKIE[$this->key]; |
| 13 | 13 | } |
| 14 | 14 | $value = filter_input(INPUT_COOKIE, $this->key); |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | |
| 75 | 75 | protected function getFractal(): Manager |
| 76 | 76 | { |
| 77 | - if (!$this->fractal) { |
|
| 77 | + if ( ! $this->fractal) { |
|
| 78 | 78 | throw new InvalidStateException("Fractal manager isn't initialized. Did you call parent::__construct() in your handler constructor?"); |
| 79 | 79 | } |
| 80 | 80 | return $this->fractal; |
@@ -116,10 +116,10 @@ discard block |
||
| 116 | 116 | */ |
| 117 | 117 | final public function createLink(array $params = []): string |
| 118 | 118 | { |
| 119 | - if (!$this->linkGenerator) { |
|
| 119 | + if ( ! $this->linkGenerator) { |
|
| 120 | 120 | throw new InvalidStateException("You have setupLinkGenerator for this handler if you want to generate link in this handler"); |
| 121 | 121 | } |
| 122 | - if (!$this->endpoint) { |
|
| 122 | + if ( ! $this->endpoint) { |
|
| 123 | 123 | throw new InvalidStateException("You have setEndpoint() for this handler if you want to generate link in this handler"); |
| 124 | 124 | } |
| 125 | 125 | $params = array_merge([ |