Completed
Push — add_bdd ( 07502f )
by Anatoliy
07:38
created
example/example.php 1 patch
Spacing   +2 added lines, -2 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
  * Created by PhpStorm.
5 5
  * User: danchukas
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 //if (!is_file($pid_file)) {
27 27
 
28 28
 $r = fopen("/tmp/run/some_job_or_daemon.pid", 'x');
29
-fwrite($r, (string)getmypid());
29
+fwrite($r, (string) getmypid());
30 30
 fclose($r);
31 31
 //}
32 32
 
Please login to merge, or discard this patch.
src/File.php 1 patch
Spacing   +2 added lines, -2 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
  * Created by PhpStorm.
5 5
  * User: danchukas
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
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 */
Please login to merge, or discard this patch.
src/DenyMultiplyRun.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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) {
Please login to merge, or discard this patch.
test/BDD/Behat/FeatureContext/Buffer.php 1 patch
Spacing   +2 added lines, -2 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
 use Behat\Behat\Context\Context;
5 5
 use Behat\Behat\Tester\Exception\PendingException;
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     public function aNonExistedFileAs($arg1)
33 33
     {
34 34
         $arg1 = str_replace("$", "", $arg1);
35
-        $this->variableList[$arg1] = sys_get_temp_dir() . '/' . uniqid('vd_', true);;
35
+        $this->variableList[$arg1] = sys_get_temp_dir() . '/' . uniqid('vd_', true); ;
36 36
     }
37 37
 
38 38
 
Please login to merge, or discard this patch.
test/BDD/Behat/FeatureContext/AlertFailedTry.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
 use Behat\Behat\Context\Context;
5 5
 
Please login to merge, or discard this patch.
test/BDD/Behat/FeatureContext/BaseUse.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
 use Behat\Behat\Context\Context;
5 5
 use Behat\Behat\Hook\Scope\AfterScenarioScope;
Please login to merge, or discard this patch.