@@ -256,7 +256,7 @@ discard block |
||
| 256 | 256 | */ |
| 257 | 257 | public function add(CriterionInterface $criterion): self |
| 258 | 258 | { |
| 259 | - if (! $criterion->isAttached()) { |
|
| 259 | + if (!$criterion->isAttached()) { |
|
| 260 | 260 | $criterion->attach($this); |
| 261 | 261 | } |
| 262 | 262 | |
@@ -352,14 +352,14 @@ discard block |
||
| 352 | 352 | */ |
| 353 | 353 | public function except($filter): Query |
| 354 | 354 | { |
| 355 | - if (\is_string($filter) && ! \is_callable($filter)) { |
|
| 356 | - return $this->only(function (CriterionInterface $criterion) use ($filter): bool { |
|
| 357 | - return ! $criterion instanceof $filter; |
|
| 355 | + if (\is_string($filter) && !\is_callable($filter)) { |
|
| 356 | + return $this->only(function(CriterionInterface $criterion) use ($filter): bool { |
|
| 357 | + return !$criterion instanceof $filter; |
|
| 358 | 358 | }); |
| 359 | 359 | } |
| 360 | 360 | |
| 361 | - return $this->only(function (CriterionInterface $criterion) use ($filter): bool { |
|
| 362 | - return ! $filter($criterion); |
|
| 361 | + return $this->only(function(CriterionInterface $criterion) use ($filter): bool { |
|
| 362 | + return !$filter($criterion); |
|
| 363 | 363 | }); |
| 364 | 364 | } |
| 365 | 365 | |
@@ -392,10 +392,10 @@ discard block |
||
| 392 | 392 | { |
| 393 | 393 | \assert(\is_string($filter) || \is_callable($filter)); |
| 394 | 394 | |
| 395 | - if (\is_string($filter) && ! \is_callable($filter)) { |
|
| 395 | + if (\is_string($filter) && !\is_callable($filter)) { |
|
| 396 | 396 | $typeOf = $filter; |
| 397 | 397 | |
| 398 | - return function (CriterionInterface $criterion) use ($typeOf): bool { |
|
| 398 | + return function(CriterionInterface $criterion) use ($typeOf): bool { |
|
| 399 | 399 | return $criterion instanceof $typeOf; |
| 400 | 400 | }; |
| 401 | 401 | } |