@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | namespace SimpleMapper; |
6 | 6 | |
@@ -130,10 +130,10 @@ discard block |
||
130 | 130 | * @param string $throughColumn |
131 | 131 | * @return ActiveRow|null |
132 | 132 | */ |
133 | - public function ref($key, $throughColumn = null): ?ActiveRow |
|
133 | + public function ref($key, $throughColumn = null): ? ActiveRow |
|
134 | 134 | { |
135 | 135 | $row = $this->record->ref($key, $throughColumn); |
136 | - if($row instanceof IRow) { |
|
136 | + if ($row instanceof IRow) { |
|
137 | 137 | $result = $this->prepareRecord($row); |
138 | 138 | $result->setReferencingRecord($this); |
139 | 139 | return $result; |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | * @param string $throughColumn |
149 | 149 | * @return Selection |
150 | 150 | */ |
151 | - public function related($key, $throughColumn = null): ?Selection |
|
151 | + public function related($key, $throughColumn = null): ? Selection |
|
152 | 152 | { |
153 | 153 | $selection = $this->record->related($key, $throughColumn); |
154 | 154 | return $selection instanceof NetteDatabaseSelection ? $this->prepareSelection($selection) : null; |
@@ -227,7 +227,7 @@ discard block |
||
227 | 227 | /** |
228 | 228 | * @return null|ActiveRow |
229 | 229 | */ |
230 | - public function getReferencingRecord(): ?ActiveRow |
|
230 | + public function getReferencingRecord(): ? ActiveRow |
|
231 | 231 | { |
232 | 232 | return $this->referencingRecord; |
233 | 233 | } |