@@ -30,13 +30,13 @@ discard block |
||
| 30 | 30 | |
| 31 | 31 | public static function unarchive(string $filename): self |
| 32 | 32 | { |
| 33 | - if (! \file_exists($filename)) { |
|
| 33 | + if (!\file_exists($filename)) { |
|
| 34 | 34 | throw new FileNotFoundException($filename); |
| 35 | 35 | } |
| 36 | 36 | |
| 37 | 37 | if ( |
| 38 | - ! ($contents = \file_get_contents($filename)) || |
|
| 39 | - ! ($decoded = \gzdecode($contents)) |
|
| 38 | + !($contents = \file_get_contents($filename)) || |
|
| 39 | + !($decoded = \gzdecode($contents)) |
|
| 40 | 40 | ) { |
| 41 | 41 | throw new UnarchiveException($filename); |
| 42 | 42 | } |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | throw new MalformedArchiveException($filename, $throwable); |
| 49 | 49 | } |
| 50 | 50 | |
| 51 | - if (! $dataset instanceof Dataset) { |
|
| 51 | + if (!$dataset instanceof Dataset) { |
|
| 52 | 52 | throw new MalformedArchiveException($filename); |
| 53 | 53 | } |
| 54 | 54 | |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | |
| 85 | 85 | public function indexBy(string $index = 'hexcode'): Dataset |
| 86 | 86 | { |
| 87 | - if (! isset($this->indices[$index])) { |
|
| 87 | + if (!isset($this->indices[$index])) { |
|
| 88 | 88 | $this->indices[$index] = new self($this, $index); |
| 89 | 89 | } |
| 90 | 90 | |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | $key = \current(Normalize::shortcodes($key)); |
| 102 | 102 | } |
| 103 | 103 | |
| 104 | - if (! $key) { |
|
| 104 | + if (!$key) { |
|
| 105 | 105 | return null; |
| 106 | 106 | } |
| 107 | 107 | |
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | { |
| 24 | 24 | $this->assertUninitialized('Failed to add renderer.'); |
| 25 | 25 | |
| 26 | - if (! isset($this->renderersByClass[$nodeClass])) { |
|
| 26 | + if (!isset($this->renderersByClass[$nodeClass])) { |
|
| 27 | 27 | /** @var PrioritizedList<NodeRendererInterface> $renderers */ |
| 28 | 28 | $renderers = new PrioritizedList(); |
| 29 | 29 | |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | } |
| 52 | 52 | |
| 53 | 53 | while (\class_exists($parent = (string) ($parent ?? $nodeClass)) && ($parent = \get_parent_class($parent))) { |
| 54 | - if (! isset($this->renderersByClass[$parent])) { |
|
| 54 | + if (!isset($this->renderersByClass[$parent])) { |
|
| 55 | 55 | continue; |
| 56 | 56 | } |
| 57 | 57 | |