Skip to content

Commit e92482f

Browse files
authored
Merge pull request #85 from Alymosul/analysis-nNrABv
Apply fixes from StyleCI
2 parents f95b958 + 6304bd6 commit e92482f

File tree

7 files changed

+9
-26
lines changed

7 files changed

+9
-26
lines changed

src/ExpoChannel.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,9 @@ public function __construct(Expo $expo, Dispatcher $events)
3838
*
3939
* @param mixed $notifiable
4040
* @param \Illuminate\Notifications\Notification $notification
41+
* @return void
4142
*
4243
* @throws CouldNotSendNotification
43-
*
44-
* @return void
4544
*/
4645
public function send($notifiable, Notification $notification)
4746
{
@@ -67,7 +66,6 @@ public function send($notifiable, Notification $notification)
6766
* Get the interest name for the notifiable.
6867
*
6968
* @param $notifiable
70-
*
7169
* @return string
7270
*/
7371
public function interestName($notifiable)

src/ExpoMessage.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ class ExpoMessage
6767
* Create a message with given body.
6868
*
6969
* @param string $body
70-
*
7170
* @return static
7271
*/
7372
public static function create($body = '')
@@ -89,7 +88,6 @@ public function __construct(string $body = '')
8988
* Set the message title.
9089
*
9190
* @param string $value
92-
*
9391
* @return $this
9492
*/
9593
public function title(string $value)
@@ -103,7 +101,6 @@ public function title(string $value)
103101
* Set the message body.
104102
*
105103
* @param string $value
106-
*
107104
* @return $this
108105
*/
109106
public function body(string $value)
@@ -141,7 +138,6 @@ public function disableSound()
141138
* Set the message badge (iOS).
142139
*
143140
* @param int $value
144-
*
145141
* @return $this
146142
*/
147143
public function badge(int $value)
@@ -155,7 +151,6 @@ public function badge(int $value)
155151
* Set the time to live of the notification.
156152
*
157153
* @param int $ttl
158-
*
159154
* @return $this
160155
*/
161156
public function setTtl(int $ttl)
@@ -169,7 +164,6 @@ public function setTtl(int $ttl)
169164
* Set the channelId of the notification for Android devices.
170165
*
171166
* @param string $channelId
172-
*
173167
* @return $this
174168
*/
175169
public function setChannelId(string $channelId)
@@ -183,7 +177,6 @@ public function setChannelId(string $channelId)
183177
* Set the json Data attached to the message.
184178
*
185179
* @param array|string $data
186-
*
187180
* @return $this
188181
*
189182
* @throws CouldNotCreateMessage
@@ -209,7 +202,6 @@ public function setJsonData($data)
209202
* Set the priority of the notification, must be one of [default, normal, high].
210203
*
211204
* @param string $priority
212-
*
213205
* @return $this
214206
*/
215207
public function priority(string $priority)

src/ExpoPushNotificationsServiceProvider.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ protected function setupConfig()
8282
* Publishes the migration files needed in the package.
8383
*
8484
* @param ExpoRepository $repository
85-
*
8685
* @return void
8786
*/
8887
private function shouldPublishMigrations(ExpoRepository $repository)

src/Http/ExpoController.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ public function __construct(ExpoChannel $expoChannel)
3030
* Handles subscription endpoint for an expo token.
3131
*
3232
* @param Request $request
33-
*
3433
* @return \Illuminate\Http\JsonResponse
3534
*/
3635
public function subscribe(Request $request)
@@ -73,7 +72,6 @@ public function subscribe(Request $request)
7372
* Handles removing subscription endpoint for the authenticated interest.
7473
*
7574
* @param Request $request
76-
*
7775
* @return JsonResponse
7876
*/
7977
public function unsubscribe(Request $request)

src/Repositories/ExpoDatabaseDriver.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ class ExpoDatabaseDriver implements ExpoRepository
1212
*
1313
* @param $key
1414
* @param $value
15-
*
1615
* @return bool
1716
*/
1817
public function store($key, $value): bool
@@ -29,7 +28,6 @@ public function store($key, $value): bool
2928
* Retrieves an Expo token with a given identifier.
3029
*
3130
* @param string $key
32-
*
3331
* @return array
3432
*/
3533
public function retrieve(string $key)
@@ -42,7 +40,6 @@ public function retrieve(string $key)
4240
*
4341
* @param string $key
4442
* @param string $value
45-
*
4643
* @return bool
4744
*/
4845
public function forget(string $key, string $value = null): bool

tests/ExpoControllerTest.php

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ class ExpoControllerTest extends TestCase
2727
* Sets up the expo controller with the given expo channel.
2828
*
2929
* @param ExpoRepository $expoRepository
30-
*
3130
* @return array
3231
*/
3332
protected function setupExpo(ExpoRepository $expoRepository)
@@ -68,7 +67,8 @@ public function availableRepositories()
6867
];
6968
}
7069

71-
/** @test
70+
/**
71+
* @test
7272
*
7373
* @param $expoRepository
7474
*
@@ -102,7 +102,8 @@ public function aDeviceCanSubscribeToTheSystem($expoRepository)
102102
}
103103
}
104104

105-
/** @test
105+
/**
106+
* @test
106107
*
107108
* @param $expoRepository
108109
*
@@ -149,7 +150,8 @@ public function subscribeReturnsErrorResponseIfExceptionIsThrown()
149150
$this->assertEquals('failed', $response->status);
150151
}
151152

152-
/** @test
153+
/**
154+
* @test
153155
*
154156
*
155157
* @dataProvider availableRepositories
@@ -186,7 +188,8 @@ public function aDeviceCanUnsubscribeSingleTokenFromTheSystem($expoRepository)
186188
}
187189
}
188190

189-
/** @test
191+
/**
192+
* @test
190193
*
191194
* @param $expoRepository
192195
*
@@ -238,7 +241,6 @@ public function unsubscribeReturnsErrorResponseIfExceptionIsThrown()
238241
* Mocks a request for the ExpoController.
239242
*
240243
* @param $data
241-
*
242244
* @return \Mockery\MockInterface
243245
*/
244246
public function mockRequest($data)
@@ -251,7 +253,6 @@ public function mockRequest($data)
251253

252254
/**
253255
* @param bool $fails
254-
*
255256
* @return \Mockery\MockInterface
256257
*/
257258
public function mockValidator(bool $fails)

tests/TestCase.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ protected function setUp(): void
1616
* Get package providers.
1717
*
1818
* @param \Illuminate\Foundation\Application $app
19-
*
2019
* @return array
2120
*/
2221
protected function getPackageProviders($app)
@@ -30,7 +29,6 @@ protected function getPackageProviders($app)
3029
* Define environment setup.
3130
*
3231
* @param \Illuminate\Foundation\Application $app
33-
*
3432
* @return void
3533
*/
3634
public function getEnvironmentSetUp($app)

0 commit comments

Comments
 (0)