Completed
Pull Request — master (#6)
by Mark
10:00 queued 02:55
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 2 patches
Doc Comments   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,7 +32,6 @@  discard block
 block discarded – undo
32 32
 
33 33
 
34 34
     /**
35
-     * @param array $data
36 35
      *
37 36
      * @return static
38 37
      */
@@ -67,7 +66,6 @@  discard block
 block discarded – undo
67 66
     /**
68 67
      * Set the method of targeting users - tokens (default), user_ids, or emails.
69 68
      *
70
-     * @param  string  $profile
71 69
      *
72 70
      * @return $this
73 71
      */
@@ -110,7 +108,7 @@  discard block
 block discarded – undo
110 108
      * @param string $method
111 109
      * @param array  $args
112 110
      *
113
-     * @return object
111
+     * @return IonicPushMessage
114 112
      */
115 113
     public function __call($method, $args)
116 114
     {
Please login to merge, or discard this 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.