Passed
Push — master ( c5a620...f982b7 )
by Joao
07:36
created
src/Handler/ForkHandler.php 2 patches
Switch Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -194,8 +194,8 @@
 block discarded – undo
194 194
     private function signalHandler($signal)
195 195
     {
196 196
         switch ($signal) {
197
-            case SIGTERM:
198
-                exit(0);
197
+        case SIGTERM:
198
+            exit(0);
199 199
         }
200 200
     }
201 201
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
      */
67 67
     public function execute()
68 68
     {
69
-        $this->threadKey = 'thread_' . rand(1000, 9999) . rand(1000, 9999) . rand(1000, 9999) . rand(1000, 9999);
69
+        $this->threadKey = 'thread_'.rand(1000, 9999).rand(1000, 9999).rand(1000, 9999).rand(1000, 9999);
70 70
 
71 71
         if (($this->pid = pcntl_fork()) == -1) {
72 72
             throw new RuntimeException('Couldn\'t fork the process');
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 
83 83
             $callable = $this->callable;
84 84
             if (!is_string($callable)) {
85
-                $callable = (array) $this->callable;
85
+                $callable = (array)$this->callable;
86 86
             }
87 87
 
88 88
             try {
Please login to merge, or discard this patch.
src/Handler/PThreadHandler.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -37,9 +37,9 @@  discard block
 block discarded – undo
37 37
             return $this->loader;
38 38
         }
39 39
 
40
-        $path = __DIR__ . '/../../vendor/autoload.php';
40
+        $path = __DIR__.'/../../vendor/autoload.php';
41 41
         if (!file_exists($path)) {
42
-            $path = __DIR__ . '/../../../../autoload.php';
42
+            $path = __DIR__.'/../../../../autoload.php';
43 43
             if (!file_exists($path)) {
44 44
                 throw new \RuntimeException("Autoload path '$path' not found");
45 45
             }
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 
59 59
         $callable = $this->callable;
60 60
         if (!is_string($callable)) {
61
-            $callable = (array) $this->callable;
61
+            $callable = (array)$this->callable;
62 62
         }
63 63
 
64 64
         try {
Please login to merge, or discard this patch.