Skip to content

Commit

Permalink
Style
Browse files Browse the repository at this point in the history
  • Loading branch information
codyphobe committed Oct 26, 2016
1 parent 28ff45d commit fe9f502
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -110,8 +110,8 @@ You may now tell Laravel to send notifications to Discord channels in the `via`

```php
// ...
use NotificationChannels\Discord\DiscordMessage;
use NotificationChannels\Discord\DiscordChannel;
use NotificationChannels\Discord\DiscordMessage;

class GameChallengeNotification extends Notification
{
Expand Down
16 changes: 8 additions & 8 deletions src/Discord.php
Expand Up @@ -26,8 +26,8 @@ class Discord
protected $token;

/**
* @param \GuzzleHttp\Client $http
* @param string $token
* @param \GuzzleHttp\Client $http
* @param string $token
*/
public function __construct(HttpClient $http, $token)
{
Expand All @@ -36,8 +36,8 @@ public function __construct(HttpClient $http, $token)
}

/**
* @param string $channel
* @param array $data
* @param string $channel
* @param array $data
* @return array
*/
public function send($channel, array $data)
Expand All @@ -46,7 +46,7 @@ public function send($channel, array $data)
}

/**
* @param mixed $user
* @param mixed $user
* @return string
*/
public function getPrivateChannel($user)
Expand All @@ -55,9 +55,9 @@ public function getPrivateChannel($user)
}

/**
* @param string $verb
* @param string $endpoint
* @param array $data
* @param string $verb
* @param string $endpoint
* @param array $data
* @return array
*
* @throws \NotificationChannels\Discord\Exceptions\CouldNotSendNotification
Expand Down
6 changes: 3 additions & 3 deletions src/DiscordChannel.php
Expand Up @@ -12,7 +12,7 @@ class DiscordChannel
protected $discord;

/**
* @param \NotificationChannels\Discord\Discord $discord
* @param \NotificationChannels\Discord\Discord $discord
*/
public function __construct(Discord $discord)
{
Expand All @@ -22,8 +22,8 @@ public function __construct(Discord $discord)
/**
* Send the given notification.
*
* @param mixed $notifiable
* @param \Illuminate\Notifications\Notification $notification
* @param mixed $notifiable
* @param \Illuminate\Notifications\Notification $notification
* @return void
*
* @throws \NotificationChannels\Discord\Exceptions\CouldNotSendNotification
Expand Down
6 changes: 3 additions & 3 deletions src/DiscordMessage.php
Expand Up @@ -12,7 +12,7 @@ class DiscordMessage
public $body;

/**
* @param string $body
* @param string $body
* @return static
*/
public static function create($body = '')
Expand All @@ -21,7 +21,7 @@ public static function create($body = '')
}

/**
* @param string $body
* @param string $body
*/
public function __construct($body = '')
{
Expand All @@ -31,7 +31,7 @@ public function __construct($body = '')
/**
* Set the text content of the message.
*
* @param string $body
* @param string $body
* @return $this
*/
public function body($body)
Expand Down
6 changes: 3 additions & 3 deletions src/Exceptions/CouldNotSendNotification.php
Expand Up @@ -9,7 +9,7 @@
class CouldNotSendNotification extends Exception
{
/**
* @param \Psr\Http\Message\ResponseInterface $response
* @param \Psr\Http\Message\ResponseInterface $response
* @return static
*/
public static function serviceRespondedWithAnHttpError(ResponseInterface $response)
Expand All @@ -24,7 +24,7 @@ public static function serviceRespondedWithAnHttpError(ResponseInterface $respon
}

/**
* @param array $response
* @param array $response
* @return static
*/
public static function serviceRespondedWithAnApiError(array $response)
Expand All @@ -33,7 +33,7 @@ public static function serviceRespondedWithAnApiError(array $response)
}

/**
* @param \Exception $exception
* @param \Exception $exception
* @return static
*/
public static function serviceCommunicationError(Exception $exception)
Expand Down

0 comments on commit fe9f502

Please sign in to comment.