Skip to content

Commit d913372

Browse files
Merge pull request #12 from laravel-notification-channels/pint
Use opinionated Pint
2 parents 531c794 + 0460330 commit d913372

31 files changed

+115
-56
lines changed

pint.json

Lines changed: 0 additions & 14 deletions
This file was deleted.

src/Casts/AsExpoPushToken.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<?php declare(strict_types=1);
1+
<?php
2+
3+
declare(strict_types=1);
24

35
namespace NotificationChannels\Expo\Casts;
46

src/Exceptions/CouldNotSendNotification.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<?php declare(strict_types=1);
1+
<?php
2+
3+
declare(strict_types=1);
24

35
namespace NotificationChannels\Expo\Exceptions;
46

src/ExpoChannel.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<?php declare(strict_types=1);
1+
<?php
2+
3+
declare(strict_types=1);
24

35
namespace NotificationChannels\Expo;
46

@@ -21,7 +23,9 @@
2123
/**
2224
* Create a new channel instance.
2325
*/
24-
public function __construct(private ExpoGateway $gateway, private Dispatcher $events) {}
26+
public function __construct(private ExpoGateway $gateway, private Dispatcher $events)
27+
{
28+
}
2529

2630
/**
2731
* Send the notification to Expo's Push API.

src/ExpoError.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<?php declare(strict_types=1);
1+
<?php
2+
3+
declare(strict_types=1);
24

35
namespace NotificationChannels\Expo;
46

@@ -11,7 +13,9 @@ private function __construct(
1113
public ExpoErrorType $type,
1214
public ExpoPushToken $token,
1315
public string $message,
14-
) {}
16+
) {
17+
//
18+
}
1519

1620
/**
1721
* @see __construct()

src/ExpoErrorType.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<?php declare(strict_types=1);
1+
<?php
2+
3+
declare(strict_types=1);
24

35
namespace NotificationChannels\Expo;
46

src/ExpoMessage.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<?php declare(strict_types=1);
1+
<?php
2+
3+
declare(strict_types=1);
24

35
namespace NotificationChannels\Expo;
46

src/ExpoPushToken.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<?php declare(strict_types=1);
1+
<?php
2+
3+
declare(strict_types=1);
24

35
namespace NotificationChannels\Expo;
46

src/ExpoServiceProvider.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<?php declare(strict_types=1);
1+
<?php
2+
3+
declare(strict_types=1);
24

35
namespace NotificationChannels\Expo;
46

src/Gateway/ExpoEnvelope.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
<?php declare(strict_types=1);
1+
<?php
2+
3+
declare(strict_types=1);
24

35
namespace NotificationChannels\Expo\Gateway;
46

@@ -14,7 +16,7 @@
1416
/**
1517
* Create a new ExpoEnvelope instance.
1618
*
17-
* @param array<int, ExpoPushToken> $recipients
19+
* @param array<int, ExpoPushToken> $recipients
1820
*/
1921
private function __construct(public array $recipients, public ExpoMessage $message)
2022
{
@@ -45,7 +47,7 @@ public function toArray(): array
4547
/**
4648
* Convert the ExpoEnvelope instance to its JSON representation.
4749
*
48-
* @param int $options
50+
* @param int $options
4951
*/
5052
public function toJson($options = 0): string
5153
{

0 commit comments

Comments
 (0)