Completed
Pull Request — master (#6)
by Mark
03:07
created
src/IonicPushChannel.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
      */
34 34
     public function send($notifiable, Notification $notification)
35 35
     {
36
-        if (! $routing = collect($notifiable->routeNotificationFor('IonicPush'))) {
36
+        if (!$routing = collect($notifiable->routeNotificationFor('IonicPush'))) {
37 37
             return;
38 38
         }
39 39
 
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 
46 46
         $ionicPushData = array_merge(
47 47
             $notification->toIonicPush($notifiable)->toArray(),
48
-            ['tokens' => $routing->first()]
48
+            [ 'tokens' => $routing->first() ]
49 49
         );
50 50
 
51 51
         $response = $this->client->post(self::API_ENDPOINT, [
Please login to merge, or discard this patch.
src/IonicPushMessage.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -21,13 +21,13 @@  discard block
 block discarded – undo
21 21
 
22 22
 
23 23
     /** @var array */
24
-    protected $payload = [];
24
+    protected $payload = [ ];
25 25
 
26 26
     /** @var array */
27
-    protected $iosData = [];
27
+    protected $iosData = [ ];
28 28
 
29 29
     /** @var array */
30
-    protected $androidData = [];
30
+    protected $androidData = [ ];
31 31
 
32 32
 
33 33
 
@@ -117,11 +117,11 @@  discard block
 block discarded – undo
117 117
         if (substr($method, 0, 3) == 'ios') {
118 118
             $key = snake_case(substr($method, 3));
119 119
 
120
-            $this->iosData[$key] = $args[0];
120
+            $this->iosData[ $key ] = $args[ 0 ];
121 121
         } elseif (substr($method, 0, 7) == 'android') {
122 122
             $key = snake_case(substr($method, 7));
123 123
 
124
-            $this->androidData[$key] = $args[0];
124
+            $this->androidData[ $key ] = $args[ 0 ];
125 125
         }
126 126
         return $this;
127 127
     }
Please login to merge, or discard this patch.