Skip to content

Commit 223623e

Browse files
authored
Apply fixes from StyleCI (#36)
Apply fixes from StyleCI
2 parents af7c5e6 + 8707fb9 commit 223623e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/PusherMessage.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ public function android()
131131
* @param \NotificationChannels\PusherPushNotifications\PusherMessage $message
132132
* @return $this
133133
*/
134-
public function withAndroid(PusherMessage $message)
134+
public function withAndroid(self $message)
135135
{
136136
$this->withExtra($message->android());
137137

@@ -144,7 +144,7 @@ public function withAndroid(PusherMessage $message)
144144
* @param \NotificationChannels\PusherPushNotifications\PusherMessage $message
145145
* @return $this
146146
*/
147-
public function withiOS(PusherMessage $message)
147+
public function withiOS(self $message)
148148
{
149149
$this->withExtra($message->iOS());
150150

@@ -157,7 +157,7 @@ public function withiOS(PusherMessage $message)
157157
* @param \NotificationChannels\PusherPushNotifications\PusherMessage $message
158158
* @return void
159159
*/
160-
private function withExtra(PusherMessage $message)
160+
private function withExtra(self $message)
161161
{
162162
if ($message->getPlatform() == $this->platform) {
163163
throw CouldNotCreateMessage::platformConflict($this->platform);

tests/MessageTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
namespace NotificationChannels\PusherPushNotifications\Test;
44

55
use Illuminate\Support\Arr;
6-
use NotificationChannels\PusherPushNotifications\Exceptions\CouldNotCreateMessage;
7-
use NotificationChannels\PusherPushNotifications\PusherMessage;
86
use PHPUnit_Framework_TestCase;
7+
use NotificationChannels\PusherPushNotifications\PusherMessage;
8+
use NotificationChannels\PusherPushNotifications\Exceptions\CouldNotCreateMessage;
99

1010
class MessageTest extends PHPUnit_Framework_TestCase
1111
{

0 commit comments

Comments
 (0)