Completed
Push — master ( 0168d7...b51373 )
by
unknown
08:31 queued 14s
created
src/PhraseanetSDK/Repository/Record.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -105,8 +105,8 @@
 block discarded – undo
105 105
             $results->facets = $res->facets;
106 106
             $results->count = $res->count;
107 107
             $results->total = $res->total;
108
-            $results->limit = isset($res->limit) ? $res->limit : 10;  // TODO: just $res->limit after a phraseanet PR in searchraw
109
-            $results->offset = isset($res->offset) ? $res->offset : 0;  // TODO: just $res->offset after a phraseanet PR
108
+            $results->limit = isset($res->limit) ? $res->limit : 10; // TODO: just $res->limit after a phraseanet PR in searchraw
109
+            $results->offset = isset($res->offset) ? $res->offset : 0; // TODO: just $res->offset after a phraseanet PR
110 110
         }
111 111
 
112 112
 
Please login to merge, or discard this patch.
src/PhraseanetSDK/Entity/Record.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
      */
108 108
     public function getId()
109 109
     {
110
-        return $this->getDataboxId() . '_' . $this->getRecordId();
110
+        return $this->getDataboxId().'_'.$this->getRecordId();
111 111
     }
112 112
 
113 113
     /**
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
      */
278 278
     public function getSubdefs()
279 279
     {
280
-        if (! isset($this->source->subdefs)) {
280
+        if (!isset($this->source->subdefs)) {
281 281
             $this->subdefs = new ArrayCollection();
282 282
         } else {
283 283
             $subdefs = $this->source->subdefs;
@@ -294,7 +294,7 @@  discard block
 block discarded – undo
294 294
      */
295 295
     public function getStatus()
296 296
     {
297
-        if (! isset($this->source->status)) {
297
+        if (!isset($this->source->status)) {
298 298
             $this->status = new ArrayCollection();
299 299
         }
300 300
 
@@ -306,7 +306,7 @@  discard block
 block discarded – undo
306 306
      */
307 307
     public function getCaption()
308 308
     {
309
-        if (! isset($this->source->caption)) {
309
+        if (!isset($this->source->caption)) {
310 310
             $this->caption = new ArrayCollection();
311 311
         } else {
312 312
             $caption = $this->source->caption;
@@ -323,7 +323,7 @@  discard block
 block discarded – undo
323 323
      */
324 324
     public function getMetadata()
325 325
     {
326
-        if (! isset($this->source->metadata)) {
326
+        if (!isset($this->source->metadata)) {
327 327
             // fallback on caption source
328 328
             $this->metadata = $this->getCaption();
329 329
         }
Please login to merge, or discard this patch.
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.