@@ -36,7 +36,7 @@ |
||
36 | 36 | ->fetch() |
37 | 37 | ; |
38 | 38 | |
39 | - if (!$result) { |
|
39 | + if ( ! $result) { |
|
40 | 40 | throw new NotFound(\sprintf('Object from "%s" table not found for given specification.', static::tableName())); |
41 | 41 | } |
42 | 42 |
@@ -21,7 +21,7 @@ |
||
21 | 21 | |
22 | 22 | final public function matchOne($specification) |
23 | 23 | { |
24 | - if (!$result = $this->qbForSpecification($specification)->getQuery()->getOneOrNullResult()) { |
|
24 | + if ( ! $result = $this->qbForSpecification($specification)->getQuery()->getOneOrNullResult()) { |
|
25 | 25 | throw new NotFound("{$this->getClassName()} not found for given specification."); |
26 | 26 | } |
27 | 27 |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | |
23 | 23 | public function normalize($specification, $context) |
24 | 24 | { |
25 | - if (!$normalizer = $this->getNormalizer($specification, $context)) { |
|
25 | + if ( ! $normalizer = $this->getNormalizer($specification, $context)) { |
|
26 | 26 | throw new \RuntimeException(\sprintf('Specification "%s" with context "%s" does not have a supported visitor registered.', get_debug_type($specification), get_debug_type($context))); |
27 | 27 | } |
28 | 28 | |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | } |
50 | 50 | |
51 | 51 | foreach ($this->normalizers as $normalizer) { |
52 | - if (!$normalizer->supports($specification, $context)) { |
|
52 | + if ( ! $normalizer->supports($specification, $context)) { |
|
53 | 53 | continue; |
54 | 54 | } |
55 | 55 |
@@ -18,7 +18,7 @@ |
||
18 | 18 | |
19 | 19 | protected function normalizer(): Normalizer |
20 | 20 | { |
21 | - if (!$this->normalizer) { |
|
21 | + if ( ! $this->normalizer) { |
|
22 | 22 | throw new \RuntimeException('A normalizer has not been set.'); |
23 | 23 | } |
24 | 24 |
@@ -9,7 +9,7 @@ |
||
9 | 9 | { |
10 | 10 | protected static function classInMap($specification): bool |
11 | 11 | { |
12 | - if (!\is_object($specification)) { |
|
12 | + if ( ! \is_object($specification)) { |
|
13 | 13 | return false; |
14 | 14 | } |
15 | 15 |