@@ -10,7 +10,6 @@ |
||
| 10 | 10 | * |
| 11 | 11 | * Model for Guid |
| 12 | 12 | * |
| 13 | - |
|
| 14 | 13 | */ |
| 15 | 14 | class Guid extends Model |
| 16 | 15 | { |
@@ -10,7 +10,6 @@ |
||
| 10 | 10 | * |
| 11 | 11 | * Metadata of the entity |
| 12 | 12 | * |
| 13 | - |
|
| 14 | 13 | */ |
| 15 | 14 | class Metadata extends Model |
| 16 | 15 | { |
@@ -10,7 +10,6 @@ |
||
| 10 | 10 | * |
| 11 | 11 | * Model for JObject |
| 12 | 12 | * |
| 13 | - |
|
| 14 | 13 | */ |
| 15 | 14 | class JObject extends Model |
| 16 | 15 | { |
@@ -10,7 +10,6 @@ |
||
| 10 | 10 | * |
| 11 | 11 | * Metadata of the entity |
| 12 | 12 | * |
| 13 | - |
|
| 14 | 13 | */ |
| 15 | 14 | class Metadata extends Model |
| 16 | 15 | { |
@@ -10,7 +10,6 @@ |
||
| 10 | 10 | * |
| 11 | 11 | * Model for JArray |
| 12 | 12 | * |
| 13 | - |
|
| 14 | 13 | */ |
| 15 | 14 | class JArray extends Model |
| 16 | 15 | { |
@@ -10,7 +10,6 @@ |
||
| 10 | 10 | * |
| 11 | 11 | * Model for IRestIdentifiedItem |
| 12 | 12 | * |
| 13 | - |
|
| 14 | 13 | */ |
| 15 | 14 | class IRestIdentifiedItem extends Model |
| 16 | 15 | { |
@@ -10,7 +10,6 @@ |
||
| 10 | 10 | * |
| 11 | 11 | * Model for JObject |
| 12 | 12 | * |
| 13 | - |
|
| 14 | 13 | */ |
| 15 | 14 | class JObject extends Model |
| 16 | 15 | { |
@@ -93,7 +93,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | /** |
@@ -10,7 +10,6 @@ |
||
| 10 | 10 | * |
| 11 | 11 | * Metadata of the entity |
| 12 | 12 | * |
| 13 | - |
|
| 14 | 13 | */ |
| 15 | 14 | class Metadata extends Model |
| 16 | 15 | { |