@@ -272,9 +272,9 @@ |
||
| 272 | 272 | * |
| 273 | 273 | * @return string The API URL |
| 274 | 274 | */ |
| 275 | - private function buildApiUrl ($location, $identifier = NULL) |
|
| 275 | + private function buildApiUrl ($location, $identifier = null) |
|
| 276 | 276 | { |
| 277 | - if ($identifier === NULL) |
|
| 277 | + if ($identifier === null) |
|
| 278 | 278 | { |
| 279 | 279 | $identifier = $this->resourceId; |
| 280 | 280 | } |
@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | * |
| 138 | 138 | * @return mixed An associative array matching the returned JSON result or an StdClass object |
| 139 | 139 | */ |
| 140 | - public function sendGet ($params, $associativeArray, &$headers = NULL) |
|
| 140 | + public function sendGet ($params, $associativeArray, &$headers = null) |
|
| 141 | 141 | { |
| 142 | 142 | if (is_array($params)) |
| 143 | 143 | { |
@@ -172,7 +172,7 @@ discard block |
||
| 172 | 172 | * |
| 173 | 173 | * @return mixed An associative array matching the returned JSON result or an StdClass object |
| 174 | 174 | */ |
| 175 | - public function sendPost ($dataAsJson, $associativeArray, &$headers = NULL) |
|
| 175 | + public function sendPost ($dataAsJson, $associativeArray, &$headers = null) |
|
| 176 | 176 | { |
| 177 | 177 | $this->setPostFields($dataAsJson); |
| 178 | 178 | |
@@ -198,7 +198,7 @@ discard block |
||
| 198 | 198 | * |
| 199 | 199 | * @return mixed An associative array matching the returned JSON result or an StdClass object |
| 200 | 200 | */ |
| 201 | - public function sendPut ($dataAsJson, $associativeArray, &$headers = NULL) |
|
| 201 | + public function sendPut ($dataAsJson, $associativeArray, &$headers = null) |
|
| 202 | 202 | { |
| 203 | 203 | $this->setPostFields($dataAsJson); |
| 204 | 204 | |
@@ -220,7 +220,7 @@ discard block |
||
| 220 | 220 | * |
| 221 | 221 | * @return mixed An associative array matching the returned JSON result or an StdClass object |
| 222 | 222 | */ |
| 223 | - public function sendDelete ($associativeArray, &$headers = NULL) |
|
| 223 | + public function sendDelete ($associativeArray, &$headers = null) |
|
| 224 | 224 | { |
| 225 | 225 | curl_setopt($this->cURL, CURLOPT_CUSTOMREQUEST, "DELETE"); |
| 226 | 226 | |
@@ -266,7 +266,7 @@ discard block |
||
| 266 | 266 | |
| 267 | 267 | if ($ignoreReturn) |
| 268 | 268 | { |
| 269 | - return NULL; |
|
| 269 | + return null; |
|
| 270 | 270 | } |
| 271 | 271 | |
| 272 | 272 | $resultArray = $this->handleResponseBody($body, $result); |
@@ -365,7 +365,7 @@ discard block |
||
| 365 | 365 | */ |
| 366 | 366 | private function saveHeaders ($header, &$headers) |
| 367 | 367 | { |
| 368 | - if ($headers === NULL) |
|
| 368 | + if ($headers === null) |
|
| 369 | 369 | { |
| 370 | 370 | return; |
| 371 | 371 | } |