@@ -176,7 +176,7 @@ discard block |
||
| 176 | 176 | * Set the icon (either URL or emoji) we will post as. |
| 177 | 177 | * |
| 178 | 178 | * @param string $icon |
| 179 | - * @return this |
|
| 179 | + * @return null|Message |
|
| 180 | 180 | */ |
| 181 | 181 | public function setIcon($icon) |
| 182 | 182 | { |
@@ -223,7 +223,7 @@ discard block |
||
| 223 | 223 | * Slack's Markdown-like language. |
| 224 | 224 | * |
| 225 | 225 | * @param bool $value |
| 226 | - * @return void |
|
| 226 | + * @return Message |
|
| 227 | 227 | */ |
| 228 | 228 | public function setAllowMarkdown($value) |
| 229 | 229 | { |
@@ -235,7 +235,7 @@ discard block |
||
| 235 | 235 | /** |
| 236 | 236 | * Enable Markdown formatting for the message. |
| 237 | 237 | * |
| 238 | - * @return void |
|
| 238 | + * @return Message |
|
| 239 | 239 | */ |
| 240 | 240 | public function enableMarkdown() |
| 241 | 241 | { |
@@ -247,7 +247,7 @@ discard block |
||
| 247 | 247 | /** |
| 248 | 248 | * Disable Markdown formatting for the message. |
| 249 | 249 | * |
| 250 | - * @return void |
|
| 250 | + * @return Message |
|
| 251 | 251 | */ |
| 252 | 252 | public function disableMarkdown() |
| 253 | 253 | { |
@@ -272,7 +272,7 @@ discard block |
||
| 272 | 272 | * in Slack's Markdown-like language. |
| 273 | 273 | * |
| 274 | 274 | * @param array $fields |
| 275 | - * @return void |
|
| 275 | + * @return Message |
|
| 276 | 276 | */ |
| 277 | 277 | public function setMarkdownInAttachments(array $fields) |
| 278 | 278 | { |
@@ -335,7 +335,7 @@ |
||
| 335 | 335 | } elseif (is_array($attachment)) { |
| 336 | 336 | $attachmentObject = new Attachment($attachment); |
| 337 | 337 | |
| 338 | - if (! isset($attachment['mrkdwn_in'])) { |
|
| 338 | + if ( ! isset($attachment['mrkdwn_in'])) { |
|
| 339 | 339 | $attachmentObject->setMarkdownFields($this->getMarkdownInAttachments()); |
| 340 | 340 | } |
| 341 | 341 | |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | /** |
| 58 | 58 | * Return the service provider for the particular Laravel version. |
| 59 | 59 | * |
| 60 | - * @return mixed |
|
| 60 | + * @return SlackServiceProviderLaravel4 |
|
| 61 | 61 | */ |
| 62 | 62 | private function getProvider() |
| 63 | 63 | { |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | /** |
| 81 | 81 | * Get the services provided by the provider. |
| 82 | 82 | * |
| 83 | - * @return array |
|
| 83 | + * @return string[] |
|
| 84 | 84 | */ |
| 85 | 85 | public function provides() |
| 86 | 86 | { |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | */ |
| 25 | 25 | public function register() |
| 26 | 26 | { |
| 27 | - $this->app['maknz.slack'] = $this->app->share(function ($app) { |
|
| 27 | + $this->app['maknz.slack'] = $this->app->share(function($app) { |
|
| 28 | 28 | $allow_markdown = $app['config']->get('slack::allow_markdown'); |
| 29 | 29 | |
| 30 | 30 | $markdown_in_attachments = $app['config']->get('slack::markdown_in_attachments'); |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | */ |
| 25 | 25 | public function register() |
| 26 | 26 | { |
| 27 | - $this->app['maknz.slack'] = $this->app->share(function ($app) { |
|
| 27 | + $this->app['maknz.slack'] = $this->app->share(function($app) { |
|
| 28 | 28 | $allow_markdown = $app['config']->get('slack::allow_markdown'); |
| 29 | 29 | |
| 30 | 30 | $markdown_in_attachments = $app['config']->get('slack::markdown_in_attachments'); |
@@ -320,8 +320,8 @@ discard block |
||
| 320 | 320 | /** |
| 321 | 321 | * Set the color to use for the attachment. |
| 322 | 322 | * |
| 323 | - * @param string $colour |
|
| 324 | - * @return void |
|
| 323 | + * @param string $color |
|
| 324 | + * @return Attachment |
|
| 325 | 325 | */ |
| 326 | 326 | public function setColor($color) |
| 327 | 327 | { |
@@ -344,7 +344,7 @@ discard block |
||
| 344 | 344 | * Set the footer text to use for the attachment. |
| 345 | 345 | * |
| 346 | 346 | * @param string $footer |
| 347 | - * @return void |
|
| 347 | + * @return Attachment |
|
| 348 | 348 | */ |
| 349 | 349 | public function setFooter($footer) |
| 350 | 350 | { |
@@ -367,7 +367,7 @@ discard block |
||
| 367 | 367 | * Set the footer icon to use for the attachment. |
| 368 | 368 | * |
| 369 | 369 | * @param string $footerIcon |
| 370 | - * @return void |
|
| 370 | + * @return Attachment |
|
| 371 | 371 | */ |
| 372 | 372 | public function setFooterIcon($footerIcon) |
| 373 | 373 | { |
@@ -390,7 +390,7 @@ discard block |
||
| 390 | 390 | * Set the timestamp to use for the attachment. |
| 391 | 391 | * |
| 392 | 392 | * @param integer $ts |
| 393 | - * @return void |
|
| 393 | + * @return Attachment |
|
| 394 | 394 | */ |
| 395 | 395 | public function setTs($ts) |
| 396 | 396 | { |
@@ -413,7 +413,7 @@ discard block |
||
| 413 | 413 | * Set the title to use for the attachment. |
| 414 | 414 | * |
| 415 | 415 | * @param string $title |
| 416 | - * @return void |
|
| 416 | + * @return Attachment |
|
| 417 | 417 | */ |
| 418 | 418 | public function setTitle($title) |
| 419 | 419 | { |
@@ -436,7 +436,7 @@ discard block |
||
| 436 | 436 | * Set the title link to use for the attachment. |
| 437 | 437 | * |
| 438 | 438 | * @param string $title_link |
| 439 | - * @return void |
|
| 439 | + * @return Attachment |
|
| 440 | 440 | */ |
| 441 | 441 | public function setTitleLink($title_link) |
| 442 | 442 | { |
@@ -459,7 +459,7 @@ discard block |
||
| 459 | 459 | * Set the author name to use for the attachment. |
| 460 | 460 | * |
| 461 | 461 | * @param string $author_name |
| 462 | - * @return void |
|
| 462 | + * @return Attachment |
|
| 463 | 463 | */ |
| 464 | 464 | public function setAuthorName($author_name) |
| 465 | 465 | { |
@@ -482,7 +482,7 @@ discard block |
||
| 482 | 482 | * Set the auhtor link to use for the attachment. |
| 483 | 483 | * |
| 484 | 484 | * @param string $author_link |
| 485 | - * @return void |
|
| 485 | + * @return Attachment |
|
| 486 | 486 | */ |
| 487 | 487 | public function setAuthorLink($author_link) |
| 488 | 488 | { |
@@ -505,7 +505,7 @@ discard block |
||
| 505 | 505 | * Set the author icon to use for the attachment. |
| 506 | 506 | * |
| 507 | 507 | * @param string $author_icon |
| 508 | - * @return void |
|
| 508 | + * @return Attachment |
|
| 509 | 509 | */ |
| 510 | 510 | public function setAuthorIcon($author_icon) |
| 511 | 511 | { |
@@ -528,7 +528,7 @@ discard block |
||
| 528 | 528 | * Set the fields for the attachment. |
| 529 | 529 | * |
| 530 | 530 | * @param array $fields |
| 531 | - * @return void |
|
| 531 | + * @return Attachment |
|
| 532 | 532 | */ |
| 533 | 533 | public function setFields(array $fields) |
| 534 | 534 | { |