Completed
Push — master ( f8f249...d2a511 )
by Julián
06:27 queued 04:07
created
src/Notification/AbstractNotification.php 3 patches
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
     /**
96 96
      * Set service.
97 97
      *
98
-     * @param \Jgut\Pusha\Service\AbstractService $service
98
+     * @param AbstractService $service
99 99
      */
100 100
     abstract public function setService(AbstractService $service);
101 101
 
@@ -168,7 +168,6 @@  discard block
 block discarded – undo
168 168
     /**
169 169
      * Set notification pending (not pushed).
170 170
      *
171
-     * @param array $result
172 171
      */
173 172
     final public function setPending()
174 173
     {
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,10 +9,10 @@
 block discarded – undo
9 9
 
10 10
 namespace Jgut\Tify\Notification;
11 11
 
12
-use Jgut\Tify\Service\AbstractService;
13 12
 use Jgut\Tify\Device\AbstractDevice;
14 13
 use Jgut\Tify\Message\AbstractMessage;
15 14
 use Jgut\Tify\OptionsTrait;
15
+use Jgut\Tify\Service\AbstractService;
16 16
 
17 17
 abstract class AbstractNotification
18 18
 {
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Push notification services abstraction (http://github.com/juliangut/tify)
4
- *
5
- * @link https://github.com/juliangut/tify for the canonical source repository
6
- *
7
- * @license https://github.com/juliangut/tify/blob/master/LICENSE
8
- */
3
+     * Push notification services abstraction (http://github.com/juliangut/tify)
4
+     *
5
+     * @link https://github.com/juliangut/tify for the canonical source repository
6
+     *
7
+     * @license https://github.com/juliangut/tify/blob/master/LICENSE
8
+     */
9 9
 
10 10
 session_start();
11 11
 
Please login to merge, or discard this patch.
src/OptionsTrait.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
      * Get option.
43 43
      *
44 44
      * @param string $option
45
-     * @param mixed  $default
45
+     * @param integer  $default
46 46
      *
47 47
      * @return mixed
48 48
      */
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      *
57 57
      * @param array $options
58 58
      *
59
-     * @return \Jgut\Tify\Model\BaseOptionedModel
59
+     * @return OptionsTrait
60 60
      */
61 61
     public function setOptions($options)
62 62
     {
Please login to merge, or discard this patch.
src/ParametersTrait.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      * Get parameter.
33 33
      *
34 34
      * @param string $parameter
35
-     * @param mixed  $default
35
+     * @param integer  $default
36 36
      *
37 37
      * @return mixed
38 38
      */
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      *
57 57
      * @param array $parameters
58 58
      *
59
-     * @return \Jgut\Tify\Model\BaseParameteredModel
59
+     * @return ParametersTrait
60 60
      */
61 61
     public function setParameters($parameters)
62 62
     {
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Push notification services abstraction (http://github.com/juliangut/tify)
4
- *
5
- * @link https://github.com/juliangut/tify for the canonical source repository
6
- *
7
- * @license https://github.com/juliangut/tify/blob/master/LICENSE
8
- */
3
+     * Push notification services abstraction (http://github.com/juliangut/tify)
4
+     *
5
+     * @link https://github.com/juliangut/tify for the canonical source repository
6
+     *
7
+     * @license https://github.com/juliangut/tify/blob/master/LICENSE
8
+     */
9 9
 
10 10
 session_start();
11 11
 
Please login to merge, or discard this patch.
src/Service/Apns.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -162,7 +162,7 @@
 block discarded – undo
162 162
     /**
163 163
      * Get opened ServiceClient
164 164
      *
165
-     * @return \ZendService\Apple\Apns\Client\AbstractClient
165
+     * @return \ZendService\Apple\Apns\Message
166 166
      */
167 167
     protected function getPushService()
168 168
     {
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,8 +9,8 @@
 block discarded – undo
9 9
 
10 10
 namespace Jgut\Tify\Service;
11 11
 
12
-use Jgut\Tify\Exception\ServiceException;
13 12
 use Jgut\Tify\Exception\NotificationException;
13
+use Jgut\Tify\Exception\ServiceException;
14 14
 use Jgut\Tify\Notification\AbstractNotification;
15 15
 use Jgut\Tify\Notification\Apns as ApnsNotification;
16 16
 use Jgut\Tify\Service\Client\ApnsBuilder as ClientBuilder;
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Push notification services abstraction (http://github.com/juliangut/tify)
4
- *
5
- * @link https://github.com/juliangut/tify for the canonical source repository
6
- *
7
- * @license https://github.com/juliangut/tify/blob/master/LICENSE
8
- */
3
+     * Push notification services abstraction (http://github.com/juliangut/tify)
4
+     *
5
+     * @link https://github.com/juliangut/tify for the canonical source repository
6
+     *
7
+     * @license https://github.com/juliangut/tify/blob/master/LICENSE
8
+     */
9 9
 
10 10
 session_start();
11 11
 
Please login to merge, or discard this patch.
src/Service/Message/Gcm.php 3 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,6 @@
 block discarded – undo
39 39
     /**
40 40
      * Set notification payload data.
41 41
      *
42
-     * @param array $data
43 42
      */
44 43
     public function setNotificationPayload(array $payload)
45 44
     {
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,10 +9,10 @@
 block discarded – undo
9 9
 
10 10
 namespace Jgut\Tify\Service\Message;
11 11
 
12
-use Zend\Json\Json;
13 12
 use ZendService\Google\Exception\InvalidArgumentException;
14 13
 use ZendService\Google\Exception\RuntimeException;
15 14
 use ZendService\Google\Gcm\Message as ServiceMessage;
15
+use Zend\Json\Json;
16 16
 
17 17
 /**
18 18
  * Custom GCM service message.
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Push notification services abstraction (http://github.com/juliangut/tify)
4
- *
5
- * @link https://github.com/juliangut/tify for the canonical source repository
6
- *
7
- * @license https://github.com/juliangut/tify/blob/master/LICENSE
8
- */
3
+     * Push notification services abstraction (http://github.com/juliangut/tify)
4
+     *
5
+     * @link https://github.com/juliangut/tify for the canonical source repository
6
+     *
7
+     * @license https://github.com/juliangut/tify/blob/master/LICENSE
8
+     */
9 9
 
10 10
 session_start();
11 11
 
Please login to merge, or discard this patch.
src/Service/Message/ApnsBuilder.php 2 patches
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,8 +29,7 @@
 block discarded – undo
29 29
         $message = $notification->getMessage();
30 30
 
31 31
         $badge = ((int) $notification->getOption('badge', 0) === 0)
32
-            ? null :
33
-            $notification->getOption('badge') + (int) $device->getParameter('badge', 0);
32
+            ? null : $notification->getOption('badge') + (int) $device->getParameter('badge', 0);
34 33
 
35 34
         $pushMessage = new Message();
36 35
 
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Push notification services abstraction (http://github.com/juliangut/tify)
4
- *
5
- * @link https://github.com/juliangut/tify for the canonical source repository
6
- *
7
- * @license https://github.com/juliangut/tify/blob/master/LICENSE
8
- */
3
+     * Push notification services abstraction (http://github.com/juliangut/tify)
4
+     *
5
+     * @link https://github.com/juliangut/tify for the canonical source repository
6
+     *
7
+     * @license https://github.com/juliangut/tify/blob/master/LICENSE
8
+     */
9 9
 
10 10
 session_start();
11 11
 
Please login to merge, or discard this patch.
tests/bootstrap.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Push notification services abstraction (http://github.com/juliangut/tify)
4
- *
5
- * @link https://github.com/juliangut/tify for the canonical source repository
6
- *
7
- * @license https://github.com/juliangut/tify/blob/master/LICENSE
8
- */
3
+     * Push notification services abstraction (http://github.com/juliangut/tify)
4
+     *
5
+     * @link https://github.com/juliangut/tify for the canonical source repository
6
+     *
7
+     * @license https://github.com/juliangut/tify/blob/master/LICENSE
8
+     */
9 9
 
10 10
 session_start();
11 11
 
Please login to merge, or discard this patch.
src/Exception/ServiceException.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Push notification services abstraction (http://github.com/juliangut/tify)
4
- *
5
- * @link https://github.com/juliangut/tify for the canonical source repository
6
- *
7
- * @license https://github.com/juliangut/tify/blob/master/LICENSE
8
- */
3
+     * Push notification services abstraction (http://github.com/juliangut/tify)
4
+     *
5
+     * @link https://github.com/juliangut/tify for the canonical source repository
6
+     *
7
+     * @license https://github.com/juliangut/tify/blob/master/LICENSE
8
+     */
9 9
 
10 10
 session_start();
11 11
 
Please login to merge, or discard this patch.
src/Service/Gcm.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Push notification services abstraction (http://github.com/juliangut/tify)
4
- *
5
- * @link https://github.com/juliangut/tify for the canonical source repository
6
- *
7
- * @license https://github.com/juliangut/tify/blob/master/LICENSE
8
- */
3
+     * Push notification services abstraction (http://github.com/juliangut/tify)
4
+     *
5
+     * @link https://github.com/juliangut/tify for the canonical source repository
6
+     *
7
+     * @license https://github.com/juliangut/tify/blob/master/LICENSE
8
+     */
9 9
 
10 10
 session_start();
11 11
 
Please login to merge, or discard this patch.