@@ -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 |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | 'anonymous class' => new class |
| 29 | 29 | { |
| 30 | 30 | } |
| 31 | - , 'anonymous function' => function () { |
|
| 31 | + , 'anonymous function' => function() { |
|
| 32 | 32 | } |
| 33 | 33 | , 'minimal items' => new \stdClass |
| 34 | 34 | , 'usual' => new \Exception |
@@ -236,7 +236,7 @@ discard block |
||
| 236 | 236 | // if file was once empty is not critical. |
| 237 | 237 | // It was after crash daemon. |
| 238 | 238 | // There are signal for admin/developer. |
| 239 | - trigger_error((string)$exception); |
|
| 239 | + trigger_error((string) $exception); |
|
| 240 | 240 | } |
| 241 | 241 | self::truncatePidFile($file_resource); |
| 242 | 242 | } |
@@ -317,7 +317,7 @@ discard block |
||
| 317 | 317 | // For *nix system |
| 318 | 318 | $pid_max_storage = '/proc/sys/kernel/pid_max'; |
| 319 | 319 | if (file_exists($pid_max_storage)) { |
| 320 | - $pid_max = (int)file_get_contents($pid_max_storage); |
|
| 320 | + $pid_max = (int) file_get_contents($pid_max_storage); |
|
| 321 | 321 | if ($pid_max < $pid_int) { |
| 322 | 322 | $message = "PID in file has unavailable value: $pid_int. In /proc/sys/kernel/pid_max set $pid_max."; |
| 323 | 323 | throw new PidBiggerMax($message); |
@@ -371,7 +371,7 @@ discard block |
||
| 371 | 371 | */ |
| 372 | 372 | private static function setPidIntoFile($self_pid, $pidFileResource) |
| 373 | 373 | { |
| 374 | - $self_pid_str = (string)$self_pid; |
|
| 374 | + $self_pid_str = (string) $self_pid; |
|
| 375 | 375 | $pid_length = strlen($self_pid_str); |
| 376 | 376 | $write_length = fwrite($pidFileResource, $self_pid_str, $pid_length); |
| 377 | 377 | if ($write_length !== $pid_length) { |