@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | |
| 107 | 107 | if (is_null($idOrArray)) |
| 108 | 108 | { |
| 109 | - throw new \InvalidArgumentException("You may not initialize " . $staticClass . " with null."); |
|
| 109 | + throw new \InvalidArgumentException("You may not initialize ".$staticClass." with null."); |
|
| 110 | 110 | } |
| 111 | 111 | |
| 112 | 112 | if (!is_array($idOrArray)) |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | |
| 117 | 117 | if ($this->arrayConstructionOnly && !is_array($idOrArray)) |
| 118 | 118 | { |
| 119 | - throw new \InvalidArgumentException("A " . $staticClass . " cannot be fetched from an ID."); |
|
| 119 | + throw new \InvalidArgumentException("A ".$staticClass." cannot be fetched from an ID."); |
|
| 120 | 120 | } |
| 121 | 121 | |
| 122 | 122 | $this->jsonResponse = (is_array($idOrArray)) ? $idOrArray : $this::sendGet($urlEndPoint); |
@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | /** |
| 129 | 129 | * {@inheritdoc} |
| 130 | 130 | */ |
| 131 | - public function jsonSerialize() |
|
| 131 | + public function jsonSerialize () |
|
| 132 | 132 | { |
| 133 | 133 | return $this->jsonResponse; |
| 134 | 134 | } |
@@ -272,7 +272,7 @@ discard block |
||
| 272 | 272 | { |
| 273 | 273 | if (self::lazyCastNeeded($target, $objectType)) |
| 274 | 274 | { |
| 275 | - $object = ($objectType[0] == "\\") ? $objectType : self::OBJ_NAMESPACE . $objectType; |
|
| 275 | + $object = ($objectType[0] == "\\") ? $objectType : self::OBJ_NAMESPACE.$objectType; |
|
| 276 | 276 | $target = new $object($target); |
| 277 | 277 | } |
| 278 | 278 | } |
@@ -306,7 +306,7 @@ discard block |
||
| 306 | 306 | */ |
| 307 | 307 | final protected static function lazyCastNeeded ($target, $objectType) |
| 308 | 308 | { |
| 309 | - $objectDefinition = ($objectType[0] === "\\") ? $objectType : self::OBJ_NAMESPACE . $objectType; |
|
| 309 | + $objectDefinition = ($objectType[0] === "\\") ? $objectType : self::OBJ_NAMESPACE.$objectType; |
|
| 310 | 310 | |
| 311 | 311 | return !($target instanceof $objectDefinition); |
| 312 | 312 | } |
@@ -343,7 +343,7 @@ discard block |
||
| 343 | 343 | */ |
| 344 | 344 | final protected static function castArrayToObjectArray ($className, $objects) |
| 345 | 345 | { |
| 346 | - $class = self::OBJ_NAMESPACE . $className; |
|
| 346 | + $class = self::OBJ_NAMESPACE.$className; |
|
| 347 | 347 | $array = array(); |
| 348 | 348 | |
| 349 | 349 | foreach ($objects as $post) |