Passed
Branch unit-tests (e0d319)
by Ekin
03:00
created
src/Websocket/Handler.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace ekinhbayar\GitAmp\Websocket;
4 4
 
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
         $this->connections = [];
35 35
         $this->ips = [];
36 36
 
37
-        repeat(function () {
37
+        repeat(function() {
38 38
             $this->emit(yield $this->gitamp->listen());
39 39
         }, 25000);
40 40
     }
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,9 @@
 block discarded – undo
69 69
      * @param Results $events
70 70
      */
71 71
     public function emit(Results $events) {
72
-        if (!$events->hasEvents()) return;
72
+        if (!$events->hasEvents()) {
73
+            return;
74
+        }
73 75
 
74 76
         $this->endpoint->send(null, $events->jsonEncode());
75 77
     }
Please login to merge, or discard this patch.
src/Github/Token.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace ekinhbayar\GitAmp\Github;
4 4
 
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 
9 9
     public function __construct(string $token)
10 10
     {
11
-        $this->token= $token;
11
+        $this->token = $token;
12 12
     }
13 13
 
14 14
     public function getAuthenticationString(): string
Please login to merge, or discard this patch.
src/Client/GitAmp.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace ekinhbayar\GitAmp\Client;
4 4
 
Please login to merge, or discard this patch.
src/Client/RequestFailedException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace ekinhbayar\GitAmp\Client;
4 4
 
Please login to merge, or discard this patch.
src/Storage/Counter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace ekinhbayar\GitAmp\Client;
4 4
 
Please login to merge, or discard this patch.
src/Storage/StorageFailedException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace ekinhbayar\GitAmp\Client;
4 4
 
Please login to merge, or discard this patch.
src/Github/MissingCredentials.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace ekinhbayar\GitAmp\Client;
4 4
 
Please login to merge, or discard this patch.
src/Github/Credentials.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace ekinhbayar\GitAmp\Client;
4 4
 
Please login to merge, or discard this patch.
src/Github/User.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace ekinhbayar\GitAmp\Client;
4 4
 
Please login to merge, or discard this patch.