Passed
Push — develop ( 2da5c4...791971 )
by Stephen
03:44 queued 11s
created
src/Models/v2019_3/Internal/Guid.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,6 @@
 block discarded – undo
10 10
  *
11 11
  * Model for Guid
12 12
  *
13
-
14 13
  */
15 14
 class Guid extends Model
16 15
 {
Please login to merge, or discard this patch.
src/Models/v2019_3/Internal/Metadata.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,6 @@
 block discarded – undo
10 10
  *
11 11
  * Metadata of the entity
12 12
  *
13
-
14 13
  */
15 14
 class Metadata extends Model
16 15
 {
Please login to merge, or discard this patch.
src/Models/v2019_3/Internal/JObject.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,6 @@
 block discarded – undo
10 10
  *
11 11
  * Model for JObject
12 12
  *
13
-
14 13
  */
15 14
 class JObject extends Model
16 15
 {
Please login to merge, or discard this patch.
src/Models/v2019_3/System/Metadata.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,6 @@
 block discarded – undo
10 10
  *
11 11
  * Metadata of the entity
12 12
  *
13
-
14 13
  */
15 14
 class Metadata extends Model
16 15
 {
Please login to merge, or discard this patch.
src/Models/v2019_3/System/JArray.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,6 @@
 block discarded – undo
10 10
  *
11 11
  * Model for JArray
12 12
  *
13
-
14 13
  */
15 14
 class JArray extends Model
16 15
 {
Please login to merge, or discard this patch.
src/Models/v2019_3/System/IRestIdentifiedItem.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,6 @@
 block discarded – undo
10 10
  *
11 11
  * Model for IRestIdentifiedItem
12 12
  *
13
-
14 13
  */
15 14
 class IRestIdentifiedItem extends Model
16 15
 {
Please login to merge, or discard this patch.
src/Models/v2019_3/System/JObject.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,6 @@
 block discarded – undo
10 10
  *
11 11
  * Model for JObject
12 12
  *
13
-
14 13
  */
15 14
 class JObject extends Model
16 15
 {
Please login to merge, or discard this patch.
src/Support/Model.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
             }
94 94
         }
95 95
 
96
-        trigger_error('Call to undefined method ' . __CLASS__ . '::' . $method . '()', E_USER_ERROR);
96
+        trigger_error('Call to undefined method '.__CLASS__.'::'.$method.'()', E_USER_ERROR);
97 97
     }
98 98
 
99 99
     /**
@@ -183,15 +183,15 @@  discard block
 block discarded – undo
183 183
         }
184 184
 
185 185
         if (class_exists($cast)) {
186
-            return new $cast((array)$value);
186
+            return new $cast((array) $value);
187 187
         }
188 188
 
189 189
         if (strcasecmp('json', $cast) == 0) {
190
-            return json_encode((array)$value);
190
+            return json_encode((array) $value);
191 191
         }
192 192
 
193 193
         if (strcasecmp('collection', $cast) == 0) {
194
-            return new Collection((array)$value);
194
+            return new Collection((array) $value);
195 195
         }
196 196
 
197 197
         if (in_array($cast, ['bool', 'boolean'])) {
@@ -306,8 +306,8 @@  discard block
 block discarded – undo
306 306
 
307 307
         // Allow for making related calls for "extra" properties in the "_info" property.
308 308
         // Cache the results so only 1 call is made
309
-        if (!isset($this->{$attribute}) && isset($this->_info->{$attribute . '_href'})) {
310
-            $this->setAttribute($attribute, $this->client->getAll($this->_info->{$attribute . '_href'}));
309
+        if (!isset($this->{$attribute}) && isset($this->_info->{$attribute.'_href'})) {
310
+            $this->setAttribute($attribute, $this->client->getAll($this->_info->{$attribute.'_href'}));
311 311
         }
312 312
 
313 313
         // Pull the value from the attributes
@@ -316,7 +316,7 @@  discard block
 block discarded – undo
316 316
         };
317 317
 
318 318
         // Attribute does not exist on the model
319
-        trigger_error('Undefined property:' . __CLASS__ . '::$' . $attribute);
319
+        trigger_error('Undefined property:'.__CLASS__.'::$'.$attribute);
320 320
     }
321 321
 
322 322
     /**
@@ -354,7 +354,7 @@  discard block
 block discarded – undo
354 354
      */
355 355
     protected function getterMethodName($attribute)
356 356
     {
357
-        return 'get' . Str::studly($attribute) . 'Attribute';
357
+        return 'get'.Str::studly($attribute).'Attribute';
358 358
     }
359 359
 
360 360
     /**
@@ -459,7 +459,7 @@  discard block
 block discarded – undo
459 459
      */
460 460
     protected function setterMethodName($attribute)
461 461
     {
462
-        return 'set' . Str::studly($attribute) . 'Attribute';
462
+        return 'set'.Str::studly($attribute).'Attribute';
463 463
     }
464 464
 
465 465
     /**
Please login to merge, or discard this patch.
src/Models/v2019_4/Finance/Metadata.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,6 @@
 block discarded – undo
10 10
  *
11 11
  * Metadata of the entity
12 12
  *
13
-
14 13
  */
15 14
 class Metadata extends Model
16 15
 {
Please login to merge, or discard this patch.