Completed
Push — master ( 613542...020c5c )
by Julián
03:39
created
src/Notification/AbstractNotification.php 2 patches
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,9 +9,9 @@
 block discarded – undo
9 9
 
10 10
 namespace Jgut\Tify\Notification;
11 11
 
12
-use Jgut\Tify\Recipient\AbstractRecipient;
13 12
 use Jgut\Tify\Message\AbstractMessage;
14 13
 use Jgut\Tify\OptionsTrait;
14
+use Jgut\Tify\Recipient\AbstractRecipient;
15 15
 use Jgut\Tify\Service\AbstractService;
16 16
 
17 17
 abstract class AbstractNotification
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -184,7 +184,7 @@
 block discarded – undo
184 184
     /**
185 185
      * Retrieve recipients tokens list.
186 186
      *
187
-     * @return string[]
187
+     * @return integer[]
188 188
      */
189 189
     final public function getTokens()
190 190
     {
Please login to merge, or discard this patch.
src/Message/GcmMessage.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -29,6 +29,8 @@
 block discarded – undo
29 29
      * {@inheritdoc}
30 30
      *
31 31
      * @throws \InvalidArgumentException
32
+     * @param string $parameter
33
+     * @param string $value
32 34
      */
33 35
     public function setParameter($parameter, $value)
34 36
     {
Please login to merge, or discard this patch.
src/Message/ApnsMessage.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -29,6 +29,8 @@
 block discarded – undo
29 29
      * {@inheritdoc}
30 30
      *
31 31
      * @throws \InvalidArgumentException
32
+     * @param string $parameter
33
+     * @param string $value
32 34
      */
33 35
     public function setParameter($parameter, $value)
34 36
     {
Please login to merge, or discard this patch.
tests/bootstrap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,4 +9,4 @@
 block discarded – undo
9 9
 
10 10
 session_start();
11 11
 
12
-require_once dirname(__DIR__) . '/vendor/autoload.php';
12
+require_once dirname(__DIR__).'/vendor/autoload.php';
Please login to merge, or discard this patch.
tests/Tify/Service/Message/ApnsBuilderTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
         );
28 28
 
29 29
         $service = new \Jgut\Tify\Service\ApnsService(
30
-            ['certificate' => dirname(dirname(dirname(__DIR__))) . '/files/apns_certificate.pem']
30
+            ['certificate' => dirname(dirname(dirname(__DIR__))).'/files/apns_certificate.pem']
31 31
         );
32 32
 
33 33
         $message = new \Jgut\Tify\Message\ApnsMessage(['title' => 'title']);
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
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
      * Get option.
59 59
      *
60 60
      * @param string $option
61
-     * @param mixed  $default
61
+     * @param integer  $default
62 62
      *
63 63
      * @return mixed
64 64
      */
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
      * Set option.
96 96
      *
97 97
      * @param string $option
98
-     * @param mixed  $value
98
+     * @param string  $value
99 99
      *
100 100
      * @return $this
101 101
      */
Please login to merge, or discard this patch.
src/Service/Message/ApnsMessageBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
         $pushMessage = new ServiceMessage();
36 36
 
37 37
         $pushMessage
38
-            ->setId(sha1($recipient->getToken() . $message->getOption('body')))
38
+            ->setId(sha1($recipient->getToken().$message->getOption('body')))
39 39
             ->setToken($recipient->getToken())
40 40
             ->setSound($notification->getOption('sound'))
41 41
             ->setContentAvailable($notification->getOption('content_available'))
Please login to merge, or discard this patch.
tests/Tify/Service/Client/ApnsBuilderTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
      */
28 28
     public function testPushClient()
29 29
     {
30
-        $client = ApnsClientBuilder::buildPush(dirname(dirname(dirname(__DIR__))) . '/files/apns_certificate.pem');
30
+        $client = ApnsClientBuilder::buildPush(dirname(dirname(dirname(__DIR__))).'/files/apns_certificate.pem');
31 31
 
32 32
         $this->assertInstanceOf(Message::class, $client);
33 33
     }
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
      */
42 42
     public function testPushFeedback()
43 43
     {
44
-        $client = ApnsClientBuilder::buildFeedback(dirname(dirname(dirname(__DIR__))) . '/files/apns_certificate.pem');
44
+        $client = ApnsClientBuilder::buildFeedback(dirname(dirname(dirname(__DIR__))).'/files/apns_certificate.pem');
45 45
 
46 46
         $this->assertInstanceOf(Feedback::class, $client);
47 47
     }
Please login to merge, or discard this patch.