@@ -26,7 +26,7 @@ |
||
26 | 26 | */ |
27 | 27 | protected function consume() |
28 | 28 | { |
29 | - $callback = function ($message) { |
|
29 | + $callback = function($message) { |
|
30 | 30 | $this->handler($message); |
31 | 31 | }; |
32 | 32 | $this->channel->basic_consume($this->getQueue(), 'consumer', false, $this->getReply(), false, false, $callback); |
@@ -234,7 +234,7 @@ |
||
234 | 234 | ]; |
235 | 235 | |
236 | 236 | // $rawProducts = $_COOKIE['rawproducts']; |
237 | - $rawProducts = [['id' => 1],[ 'id' => 2]]; |
|
237 | + $rawProducts = [['id' => 1], ['id' => 2]]; |
|
238 | 238 | |
239 | 239 | foreach ($rawProducts as $key => $value) { |
240 | 240 | $req = callAPI("/product/{$value['id']}", 'GET', [], $_SESSION['user'] ?? ''); |
@@ -20,7 +20,7 @@ |
||
20 | 20 | if (extension_loaded('pcntl')) { |
21 | 21 | function catchSignals() { exit; } |
22 | 22 | |
23 | - pcntl_signal(SIGINT, 'catchSignals'); |
|
23 | + pcntl_signal(SIGINT, 'catchSignals'); |
|
24 | 24 | pcntl_signal(SIGTERM, 'catchSignals'); |
25 | 25 | } |
26 | 26 |
@@ -13,7 +13,7 @@ |
||
13 | 13 | $endMicrotime = round((microtime(true) - $startMicrotime), 2); |
14 | 14 | |
15 | 15 | $usedMemory = round(memory_get_usage(false) / 1024); |
16 | - $allocedMemory = round(memory_get_usage(true) / 1024); |
|
16 | + $allocedMemory = round(memory_get_usage(true) / 1024); |
|
17 | 17 | |
18 | 18 | \Source\Infra\Logger\Log::debug("[*] Used memory: {$usedMemory}KB, Alocated memory: {$allocedMemory}KB"); |
19 | 19 | \Source\Infra\Logger\Log::debug("[*] Execution time: {$endMicrotime}, Exiting..."); |