@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | /** |
| 4 | 4 | * Created by PhpStorm. |
| 5 | 5 | * User: danchukas |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | { |
| 50 | 50 | |
| 51 | 51 | /** @noinspection PhpUnusedParameterInspection */ |
| 52 | - set_error_handler(function (int $messageType, string $messageText) { |
|
| 52 | + set_error_handler(function(int $messageType, string $messageText) { |
|
| 53 | 53 | self::$lastError = "[$messageType] " . $messageText; |
| 54 | 54 | }); |
| 55 | 55 | |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | /** |
| 4 | 4 | * Created by PhpStorm. |
| 5 | 5 | * User: danchukas |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | /** |
| 4 | 4 | * Created by PhpStorm. |
| 5 | 5 | * User: danchukas |
@@ -220,7 +220,7 @@ discard block |
||
| 220 | 220 | // if file was once empty is not critical. |
| 221 | 221 | // It was after crash daemon. |
| 222 | 222 | // There are signal for admin/developer. |
| 223 | - trigger_error((string)$exception, E_USER_NOTICE); |
|
| 223 | + trigger_error((string) $exception, E_USER_NOTICE); |
|
| 224 | 224 | } |
| 225 | 225 | self::truncatePidFile($file_resource); |
| 226 | 226 | } |
@@ -301,7 +301,7 @@ discard block |
||
| 301 | 301 | // For *nix system |
| 302 | 302 | $pid_max_storage = "/proc/sys/kernel/pid_max"; |
| 303 | 303 | if (file_exists($pid_max_storage)) { |
| 304 | - $pid_max = (int)file_get_contents($pid_max_storage); |
|
| 304 | + $pid_max = (int) file_get_contents($pid_max_storage); |
|
| 305 | 305 | if ($pid_max < $pid_int) { |
| 306 | 306 | $message = "PID in file has unavailable value: $pid_int. In /proc/sys/kernel/pid_max set $pid_max."; |
| 307 | 307 | throw new PidBiggerMax($message); |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | /** |
| 4 | 4 | * Created by PhpStorm. |
| 5 | 5 | * User: danchukas |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | /** |
| 4 | 4 | * Created by PhpStorm. |
| 5 | 5 | * User: danchukas |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | /** |
| 4 | 4 | * Created by PhpStorm. |
| 5 | 5 | * User: danchukas |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | /** |
| 4 | 4 | * Created by PhpStorm. |
| 5 | 5 | * User: danchukas |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | /** |
| 4 | 4 | * Created by PhpStorm. |
| 5 | 5 | * User: danchukas |