@@ -337,7 +337,7 @@ |
||
| 337 | 337 | * |
| 338 | 338 | * @return PulseUpdate |
| 339 | 339 | */ |
| 340 | - public static function createUpdate ($user, $pulse, $text, $announceToAll = NULL) |
|
| 340 | + public static function createUpdate ($user, $pulse, $text, $announceToAll = null) |
|
| 341 | 341 | { |
| 342 | 342 | if ($user instanceof PulseUser) |
| 343 | 343 | { |
@@ -185,7 +185,7 @@ discard block |
||
| 185 | 185 | * |
| 186 | 186 | * @return $this |
| 187 | 187 | */ |
| 188 | - public function editNote ($title = NULL, $content = NULL, $userId = NULL, $createUpdate = NULL) |
|
| 188 | + public function editNote ($title = null, $content = null, $userId = null, $createUpdate = null) |
|
| 189 | 189 | { |
| 190 | 190 | $this->checkInvalid(); |
| 191 | 191 | |
@@ -253,7 +253,7 @@ discard block |
||
| 253 | 253 | */ |
| 254 | 254 | public function editContent ($content) |
| 255 | 255 | { |
| 256 | - return $this->editNote(NULL, $content); |
|
| 256 | + return $this->editNote(null, $content); |
|
| 257 | 257 | } |
| 258 | 258 | |
| 259 | 259 | /** |
@@ -273,7 +273,7 @@ discard block |
||
| 273 | 273 | */ |
| 274 | 274 | public function editAuthor ($userId) |
| 275 | 275 | { |
| 276 | - return $this->editNote(NULL, NULL, $userId); |
|
| 276 | + return $this->editNote(null, null, $userId); |
|
| 277 | 277 | } |
| 278 | 278 | |
| 279 | 279 | /** |
@@ -58,7 +58,7 @@ |
||
| 58 | 58 | * |
| 59 | 59 | * @since 0.1.0 |
| 60 | 60 | */ |
| 61 | - public function addSubscriber ($userId, $asAdmin = NULL) |
|
| 61 | + public function addSubscriber ($userId, $asAdmin = null) |
|
| 62 | 62 | { |
| 63 | 63 | if ($userId instanceof PulseUser) |
| 64 | 64 | { |
@@ -254,7 +254,7 @@ discard block |
||
| 254 | 254 | $this->deletedObject = true; |
| 255 | 255 | } |
| 256 | 256 | |
| 257 | - public function duplicatePulse ($groupId = NULL, $ownerId = NULL) |
|
| 257 | + public function duplicatePulse ($groupId = null, $ownerId = null) |
|
| 258 | 258 | { |
| 259 | 259 | $url = sprintf("%s/%s/pulses/%s/duplicate.json", self::apiEndpoint("boards"), $this->getBoardId(), $this->getId()); |
| 260 | 260 | $postParams = array(); |
@@ -498,7 +498,7 @@ discard block |
||
| 498 | 498 | * @since 0.1.0 |
| 499 | 499 | * @return PulseNote |
| 500 | 500 | */ |
| 501 | - public function addNote ($title, $content, $ownersOnly = false, $userId = NULL, $createUpdate = false) |
|
| 501 | + public function addNote ($title, $content, $ownersOnly = false, $userId = null, $createUpdate = false) |
|
| 502 | 502 | { |
| 503 | 503 | $url = sprintf($this->urlSyntax, self::apiEndpoint(), $this->id, "notes"); |
| 504 | 504 | $postParams = array( |
@@ -564,7 +564,7 @@ discard block |
||
| 564 | 564 | * |
| 565 | 565 | * @since 0.1.0 |
| 566 | 566 | */ |
| 567 | - public function createUpdate ($user, $text, $announceToAll = NULL) |
|
| 567 | + public function createUpdate ($user, $text, $announceToAll = null) |
|
| 568 | 568 | { |
| 569 | 569 | PulseUpdate::createUpdate($user, $this->getId(), $text, $announceToAll); |
| 570 | 570 | } |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | |
| 125 | 125 | if ($this->arrayConstructionOnly && !is_array($idOrArray)) |
| 126 | 126 | { |
| 127 | - throw new \InvalidArgumentException("A $staticClass cannot be fetched from an ID."); |
|
| 127 | + throw new \InvalidArgumentException("a $staticClass cannot be fetched from an ID."); |
|
| 128 | 128 | } |
| 129 | 129 | |
| 130 | 130 | $this->initializeValues(); |
@@ -468,7 +468,7 @@ discard block |
||
| 468 | 468 | */ |
| 469 | 469 | final protected static function sendDelete ($url, $getParams = array()) |
| 470 | 470 | { |
| 471 | - return self::sendRequest("DELETE", $url, NULL, $getParams); |
|
| 471 | + return self::sendRequest("DELETE", $url, null, $getParams); |
|
| 472 | 472 | } |
| 473 | 473 | |
| 474 | 474 | /** |
@@ -519,7 +519,7 @@ discard block |
||
| 519 | 519 | * |
| 520 | 520 | * @return string The base URL to call |
| 521 | 521 | */ |
| 522 | - final protected static function apiEndpoint ($apiPrefix = NULL) |
|
| 522 | + final protected static function apiEndpoint ($apiPrefix = null) |
|
| 523 | 523 | { |
| 524 | 524 | $apiSection = isset($apiPrefix) ? $apiPrefix : static::API_PREFIX; |
| 525 | 525 | |
@@ -398,7 +398,7 @@ discard block |
||
| 398 | 398 | * |
| 399 | 399 | * @return Pulse |
| 400 | 400 | */ |
| 401 | - public function createPulse ($name, $owner, $groupId = NULL, $updateText = NULL, $announceToAll = NULL) |
|
| 401 | + public function createPulse ($name, $owner, $groupId = null, $updateText = null, $announceToAll = null) |
|
| 402 | 402 | { |
| 403 | 403 | if ($owner instanceof PulseUser) |
| 404 | 404 | { |
@@ -445,7 +445,7 @@ discard block |
||
| 445 | 445 | $this->deletedObject = true; |
| 446 | 446 | } |
| 447 | 447 | |
| 448 | - public static function createBoard ($name, $userId, $description = NULL) |
|
| 448 | + public static function createBoard ($name, $userId, $description = null) |
|
| 449 | 449 | { |
| 450 | 450 | $url = sprintf("%s.json", self::apiEndpoint()); |
| 451 | 451 | $postParams = array( |