Completed
Pull Request — master (#37)
by Alessandro
06:14
created
src/Paraunit/Configuration/PHPUnitBinFile.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -21,10 +21,10 @@
 block discarded – undo
21 21
      */
22 22
     public function __construct()
23 23
     {
24
-        if (file_exists(__DIR__.self::PHPUNIT_RELPATH_FOR_VENDOR)) {
25
-            $this->phpUnitBin = __DIR__.self::PHPUNIT_RELPATH_FOR_VENDOR;
26
-        } elseif (file_exists(__DIR__.self::PHPUNIT_RELPATH_FOR_STANDALONE)) {
27
-            $this->phpUnitBin = __DIR__.self::PHPUNIT_RELPATH_FOR_STANDALONE;
24
+        if (file_exists(__DIR__ . self::PHPUNIT_RELPATH_FOR_VENDOR)) {
25
+            $this->phpUnitBin = __DIR__ . self::PHPUNIT_RELPATH_FOR_VENDOR;
26
+        } elseif (file_exists(__DIR__ . self::PHPUNIT_RELPATH_FOR_STANDALONE)) {
27
+            $this->phpUnitBin = __DIR__ . self::PHPUNIT_RELPATH_FOR_STANDALONE;
28 28
         } else {
29 29
             throw new \Exception('PHPUnit bin not found');
30 30
         }
Please login to merge, or discard this patch.
src/Paraunit/File/Cleaner.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,8 +41,8 @@
 block discarded – undo
41 41
         $it = new \RecursiveDirectoryIterator($dir, \RecursiveDirectoryIterator::SKIP_DOTS);
42 42
         $files = new \RecursiveIteratorIterator($it, \RecursiveIteratorIterator::CHILD_FIRST);
43 43
 
44
-        foreach($files as $file) {
45
-            if ($file->isDir()){
44
+        foreach ($files as $file) {
45
+            if ($file->isDir()) {
46 46
                 rmdir($file->getRealPath());
47 47
             } else {
48 48
                 unlink($file->getRealPath());
Please login to merge, or discard this patch.
src/Paraunit/Process/AbstractParaunitProcess.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -136,6 +136,6 @@
 block discarded – undo
136 136
      */
137 137
     public function setWaitingForTestResult($waitingForTestResult)
138 138
     {
139
-        $this->waitingForTestResult = (bool) $waitingForTestResult;
139
+        $this->waitingForTestResult = (bool)$waitingForTestResult;
140 140
     }
141 141
 }
Please login to merge, or discard this patch.