Skip to content

Commit b3bc34c

Browse files
freekmurzeStyleCIBot
authored andcommitted
Applied fixes from StyleCI
1 parent 187136b commit b3bc34c

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed

src/Events/SendingMessage.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
class SendingMessage
88
{
9-
109
protected $notifiable;
1110

1211
/** @var \Illuminate\Notifications\Notification */

src/HasPushSubscriptions.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function updatePushSubscription($endpoint, $key = null, $token = null)
2727
{
2828
$subscription = PushSubscription::findByEndpoint($endpoint);
2929

30-
if ($subscription && !$this->subscriptionBelongsToDifferentUser()) {
30+
if ($subscription && ! $this->subscriptionBelongsToDifferentUser()) {
3131
$subscription->public_key = $key;
3232
$subscription->auth_token = $token;
3333
$subscription->save();
@@ -53,7 +53,7 @@ public function updatePushSubscription($endpoint, $key = null, $token = null)
5353
*/
5454
public function subscriptionBelongsToDifferentUser($subscription)
5555
{
56-
return (int)$subscription->user_id !== (int)$this->getAuthIdentifier();
56+
return (int) $subscription->user_id !== (int) $this->getAuthIdentifier();
5757
}
5858

5959
/**

src/WebPushChannel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ protected function deleteInvalidSubscriptions($response, $subscriptions)
6868
{
6969
if (is_array($response)) {
7070
foreach ($response as $index => $value) {
71-
if (!$value['success'] && isset($subscriptions[$index])) {
71+
if (! $value['success'] && isset($subscriptions[$index])) {
7272
$subscriptions[$index]->delete();
7373
}
7474
}

src/WebPushServiceProvider.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public function boot()
1818
->needs(WebPush::class)
1919
->give(function () {
2020
return new WebPush([
21-
'GCM' => config('services.gcm.key')
21+
'GCM' => config('services.gcm.key'),
2222
]);
2323
});
2424

@@ -38,8 +38,7 @@ protected function definePublishing()
3838
$timestamp = date('Y_m_d_His', time());
3939

4040
$this->publishes([
41-
__DIR__.'/../migrations/create_push_subscriptions_table.php.stub' =>
42-
$this->app->databasePath().'/migrations/'.$timestamp.'_create_push_subscriptions_table.php',
41+
__DIR__.'/../migrations/create_push_subscriptions_table.php.stub' => $this->app->databasePath().'/migrations/'.$timestamp.'_create_push_subscriptions_table.php',
4342
], 'migrations');
4443
}
4544
}

0 commit comments

Comments
 (0)