@@ -198,7 +198,7 @@ |
||
| 198 | 198 | * @param $pValue mixed |
| 199 | 199 | */ |
| 200 | 200 | public function setSourceEntry(string $pKey, $pValue) |
| 201 | - { |
|
| 202 | - $this->source->$pKey = $pValue; |
|
| 203 | - } |
|
| 201 | + { |
|
| 202 | + $this->source->$pKey = $pValue; |
|
| 203 | + } |
|
| 204 | 204 | } |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | */ |
| 99 | 99 | public function isValidationItem(): bool |
| 100 | 100 | { |
| 101 | - return (bool)$this->source->validation_item; |
|
| 101 | + return (bool) $this->source->validation_item; |
|
| 102 | 102 | } |
| 103 | 103 | |
| 104 | 104 | /** |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | */ |
| 120 | 120 | public function getValidationChoices() |
| 121 | 121 | { |
| 122 | - if (! isset($this->source->validation_choices)) { |
|
| 122 | + if (!isset($this->source->validation_choices)) { |
|
| 123 | 123 | $this->validationChoices = new ArrayCollection(); |
| 124 | 124 | } |
| 125 | 125 | |
@@ -239,7 +239,7 @@ |
||
| 239 | 239 | */ |
| 240 | 240 | public function getValidationInitiatorUser(): ?User |
| 241 | 241 | { |
| 242 | - return $this->validationInitiatorUser ?: ($this->validationInitiatorUser = User::fromValue($this->source->validation_initiator_user)); |
|
| 242 | + return $this->validationInitiatorUser ?: ($this->validationInitiatorUser = User::fromValue($this->source->validation_initiator_user)); |
|
| 243 | 243 | } |
| 244 | 244 | |
| 245 | 245 | /** |
@@ -183,7 +183,7 @@ |
||
| 183 | 183 | */ |
| 184 | 184 | public function getValidationUsers(): ?ArrayCollection |
| 185 | 185 | { |
| 186 | - if (! $this->isValidationBasket()) { |
|
| 186 | + if (!$this->isValidationBasket()) { |
|
| 187 | 187 | return null; |
| 188 | 188 | } |
| 189 | 189 | |
@@ -153,7 +153,7 @@ discard block |
||
| 153 | 153 | */ |
| 154 | 154 | public function getThumbnail(): ?Subdef |
| 155 | 155 | { |
| 156 | - if (! isset($this->source->thumbnail)) { |
|
| 156 | + if (!isset($this->source->thumbnail)) { |
|
| 157 | 157 | return null; |
| 158 | 158 | } |
| 159 | 159 | |
@@ -208,8 +208,7 @@ discard block |
||
| 208 | 208 | public function getRecordCount(): int |
| 209 | 209 | { |
| 210 | 210 | return $this->recordCount !== null ? |
| 211 | - $this->recordCount : |
|
| 212 | - $this->recordCount = |
|
| 211 | + $this->recordCount : $this->recordCount = |
|
| 213 | 212 | (isset($this->source->record_count) ? $this->source->record_count : count($this->getRecords())); |
| 214 | 213 | } |
| 215 | 214 | |
@@ -218,7 +217,7 @@ discard block |
||
| 218 | 217 | */ |
| 219 | 218 | public function getRecords() |
| 220 | 219 | { |
| 221 | - if (! isset($this->source->records)) { |
|
| 220 | + if (!isset($this->source->records)) { |
|
| 222 | 221 | $this->records = new ArrayCollection(); |
| 223 | 222 | } |
| 224 | 223 | |
@@ -232,7 +231,7 @@ discard block |
||
| 232 | 231 | */ |
| 233 | 232 | public function getMetadata() |
| 234 | 233 | { |
| 235 | - if (! isset($this->source->metadata)) { |
|
| 234 | + if (!isset($this->source->metadata)) { |
|
| 236 | 235 | $this->metadata = new ArrayCollection(); |
| 237 | 236 | } |
| 238 | 237 | |
@@ -249,7 +248,7 @@ discard block |
||
| 249 | 248 | */ |
| 250 | 249 | public function getStatus() |
| 251 | 250 | { |
| 252 | - if (! isset($this->status)) { |
|
| 251 | + if (!isset($this->status)) { |
|
| 253 | 252 | /** @var RecordStatusRepository $repo */ |
| 254 | 253 | $repo = $this->entityManager->getRepository('recordStatus'); |
| 255 | 254 | $this->status = $repo->findByRecord( |
@@ -269,11 +268,11 @@ discard block |
||
| 269 | 268 | */ |
| 270 | 269 | public function getCaption() |
| 271 | 270 | { |
| 272 | - if (! isset($this->caption) && isset($this->source->caption)) { |
|
| 271 | + if (!isset($this->caption) && isset($this->source->caption)) { |
|
| 273 | 272 | $this->caption = RecordCaption::fromList((array) $this->source->caption); |
| 274 | 273 | } |
| 275 | 274 | |
| 276 | - if (! isset($this->caption)) { |
|
| 275 | + if (!isset($this->caption)) { |
|
| 277 | 276 | /** @var CaptionRepository $repo */ |
| 278 | 277 | $repo = $this->entityManager->getRepository('caption'); |
| 279 | 278 | $this->caption = $repo->findByRecord( |