Passed
Push — master ( 31d50a...c8ed31 )
by Anatoliy
03:21
created
tests/DenyMultiplyRunTest/ExistRightPidFileTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
     {
42 42
 
43 43
         /** @noinspection PhpUnusedParameterInspection */
44
-        set_error_handler(function (int $messageType, string $messageText) {
44
+        set_error_handler(function(int $messageType, string $messageText) {
45 45
             self::$lastError = "[$messageType] " . $messageText;
46 46
         });
47 47
 
Please login to merge, or discard this patch.
src/Exception/ConvertPidFail.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 /**
4 4
  * Created by PhpStorm.
5 5
  * User: danchukas
Please login to merge, or discard this patch.
src/DenyMultiplyRun.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 
4 4
 namespace DanchukAS\DenyMultiplyRun;
5 5
 
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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) {
Please login to merge, or discard this patch.
tests/Mock/Type/ObjectTypeMock.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
tests/DenyMultiplyRunTest/SurprisingTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 
4 4
 
5 5
 /**
Please login to merge, or discard this patch.
src/Exception/OpenFileFail.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 /**
4 4
  * Created by PhpStorm.
5 5
  * User: danchukas
Please login to merge, or discard this patch.
src/Exception/CloseFileFail.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 /**
4 4
  * Created by PhpStorm.
5 5
  * User: danchukas
Please login to merge, or discard this patch.
src/Exception/LockFileFail.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 /**
4 4
  * Created by PhpStorm.
5 5
  * User: danchukas
Please login to merge, or discard this patch.
src/Exception/PidFileEmpty.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types = 1);
2
+declare(strict_types=1);
3 3
 /**
4 4
  * Created by PhpStorm.
5 5
  * User: danchukas
Please login to merge, or discard this patch.