@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | */ |
139 | 139 | public function getThumbnail() |
140 | 140 | { |
141 | - if (! isset($this->source->thumbnail)) { |
|
141 | + if (!isset($this->source->thumbnail)) { |
|
142 | 142 | return null; |
143 | 143 | } |
144 | 144 | |
@@ -191,8 +191,7 @@ discard block |
||
191 | 191 | public function getRecordCount() |
192 | 192 | { |
193 | 193 | return $this->recordCount !== null ? |
194 | - $this->recordCount : |
|
195 | - $this->recordCount = |
|
194 | + $this->recordCount : $this->recordCount = |
|
196 | 195 | (isset($this->source->record_count) ? $this->source->record_count : count($this->getRecords())); |
197 | 196 | } |
198 | 197 | |
@@ -201,7 +200,7 @@ discard block |
||
201 | 200 | */ |
202 | 201 | public function getRecords() |
203 | 202 | { |
204 | - if (! isset($this->source->records)) { |
|
203 | + if (!isset($this->source->records)) { |
|
205 | 204 | $this->records = new ArrayCollection(); |
206 | 205 | } |
207 | 206 | |
@@ -215,7 +214,7 @@ discard block |
||
215 | 214 | */ |
216 | 215 | public function getMetadata() |
217 | 216 | { |
218 | - if (! isset($this->source->metadata)) { |
|
217 | + if (!isset($this->source->metadata)) { |
|
219 | 218 | $this->metadata = new ArrayCollection(); |
220 | 219 | } |
221 | 220 | |
@@ -229,7 +228,7 @@ discard block |
||
229 | 228 | */ |
230 | 229 | public function getStatus() |
231 | 230 | { |
232 | - if (! isset($this->status)) { |
|
231 | + if (!isset($this->status)) { |
|
233 | 232 | $this->status = $this->entityManager->getRepository('recordStatus')->findByRecord( |
234 | 233 | $this->getDataboxId(), |
235 | 234 | $this->getStoryId() |
@@ -244,11 +243,11 @@ discard block |
||
244 | 243 | */ |
245 | 244 | public function getCaption() |
246 | 245 | { |
247 | - if (! isset($this->caption) && isset($this->source->caption)) { |
|
246 | + if (!isset($this->caption) && isset($this->source->caption)) { |
|
248 | 247 | $this->caption = RecordCaption::fromList((array) $this->source->caption); |
249 | 248 | } |
250 | 249 | |
251 | - if (! isset($this->caption)) { |
|
250 | + if (!isset($this->caption)) { |
|
252 | 251 | $this->caption = $this->entityManager->getRepository('caption')->findByRecord( |
253 | 252 | $this->getDataboxId(), |
254 | 253 | $this->getStoryId() |