Completed
Push — master ( 0168d7...b51373 )
by
unknown
08:31 queued 14s
created
src/PhraseanetSDK/Entity/Story.php 1 patch
Spacing   +6 added lines, -7 removed lines patch added patch discarded remove patch
@@ -196,8 +196,7 @@  discard block
 block discarded – undo
196 196
     public function getRecordCount()
197 197
     {
198 198
         return $this->recordCount !== null ?
199
-            $this->recordCount :
200
-            $this->recordCount =
199
+            $this->recordCount : $this->recordCount =
201 200
                 (isset($this->source->record_count) ? $this->source->record_count : count($this->getRecords()));
202 201
     }
203 202
 
@@ -206,7 +205,7 @@  discard block
 block discarded – undo
206 205
      */
207 206
     public function getRecords()
208 207
     {
209
-        if (! isset($this->source->records)) {
208
+        if (!isset($this->source->records)) {
210 209
             $this->records = new ArrayCollection();
211 210
         }
212 211
 
@@ -220,7 +219,7 @@  discard block
 block discarded – undo
220 219
      */
221 220
     public function getMetadata()
222 221
     {
223
-        if (! isset($this->source->metadata)) {
222
+        if (!isset($this->source->metadata)) {
224 223
             // fallback on caption source
225 224
             $this->metadata = $this->getCaption();
226 225
         }
@@ -235,7 +234,7 @@  discard block
 block discarded – undo
235 234
      */
236 235
     public function getStatus()
237 236
     {
238
-        if (! isset($this->status)) {
237
+        if (!isset($this->status)) {
239 238
             $this->status = $this->entityManager->getRepository('recordStatus')->findByRecord(
240 239
                 $this->getDataboxId(),
241 240
                 $this->getStoryId()
@@ -250,7 +249,7 @@  discard block
 block discarded – undo
250 249
      */
251 250
     public function getCaption()
252 251
     {
253
-        if (! isset($this->caption) && isset($this->source->caption)) {
252
+        if (!isset($this->caption) && isset($this->source->caption)) {
254 253
             $caption = $this->source->caption;
255 254
             if (is_object($this->source->caption)) {
256 255
                 $caption = get_object_vars($this->source->caption);
@@ -259,7 +258,7 @@  discard block
 block discarded – undo
259 258
             $this->caption = RecordCaption::fromList($caption);
260 259
         }
261 260
 
262
-        if (! isset($this->caption)) {
261
+        if (!isset($this->caption)) {
263 262
             $this->caption = $this->entityManager->getRepository('caption')->findByRecord(
264 263
                 $this->getDataboxId(),
265 264
                 $this->getStoryId()
Please login to merge, or discard this patch.