Skip to content

Commit

Permalink
styleci fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nicko170 committed Jan 18, 2023
1 parent 0c5c79d commit 2a3a1cb
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 29 deletions.
12 changes: 6 additions & 6 deletions src/Exceptions/CouldNotSendNotification.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public static function serviceRespondedWithAnError($response)
/**
* Thrown on a generic error.
*
* @param mixed $notification
* @param mixed $notification
* @return static
*/
public static function genericMessage($message)
Expand All @@ -33,7 +33,7 @@ public static function genericMessage($message)
* Thrown if a notification instance does not implement a toExpo() method, but is
* attempting to be delivered via the Expo notification channel.
*
* @param mixed $notification
* @param mixed $notification
* @return static
*/
public static function undefinedMethod($notification)
Expand All @@ -48,7 +48,7 @@ public static function undefinedMethod($notification)
* Thrown if a notification instance's `toExpo()` method,
* does not return an instance of `\NotificationChannels\Expo\ExpoMessage`.
*
* @param mixed $notification
* @param mixed $notification
* @return static
*/
public static function couldNotCreateMessage($notification)
Expand All @@ -63,7 +63,7 @@ public static function couldNotCreateMessage($notification)
* Thrown if a notifiable instance's `routeNotificationFor` method does not return a
* valid Expo push token.
*
* @param mixed $notifiable
* @param mixed $notifiable
* @return static
*/
public static function noValidDestination($notifiable)
Expand All @@ -78,7 +78,7 @@ public static function noValidDestination($notifiable)
* Thrown if a 400-level Http error was encountered whilst attempting to deliver the
* notification.
*
* @param ClientException $exception
* @param ClientException $exception
* @return static
*/
public static function clientError(ClientException $exception)
Expand All @@ -99,7 +99,7 @@ public static function clientError(ClientException $exception)
* Thrown if an unexpected exception was encountered whilst attempting to deliver the
* notification.
*
* @param Exception $exception
* @param Exception $exception
* @return static
*/
public static function unexpectedException(Exception $exception)
Expand Down
7 changes: 4 additions & 3 deletions src/ExpoChannel.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,15 @@ class ExpoChannel
{
/**
* The Http Client.
*
* @var Client
*/
protected $client;

/**
* Initialise a new Expo Push Channel instance.
*
* @param Client $client
* @param Client $client
* @return void
*/
public function __construct(Client $client)
Expand All @@ -31,8 +32,8 @@ public function __construct(Client $client)
/**
* Send the given notification.
*
* @param mixed $notifiable
* @param Notification $notification
* @param mixed $notifiable
* @param Notification $notification
*
* @throws CouldNotSendNotification|GuzzleException
*/
Expand Down
30 changes: 11 additions & 19 deletions src/ExpoMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,8 @@ class ExpoMessage
/**
* Create a message with given body.
*
* @param string $title
* @param string $body
*
* @param string $title
* @param string $body
* @return static
*/
public static function create($title = '', $body = ''): ExpoMessage
Expand All @@ -79,8 +78,8 @@ public static function create($title = '', $body = ''): ExpoMessage
/**
* ExpoMessage constructor.
*
* @param string $title
* @param string $body
* @param string $title
* @param string $body
*/
public function __construct(string $title = '', string $body = '')
{
Expand All @@ -91,8 +90,7 @@ public function __construct(string $title = '', string $body = '')
/**
* Set the message title.
*
* @param string $value
*
* @param string $value
* @return $this
*/
public function title(string $value): ExpoMessage
Expand All @@ -105,8 +103,7 @@ public function title(string $value): ExpoMessage
/**
* Set the message body.
*
* @param string $value
*
* @param string $value
* @return $this
*/
public function body(string $value): ExpoMessage
Expand Down Expand Up @@ -143,8 +140,7 @@ public function disableSound(): ExpoMessage
/**
* Set the message badge (iOS).
*
* @param int $value
*
* @param int $value
* @return $this
*/
public function badge(int $value): ExpoMessage
Expand All @@ -157,8 +153,7 @@ public function badge(int $value): ExpoMessage
/**
* Set the time to live of the notification.
*
* @param int $ttl
*
* @param int $ttl
* @return $this
*/
public function setTtl(int $ttl): ExpoMessage
Expand All @@ -171,8 +166,7 @@ public function setTtl(int $ttl): ExpoMessage
/**
* Set the channelId of the notification for Android devices.
*
* @param string $channelId
*
* @param string $channelId
* @return $this
*/
public function setChannelId(string $channelId): ExpoMessage
Expand All @@ -185,8 +179,7 @@ public function setChannelId(string $channelId): ExpoMessage
/**
* Set the json Data attached to the message.
*
* @param array|string $data
*
* @param array|string $data
* @return $this
*
* @throws CouldNotSendNotification
Expand All @@ -211,8 +204,7 @@ public function setJsonData($data): ExpoMessage
/**
* Set the priority of the notification, must be one of [default, normal, high].
*
* @param string $priority
*
* @param string $priority
* @return $this
*/
public function priority(string $priority): ExpoMessage
Expand Down
1 change: 0 additions & 1 deletion tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ class TestCase extends Orchestra

/**
* @param $app
*
* @return array
*/
protected function getPackageProviders($app)
Expand Down

0 comments on commit 2a3a1cb

Please sign in to comment.