Passed
Push — main ( d1c4d1...ecde2f )
by William
02:56
created
src/Base.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -31,10 +31,10 @@  discard block
 block discarded – undo
31 31
          * Faz a execucao parar ao enviar um sinal do linux para matar o script
32 32
          */
33 33
         if (php_sapi_name() == "cli") {
34
-            \pcntl_signal(SIGTERM, function ($signal) {
34
+            \pcntl_signal(SIGTERM, function($signal) {
35 35
                 $this->shutdown($signal);
36 36
             }, false);
37
-            \pcntl_signal(SIGINT, function ($signal) {
37
+            \pcntl_signal(SIGINT, function($signal) {
38 38
                 $this->shutdown($signal);
39 39
             }, false);
40 40
         }
@@ -56,10 +56,10 @@  discard block
 block discarded – undo
56 56
                 print "Caught SIGTERM {$data}" . PHP_EOL;
57 57
                 exit;
58 58
             case SIGKILL:
59
-                print "Caught SIGKILL {$data}" . PHP_EOL;;
59
+                print "Caught SIGKILL {$data}" . PHP_EOL; ;
60 60
                 exit;
61 61
             case SIGINT:
62
-                print "Caught SIGINT {$data}" . PHP_EOL;;
62
+                print "Caught SIGINT {$data}" . PHP_EOL; ;
63 63
                 exit;
64 64
         }
65 65
     }
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
                 $this->getConnection(true);
207 207
                 $callback();
208 208
             } catch (\Exception $e) {
209
-                echo get_class($e).':' . $e->getMessage() . " | file:" . $e->getFile() . " | line:" . $e->getLine() . PHP_EOL;
209
+                echo get_class($e) . ':' . $e->getMessage() . " | file:" . $e->getFile() . " | line:" . $e->getLine() . PHP_EOL;
210 210
                 $this->cleanConnection();
211 211
                 sleep(2);
212 212
             }
Please login to merge, or discard this patch.
src/PubSub/PubSub.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
         int    $sleepSeconds = 3
110 110
     ) {
111 111
 
112
-        $this->loopConnection(function () use ($sleepSeconds, $queueName) {
112
+        $this->loopConnection(function() use ($sleepSeconds, $queueName) {
113 113
 
114 114
             /** como no pubsub ao perder a conexão, a fila exclusiva é excluida, é necessário configurar
115 115
              * fila e etc novamente
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
                 true,
126 126
                 false,
127 127
                 false,
128
-                function (AMQPMessage $message) {
128
+                function(AMQPMessage $message) {
129 129
                     //se o status for negativo, não executa o consumo
130 130
                     $checkStatusCallback = $this->onCheckStatusCallback;
131 131
                     $statusBoolean = $checkStatusCallback();
Please login to merge, or discard this patch.