| @@ -287,8 +287,8 @@ discard block | ||
| 287 | 287 | /** | 
| 288 | 288 | * Set the color to use for the attachment. | 
| 289 | 289 | * | 
| 290 | - * @param string $colour | |
| 291 | - * @return void | |
| 290 | + * @param string $color | |
| 291 | + * @return Attachment | |
| 292 | 292 | */ | 
| 293 | 293 | public function setColor($color) | 
| 294 | 294 |      { | 
| @@ -311,7 +311,7 @@ discard block | ||
| 311 | 311 | * Set the title to use for the attachment. | 
| 312 | 312 | * | 
| 313 | 313 | * @param string $title | 
| 314 | - * @return void | |
| 314 | + * @return Attachment | |
| 315 | 315 | */ | 
| 316 | 316 | public function setTitle($title) | 
| 317 | 317 |      { | 
| @@ -334,7 +334,7 @@ discard block | ||
| 334 | 334 | * Set the title link to use for the attachment. | 
| 335 | 335 | * | 
| 336 | 336 | * @param string $title_link | 
| 337 | - * @return void | |
| 337 | + * @return Attachment | |
| 338 | 338 | */ | 
| 339 | 339 | public function setTitleLink($title_link) | 
| 340 | 340 |      { | 
| @@ -357,7 +357,7 @@ discard block | ||
| 357 | 357 | * Set the author name to use for the attachment. | 
| 358 | 358 | * | 
| 359 | 359 | * @param string $author_name | 
| 360 | - * @return void | |
| 360 | + * @return Attachment | |
| 361 | 361 | */ | 
| 362 | 362 | public function setAuthorName($author_name) | 
| 363 | 363 |      { | 
| @@ -380,7 +380,7 @@ discard block | ||
| 380 | 380 | * Set the auhtor link to use for the attachment. | 
| 381 | 381 | * | 
| 382 | 382 | * @param string $author_link | 
| 383 | - * @return void | |
| 383 | + * @return Attachment | |
| 384 | 384 | */ | 
| 385 | 385 | public function setAuthorLink($author_link) | 
| 386 | 386 |      { | 
| @@ -403,7 +403,7 @@ discard block | ||
| 403 | 403 | * Set the author icon to use for the attachment. | 
| 404 | 404 | * | 
| 405 | 405 | * @param string $author_icon | 
| 406 | - * @return void | |
| 406 | + * @return Attachment | |
| 407 | 407 | */ | 
| 408 | 408 | public function setAuthorIcon($author_icon) | 
| 409 | 409 |      { | 
| @@ -426,7 +426,7 @@ discard block | ||
| 426 | 426 | * Set the fields for the attachment. | 
| 427 | 427 | * | 
| 428 | 428 | * @param array $fields | 
| 429 | - * @return void | |
| 429 | + * @return Attachment | |
| 430 | 430 | */ | 
| 431 | 431 | public function setFields(array $fields) | 
| 432 | 432 |      { | 
| @@ -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 |      { | 
| @@ -26,7 +26,7 @@ | ||
| 26 | 26 |      { | 
| 27 | 27 | $this->mergeConfigFrom(__DIR__.'/config/config.php', 'slack'); | 
| 28 | 28 | |
| 29 | -        $this->app['maknz.slack'] = $this->app->share(function ($app) { | |
| 29 | +        $this->app['maknz.slack'] = $this->app->share(function($app) { | |
| 30 | 30 | return new Client( | 
| 31 | 31 |                  $app['config']->get('slack.endpoint'), | 
| 32 | 32 | [ | 
| @@ -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'); |