@@ -80,11 +80,11 @@ discard block |
||
| 80 | 80 | */ |
| 81 | 81 | public function enable(string $name) |
| 82 | 82 | { |
| 83 | - if (! $this->has($name)) { |
|
| 84 | - throw new \InvalidArgumentException("Filter '" . $name . "' does not exist."); |
|
| 83 | + if ( ! $this->has($name)) { |
|
| 84 | + throw new \InvalidArgumentException("Filter '".$name."' does not exist."); |
|
| 85 | 85 | } |
| 86 | 86 | |
| 87 | - if (! $this->isEnabled($name)) { |
|
| 87 | + if ( ! $this->isEnabled($name)) { |
|
| 88 | 88 | $filterClass = $this->config->getFilterClassName($name); |
| 89 | 89 | |
| 90 | 90 | $this->enabledFilters[$name] = new $filterClass($this->em); |
@@ -132,8 +132,8 @@ discard block |
||
| 132 | 132 | */ |
| 133 | 133 | public function getFilter(string $name) |
| 134 | 134 | { |
| 135 | - if (! $this->isEnabled($name)) { |
|
| 136 | - throw new \InvalidArgumentException("Filter '" . $name . "' is not enabled."); |
|
| 135 | + if ( ! $this->isEnabled($name)) { |
|
| 136 | + throw new \InvalidArgumentException("Filter '".$name."' is not enabled."); |
|
| 137 | 137 | } |
| 138 | 138 | |
| 139 | 139 | return $this->enabledFilters[$name]; |
@@ -186,7 +186,7 @@ discard block |
||
| 186 | 186 | $filterHash = ''; |
| 187 | 187 | |
| 188 | 188 | foreach ($this->enabledFilters as $name => $filter) { |
| 189 | - $filterHash .= $name . $filter; |
|
| 189 | + $filterHash .= $name.$filter; |
|
| 190 | 190 | } |
| 191 | 191 | |
| 192 | 192 | return $filterHash; |