Passed
Push — master ( f8fe34...2f6c10 )
by Anton
02:20
created
src/Bootloader/ServerBootloader.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -40,21 +40,21 @@  discard block
 block discarded – undo
40 40
     {
41 41
         $conn = $env->get('RR_RPC', static::RPC_DEFAULT);
42 42
 
43
-        if (!preg_match('#^([a-z]+)://([^:]+):?(\d+)?$#i', $conn, $parts)) {
43
+        if (!preg_match('#^([a-z]+)://([^:]+):?(\d+)?$#i', $conn, $parts)){
44 44
             throw new BootException(
45 45
                 "Unable to configure RPC connection, invalid DSN given `{$conn}`."
46 46
             );
47 47
         }
48 48
 
49
-        if (!in_array($parts[1], ['tcp', 'unix'])) {
49
+        if (!in_array($parts[1], ['tcp', 'unix'])){
50 50
             throw new BootException(
51 51
                 "Unable to configure RPC connection, invalid DSN given `{$conn}`."
52 52
             );
53 53
         }
54 54
 
55
-        if ($parts[1] == 'unix') {
55
+        if ($parts[1] == 'unix'){
56 56
             $relay = new SocketRelay($parts[2], null, SocketRelay::SOCK_UNIX);
57
-        } else {
57
+        }else{
58 58
             $relay = new SocketRelay($parts[2], (int)$parts[3], SocketRelay::SOCK_TCP);
59 59
         }
60 60
 
@@ -69,25 +69,25 @@  discard block
 block discarded – undo
69 69
     {
70 70
         $conn = $env->get('RR_RELAY', static::WORKER_DEFAULT);
71 71
 
72
-        if ($conn === 'pipes' || empty($conn)) {
72
+        if ($conn === 'pipes' || empty($conn)){
73 73
             return new Worker(new StreamRelay(STDIN, STDOUT));
74 74
         }
75 75
 
76
-        if (!preg_match('#^([a-z]+)://([^:]+):?(\d+)?$#i', $conn, $parts)) {
76
+        if (!preg_match('#^([a-z]+)://([^:]+):?(\d+)?$#i', $conn, $parts)){
77 77
             throw new BootException(
78 78
                 "Unable to configure Worker connection, invalid DSN given `{$conn}`."
79 79
             );
80 80
         }
81 81
 
82
-        if (!in_array($parts[1], ['tcp', 'unix'])) {
82
+        if (!in_array($parts[1], ['tcp', 'unix'])){
83 83
             throw new BootException(
84 84
                 "Unable to configure Worker connection, invalid DSN given `{$conn}`."
85 85
             );
86 86
         }
87 87
 
88
-        if ($parts[1] == 'unix') {
88
+        if ($parts[1] == 'unix'){
89 89
             $relay = new SocketRelay($parts[2], null, SocketRelay::SOCK_UNIX);
90
-        } else {
90
+        }else{
91 91
             $relay = new SocketRelay($parts[2], (int)$parts[3], SocketRelay::SOCK_TCP);
92 92
         }
93 93
 
Please login to merge, or discard this patch.