Skip to content

Commit 53f7caa

Browse files
authored
Merge pull request #8 from alfa6661/analysis-8jMylJ
Apply fixes from StyleCI
2 parents 2fd10e5 + f1a706c commit 53f7caa

File tree

4 files changed

+5
-14
lines changed

4 files changed

+5
-14
lines changed

src/Exceptions/CouldNotSendNotification.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ class CouldNotSendNotification extends \Exception
66
{
77
public static function serviceRespondedWithAnError($response)
88
{
9-
return new static("Descriptive error message.");
9+
return new static('Descriptive error message.');
1010
}
1111
}

src/FirebaseChannel.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,14 @@
22

33
namespace Alfa6661\Firebase;
44

5-
use Alfa6661\Firebase\Exceptions\CouldNotSendNotification;
6-
use Config;
75
use Exception;
86
use paragraph1\phpFCM\Client;
97
use paragraph1\phpFCM\Message;
108
use paragraph1\phpFCM\Recipient\Device;
11-
use RuntimeException;
12-
use UnexpectedValueException;
139
use Illuminate\Notifications\Notification;
1410

1511
class FirebaseChannel
1612
{
17-
1813
/**
1914
* @var paragraph1\phpFCM\Client
2015
*/
@@ -64,8 +59,6 @@ public function send($notifiable, Notification $notification)
6459
$response = $this->client->send($this->message);
6560
}
6661
} catch (Exception $e) {
67-
6862
}
6963
}
70-
7164
}

src/FirebaseMessage.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66

77
class FirebaseMessage
88
{
9-
109
public $notification;
1110

1211
public $data = [];
@@ -61,7 +60,7 @@ public function title($value)
6160
}
6261

6362
/**
64-
* Set notification sound
63+
* Set notification sound.
6564
*
6665
* @param string $value
6766
*
@@ -75,7 +74,7 @@ public function sound($value = 'default')
7574
}
7675

7776
/**
78-
* Set badge number. IOS only
77+
* Set badge number. IOS only.
7978
*
8079
* @param int $integer
8180
*
@@ -89,7 +88,7 @@ public function badge($integer)
8988
}
9089

9190
/**
92-
* Set additional data
91+
* Set additional data.
9392
*
9493
* @param array $values
9594
* @return $this
@@ -100,5 +99,4 @@ public function data(array $values = [])
10099

101100
return $this;
102101
}
103-
104102
}

src/FirebaseServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
namespace Alfa6661\Firebase;
44

55
use Exception;
6-
use Illuminate\Support\ServiceProvider;
76
use paragraph1\phpFCM\Client;
7+
use Illuminate\Support\ServiceProvider;
88

99
class FirebaseServiceProvider extends ServiceProvider
1010
{

0 commit comments

Comments
 (0)