@@ -175,7 +175,7 @@ |
||
175 | 175 | * |
176 | 176 | * @param null|string $title The new title of the note |
177 | 177 | * @param null|string $content The new content of the note |
178 | - * @param null|int|PulseUser $userId The new author of the note |
|
178 | + * @param string $userId The new author of the note |
|
179 | 179 | * @param null|bool $createUpdate Whether to create an update or not |
180 | 180 | * |
181 | 181 | * @since 0.1.0 |
@@ -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 | /** |
@@ -405,7 +405,7 @@ discard block |
||
405 | 405 | */ |
406 | 406 | final protected static function sendDelete ($url, $getParams = array()) |
407 | 407 | { |
408 | - return self::sendRequest("DELETE", $url, NULL, $getParams); |
|
408 | + return self::sendRequest("DELETE", $url, null, $getParams); |
|
409 | 409 | } |
410 | 410 | |
411 | 411 | /** |
@@ -456,7 +456,7 @@ discard block |
||
456 | 456 | * |
457 | 457 | * @return string The base URL to call |
458 | 458 | */ |
459 | - final protected static function apiEndpoint ($apiPrefix = NULL) |
|
459 | + final protected static function apiEndpoint ($apiPrefix = null) |
|
460 | 460 | { |
461 | 461 | $apiSection = isset($apiPrefix) ? $apiPrefix : static::API_PREFIX; |
462 | 462 |
@@ -271,7 +271,7 @@ discard block |
||
271 | 271 | $this->deletedObject = true; |
272 | 272 | } |
273 | 273 | |
274 | - public function duplicatePulse ($groupId = NULL, $ownerId = NULL) |
|
274 | + public function duplicatePulse ($groupId = null, $ownerId = null) |
|
275 | 275 | { |
276 | 276 | $url = sprintf("%s/%s/pulses/%s/duplicate.json", self::apiEndpoint("boards"), $this->getBoardId(), $this->getId()); |
277 | 277 | $postParams = array(); |
@@ -512,7 +512,7 @@ discard block |
||
512 | 512 | * |
513 | 513 | * @throws HttpException Subscribing a user failed; access the exception for more information. |
514 | 514 | */ |
515 | - public function addSubscriber ($userId, $asAdmin = NULL) |
|
515 | + public function addSubscriber ($userId, $asAdmin = null) |
|
516 | 516 | { |
517 | 517 | if ($userId instanceof PulseUser) |
518 | 518 | { |
@@ -598,7 +598,7 @@ discard block |
||
598 | 598 | * @since 0.1.0 |
599 | 599 | * @return PulseNote |
600 | 600 | */ |
601 | - public function addNote ($title, $content, $ownersOnly = false, $userId = NULL, $createUpdate = false) |
|
601 | + public function addNote ($title, $content, $ownersOnly = false, $userId = null, $createUpdate = false) |
|
602 | 602 | { |
603 | 603 | $url = sprintf($this->urlSyntax, self::apiEndpoint(), $this->id, "notes"); |
604 | 604 | $postParams = array( |
@@ -664,7 +664,7 @@ discard block |
||
664 | 664 | * |
665 | 665 | * @since 0.1.0 |
666 | 666 | */ |
667 | - public function createUpdate ($user, $text, $announceToAll = NULL) |
|
667 | + public function createUpdate ($user, $text, $announceToAll = null) |
|
668 | 668 | { |
669 | 669 | PulseUpdate::createUpdate($user, $this->getId(), $text, $announceToAll); |
670 | 670 | } |
@@ -206,7 +206,7 @@ discard block |
||
206 | 206 | * |
207 | 207 | * @since 0.1.0 |
208 | 208 | */ |
209 | - public function addSubscriber ($userId, $asAdmin = NULL) |
|
209 | + public function addSubscriber ($userId, $asAdmin = null) |
|
210 | 210 | { |
211 | 211 | if ($userId instanceof PulseUser) |
212 | 212 | { |
@@ -359,7 +359,7 @@ discard block |
||
359 | 359 | * |
360 | 360 | * @return PulseGroup[] |
361 | 361 | */ |
362 | - public function getGroups ($showArchived = NULL) |
|
362 | + public function getGroups ($showArchived = null) |
|
363 | 363 | { |
364 | 364 | $url = sprintf("%s/%d/groups.json", self::apiEndpoint(), $this->getId()); |
365 | 365 | $params = array(); |
@@ -431,7 +431,7 @@ discard block |
||
431 | 431 | return $pulses; |
432 | 432 | } |
433 | 433 | |
434 | - public function createPulse ($name, $owner, $groupId = NULL) |
|
434 | + public function createPulse ($name, $owner, $groupId = null) |
|
435 | 435 | { |
436 | 436 | $url = sprintf("%s/%d/pulses.json", self::apiEndpoint(), $this->getId()); |
437 | 437 | $postParams = array( |
@@ -471,7 +471,7 @@ discard block |
||
471 | 471 | $this->deletedObject = true; |
472 | 472 | } |
473 | 473 | |
474 | - public static function createBoard ($name, $userId, $description = NULL) |
|
474 | + public static function createBoard ($name, $userId, $description = null) |
|
475 | 475 | { |
476 | 476 | $url = sprintf("%s.json", self::apiEndpoint()); |
477 | 477 | $postParams = array( |