@@ -69,6 +69,9 @@ |
||
| 69 | 69 | $this->deletedObject = true; |
| 70 | 70 | } |
| 71 | 71 | |
| 72 | + /** |
|
| 73 | + * @param string $field |
|
| 74 | + */ |
|
| 72 | 75 | private function editField ($field, $value) |
| 73 | 76 | { |
| 74 | 77 | $this->checkInvalid(); |
@@ -233,7 +233,7 @@ |
||
| 233 | 233 | * |
| 234 | 234 | * @throws \allejo\DaPulse\Exceptions\CurlException If cURL is misconfigured or encounters an error |
| 235 | 235 | * |
| 236 | - * @return mixed |
|
| 236 | + * @return string |
|
| 237 | 237 | */ |
| 238 | 238 | private function executeCurl () |
| 239 | 239 | { |
@@ -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 |
@@ -298,7 +298,7 @@ discard block |
||
| 298 | 298 | * |
| 299 | 299 | * @since 0.3.0 Previously was available as 'getHasAssets()' |
| 300 | 300 | * |
| 301 | - * @return bool |
|
| 301 | + * @return string |
|
| 302 | 302 | */ |
| 303 | 303 | public function hasAssets () |
| 304 | 304 | { |
@@ -409,7 +409,7 @@ discard block |
||
| 409 | 409 | * @api |
| 410 | 410 | * |
| 411 | 411 | * @param int|PulseUser $user The author of this post |
| 412 | - * @param int|Pulse $pulse The Pulse to whom this update will belong to |
|
| 412 | + * @param integer $pulse The Pulse to whom this update will belong to |
|
| 413 | 413 | * @param string $text The content of the update |
| 414 | 414 | * @param null|bool $announceToAll Whether or not to announce this update to everyone's wall |
| 415 | 415 | * |
@@ -233,6 +233,10 @@ discard block |
||
| 233 | 233 | // Pulse functions |
| 234 | 234 | // ================================================================================================================ |
| 235 | 235 | |
| 236 | + /** |
|
| 237 | + * @param integer $pulseID |
|
| 238 | + * @param string $newName |
|
| 239 | + */ |
|
| 236 | 240 | private static function editPulseNameCall ($pulseID, $newName) |
| 237 | 241 | { |
| 238 | 242 | $editUrl = sprintf("%s/%d.json", self::apiEndpoint(), $pulseID); |
@@ -280,6 +284,9 @@ discard block |
||
| 280 | 284 | $this->assignResults(); |
| 281 | 285 | } |
| 282 | 286 | |
| 287 | + /** |
|
| 288 | + * @param integer $pulseID |
|
| 289 | + */ |
|
| 283 | 290 | private static function archivePulseCall ($pulseID) |
| 284 | 291 | { |
| 285 | 292 | $archiveURL = sprintf("%s/%d.json", self::apiEndpoint(), $pulseID); |
@@ -319,6 +326,9 @@ discard block |
||
| 319 | 326 | $this->assignResults(); |
| 320 | 327 | } |
| 321 | 328 | |
| 329 | + /** |
|
| 330 | + * @param integer $pulseID |
|
| 331 | + */ |
|
| 322 | 332 | private static function deletePulseCall ($pulseID) |
| 323 | 333 | { |
| 324 | 334 | $deleteURL = sprintf("%s/%d.json", self::apiEndpoint(), $pulseID); |