@@ -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 @@ 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 |
@@ -178,7 +178,7 @@ discard block |
||
| 178 | 178 | } |
| 179 | 179 | |
| 180 | 180 | if (null !== ErrorHandler::$lastError) { |
| 181 | - throw new OpenFileFail((string)ErrorHandler::$lastError); |
|
| 181 | + throw new OpenFileFail((string) ErrorHandler::$lastError); |
|
| 182 | 182 | } |
| 183 | 183 | |
| 184 | 184 | /** @noinspection PhpUndefinedVariableInspection */ |
@@ -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 |
@@ -195,7 +195,7 @@ discard block |
||
| 195 | 195 | // For *nix system |
| 196 | 196 | $pid_max_storage = '/proc/sys/kernel/pid_max'; |
| 197 | 197 | if (file_exists($pid_max_storage)) { |
| 198 | - $pid_max = (int)file_get_contents($pid_max_storage); |
|
| 198 | + $pid_max = (int) file_get_contents($pid_max_storage); |
|
| 199 | 199 | if ($pid_max < $pid_int) { |
| 200 | 200 | $message = "PID in file has unavailable value: $pid_int. In /proc/sys/kernel/pid_max set $pid_max."; |
| 201 | 201 | throw new PidBiggerMax($message); |
@@ -233,7 +233,7 @@ discard block |
||
| 233 | 233 | */ |
| 234 | 234 | private static function setPidIntoFile($self_pid, $pidFileResource) |
| 235 | 235 | { |
| 236 | - $self_pid_str = (string)$self_pid; |
|
| 236 | + $self_pid_str = (string) $self_pid; |
|
| 237 | 237 | $pid_length = strlen($self_pid_str); |
| 238 | 238 | $write_length = fwrite($pidFileResource, $self_pid_str, $pid_length); |
| 239 | 239 | if ($write_length !== $pid_length) { |
@@ -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 |