Skip to content

Commit 2a3a1cb

Browse files
committed
styleci fixes
1 parent 0c5c79d commit 2a3a1cb

File tree

4 files changed

+21
-29
lines changed

4 files changed

+21
-29
lines changed

src/Exceptions/CouldNotSendNotification.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public static function serviceRespondedWithAnError($response)
2121
/**
2222
* Thrown on a generic error.
2323
*
24-
* @param mixed $notification
24+
* @param mixed $notification
2525
* @return static
2626
*/
2727
public static function genericMessage($message)
@@ -33,7 +33,7 @@ public static function genericMessage($message)
3333
* Thrown if a notification instance does not implement a toExpo() method, but is
3434
* attempting to be delivered via the Expo notification channel.
3535
*
36-
* @param mixed $notification
36+
* @param mixed $notification
3737
* @return static
3838
*/
3939
public static function undefinedMethod($notification)
@@ -48,7 +48,7 @@ public static function undefinedMethod($notification)
4848
* Thrown if a notification instance's `toExpo()` method,
4949
* does not return an instance of `\NotificationChannels\Expo\ExpoMessage`.
5050
*
51-
* @param mixed $notification
51+
* @param mixed $notification
5252
* @return static
5353
*/
5454
public static function couldNotCreateMessage($notification)
@@ -63,7 +63,7 @@ public static function couldNotCreateMessage($notification)
6363
* Thrown if a notifiable instance's `routeNotificationFor` method does not return a
6464
* valid Expo push token.
6565
*
66-
* @param mixed $notifiable
66+
* @param mixed $notifiable
6767
* @return static
6868
*/
6969
public static function noValidDestination($notifiable)
@@ -78,7 +78,7 @@ public static function noValidDestination($notifiable)
7878
* Thrown if a 400-level Http error was encountered whilst attempting to deliver the
7979
* notification.
8080
*
81-
* @param ClientException $exception
81+
* @param ClientException $exception
8282
* @return static
8383
*/
8484
public static function clientError(ClientException $exception)
@@ -99,7 +99,7 @@ public static function clientError(ClientException $exception)
9999
* Thrown if an unexpected exception was encountered whilst attempting to deliver the
100100
* notification.
101101
*
102-
* @param Exception $exception
102+
* @param Exception $exception
103103
* @return static
104104
*/
105105
public static function unexpectedException(Exception $exception)

src/ExpoChannel.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,15 @@ class ExpoChannel
1313
{
1414
/**
1515
* The Http Client.
16+
*
1617
* @var Client
1718
*/
1819
protected $client;
1920

2021
/**
2122
* Initialise a new Expo Push Channel instance.
2223
*
23-
* @param Client $client
24+
* @param Client $client
2425
* @return void
2526
*/
2627
public function __construct(Client $client)
@@ -31,8 +32,8 @@ public function __construct(Client $client)
3132
/**
3233
* Send the given notification.
3334
*
34-
* @param mixed $notifiable
35-
* @param Notification $notification
35+
* @param mixed $notifiable
36+
* @param Notification $notification
3637
*
3738
* @throws CouldNotSendNotification|GuzzleException
3839
*/

src/ExpoMessage.php

Lines changed: 11 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,8 @@ class ExpoMessage
6666
/**
6767
* Create a message with given body.
6868
*
69-
* @param string $title
70-
* @param string $body
71-
*
69+
* @param string $title
70+
* @param string $body
7271
* @return static
7372
*/
7473
public static function create($title = '', $body = ''): ExpoMessage
@@ -79,8 +78,8 @@ public static function create($title = '', $body = ''): ExpoMessage
7978
/**
8079
* ExpoMessage constructor.
8180
*
82-
* @param string $title
83-
* @param string $body
81+
* @param string $title
82+
* @param string $body
8483
*/
8584
public function __construct(string $title = '', string $body = '')
8685
{
@@ -91,8 +90,7 @@ public function __construct(string $title = '', string $body = '')
9190
/**
9291
* Set the message title.
9392
*
94-
* @param string $value
95-
*
93+
* @param string $value
9694
* @return $this
9795
*/
9896
public function title(string $value): ExpoMessage
@@ -105,8 +103,7 @@ public function title(string $value): ExpoMessage
105103
/**
106104
* Set the message body.
107105
*
108-
* @param string $value
109-
*
106+
* @param string $value
110107
* @return $this
111108
*/
112109
public function body(string $value): ExpoMessage
@@ -143,8 +140,7 @@ public function disableSound(): ExpoMessage
143140
/**
144141
* Set the message badge (iOS).
145142
*
146-
* @param int $value
147-
*
143+
* @param int $value
148144
* @return $this
149145
*/
150146
public function badge(int $value): ExpoMessage
@@ -157,8 +153,7 @@ public function badge(int $value): ExpoMessage
157153
/**
158154
* Set the time to live of the notification.
159155
*
160-
* @param int $ttl
161-
*
156+
* @param int $ttl
162157
* @return $this
163158
*/
164159
public function setTtl(int $ttl): ExpoMessage
@@ -171,8 +166,7 @@ public function setTtl(int $ttl): ExpoMessage
171166
/**
172167
* Set the channelId of the notification for Android devices.
173168
*
174-
* @param string $channelId
175-
*
169+
* @param string $channelId
176170
* @return $this
177171
*/
178172
public function setChannelId(string $channelId): ExpoMessage
@@ -185,8 +179,7 @@ public function setChannelId(string $channelId): ExpoMessage
185179
/**
186180
* Set the json Data attached to the message.
187181
*
188-
* @param array|string $data
189-
*
182+
* @param array|string $data
190183
* @return $this
191184
*
192185
* @throws CouldNotSendNotification
@@ -211,8 +204,7 @@ public function setJsonData($data): ExpoMessage
211204
/**
212205
* Set the priority of the notification, must be one of [default, normal, high].
213206
*
214-
* @param string $priority
215-
*
207+
* @param string $priority
216208
* @return $this
217209
*/
218210
public function priority(string $priority): ExpoMessage

tests/TestCase.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ class TestCase extends Orchestra
1212

1313
/**
1414
* @param $app
15-
*
1615
* @return array
1716
*/
1817
protected function getPackageProviders($app)

0 commit comments

Comments
 (0)