@@ -25,7 +25,7 @@ |
||
25 | 25 | return (isset($this->apiToken)); |
26 | 26 | } |
27 | 27 | |
28 | - public function getApiToken() |
|
28 | + public function getApiToken () |
|
29 | 29 | { |
30 | 30 | return $this->apiToken; |
31 | 31 | } |
@@ -244,7 +244,7 @@ discard block |
||
244 | 244 | * @param string $title |
245 | 245 | * @since 0.1.0 |
246 | 246 | */ |
247 | - public function editName($title) |
|
247 | + public function editName ($title) |
|
248 | 248 | { |
249 | 249 | $editUrl = sprintf("%s/%d.json", self::apiEndpoint(), $this->getId()); |
250 | 250 | $postParams = array( |
@@ -263,7 +263,7 @@ discard block |
||
263 | 263 | * @api |
264 | 264 | * @since 0.1.0 |
265 | 265 | */ |
266 | - public function archivePulse() |
|
266 | + public function archivePulse () |
|
267 | 267 | { |
268 | 268 | $archiveURL = sprintf("%s/%d.json", self::apiEndpoint(), $this->getId()); |
269 | 269 | $getParams = array( |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | */ |
57 | 57 | public function __construct ($url, $urlParams) |
58 | 58 | { |
59 | - $this->url = $url . "?" . self::formatParameters($urlParams); |
|
59 | + $this->url = $url."?".self::formatParameters($urlParams); |
|
60 | 60 | $this->cURL = curl_init(); |
61 | 61 | |
62 | 62 | $this->configureCurl(); |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | |
90 | 90 | curl_setopt_array($this->cURL, array( |
91 | 91 | CURLOPT_HTTPAUTH => CURLAUTH_BASIC, |
92 | - CURLOPT_USERPWD => $username . ":" . $password |
|
92 | + CURLOPT_USERPWD => $username.":".$password |
|
93 | 93 | )); |
94 | 94 | } |
95 | 95 | |
@@ -309,7 +309,7 @@ discard block |
||
309 | 309 | continue; |
310 | 310 | } |
311 | 311 | |
312 | - $parameters[] = rawurlencode($key) . "=" . rawurlencode($value); |
|
312 | + $parameters[] = rawurlencode($key)."=".rawurlencode($value); |
|
313 | 313 | } |
314 | 314 | |
315 | 315 | return implode("&", $parameters); |
@@ -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); |
@@ -262,7 +262,7 @@ discard block |
||
262 | 262 | { |
263 | 263 | if (self::lazyLoadConversionNeeded($target, $objectType)) |
264 | 264 | { |
265 | - $object = ($objectType[0] == "\\") ? $objectType : self::OBJ_NAMESPACE . $objectType; |
|
265 | + $object = ($objectType[0] == "\\") ? $objectType : self::OBJ_NAMESPACE.$objectType; |
|
266 | 266 | $target = new $object($target); |
267 | 267 | } |
268 | 268 | } |
@@ -296,7 +296,7 @@ discard block |
||
296 | 296 | */ |
297 | 297 | final protected static function lazyLoadConversionNeeded ($target, $objectType) |
298 | 298 | { |
299 | - $objectDefinition = ($objectType[0] === "\\") ? $objectType : self::OBJ_NAMESPACE . $objectType; |
|
299 | + $objectDefinition = ($objectType[0] === "\\") ? $objectType : self::OBJ_NAMESPACE.$objectType; |
|
300 | 300 | |
301 | 301 | return !($target instanceof $objectDefinition); |
302 | 302 | } |
@@ -333,7 +333,7 @@ discard block |
||
333 | 333 | */ |
334 | 334 | final protected static function jsonArrayToObjectArray ($className, $objects) |
335 | 335 | { |
336 | - $class = self::OBJ_NAMESPACE . $className; |
|
336 | + $class = self::OBJ_NAMESPACE.$className; |
|
337 | 337 | $array = array(); |
338 | 338 | |
339 | 339 | foreach ($objects as $post) |