Completed
Push — develop ( b198f5...835e6f )
by Jimmy
18s queued 10s
created
src/Support/Model.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
             }
90 90
         }
91 91
 
92
-        trigger_error('Call to undefined method ' . __CLASS__ . '::' . $method . '()', E_USER_ERROR);
92
+        trigger_error('Call to undefined method '.__CLASS__.'::'.$method.'()', E_USER_ERROR);
93 93
     }
94 94
 
95 95
     /**
@@ -179,15 +179,15 @@  discard block
 block discarded – undo
179 179
         }
180 180
 
181 181
         if (class_exists($cast)) {
182
-            return new $cast((array)$value);
182
+            return new $cast((array) $value);
183 183
         }
184 184
 
185 185
         if (strcasecmp('json', $cast) == 0) {
186
-            return json_encode((array)$value);
186
+            return json_encode((array) $value);
187 187
         }
188 188
 
189 189
         if (strcasecmp('collection', $cast) == 0) {
190
-            return new Collection((array)$value);
190
+            return new Collection((array) $value);
191 191
         }
192 192
 
193 193
         if (in_array($cast, ['bool', 'boolean'])) {
@@ -302,11 +302,11 @@  discard block
 block discarded – undo
302 302
 
303 303
         // Allow for making related calls for "extra" properties in the "_info" property.
304 304
         // Cache the results so only 1 call is made
305
-        if (!isset($this->{$attribute}) && isset($this->_info->{$attribute . '_href'})) {
305
+        if (!isset($this->{$attribute}) && isset($this->_info->{$attribute.'_href'})) {
306 306
             $this->setAttribute(
307 307
                 $attribute,
308 308
                 $this->client->get(
309
-                    Str::replaceFirst($this->client->getUrl(), '', $this->_info->{$attribute . '_href'})
309
+                    Str::replaceFirst($this->client->getUrl(), '', $this->_info->{$attribute.'_href'})
310 310
                 )
311 311
             );
312 312
         }
@@ -317,7 +317,7 @@  discard block
 block discarded – undo
317 317
         };
318 318
 
319 319
         // Attribute does not exist on the model
320
-        trigger_error('Undefined property:' . __CLASS__ . '::$' . $attribute);
320
+        trigger_error('Undefined property:'.__CLASS__.'::$'.$attribute);
321 321
     }
322 322
 
323 323
     /**
@@ -355,7 +355,7 @@  discard block
 block discarded – undo
355 355
      */
356 356
     protected function getterMethodName($attribute)
357 357
     {
358
-        return 'get' . Str::studly($attribute) . 'Attribute';
358
+        return 'get'.Str::studly($attribute).'Attribute';
359 359
     }
360 360
 
361 361
     /**
@@ -460,7 +460,7 @@  discard block
 block discarded – undo
460 460
      */
461 461
     protected function setterMethodName($attribute)
462 462
     {
463
-        return 'set' . Str::studly($attribute) . 'Attribute';
463
+        return 'set'.Str::studly($attribute).'Attribute';
464 464
     }
465 465
 
466 466
     /**
Please login to merge, or discard this patch.