Completed
Pull Request — master (#37)
by Alessandro
02:23
created
src/Paraunit/Configuration/Paraunit.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
     {
25 25
         $containerBuilder = new ContainerBuilder();
26 26
 
27
-        $loader = new YamlFileLoader($containerBuilder, new FileLocator(__DIR__ . '/../Resources/config/'));
27
+        $loader = new YamlFileLoader($containerBuilder, new FileLocator(__DIR__.'/../Resources/config/'));
28 28
         $loader->load('services.yml');
29 29
 
30 30
         $containerBuilder->addCompilerPass(new RegisterListenersPass());
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/File/TempDirectory.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -29,10 +29,10 @@  discard block
 block discarded – undo
29 29
      */
30 30
     public function getTempDirForThisExecution()
31 31
     {
32
-        $dir = self::getTempBaseDir() . DIRECTORY_SEPARATOR . $this->timestamp;
32
+        $dir = self::getTempBaseDir().DIRECTORY_SEPARATOR.$this->timestamp;
33 33
         self::mkdirIfNotExists($dir);
34
-        self::mkdirIfNotExists($dir . DIRECTORY_SEPARATOR . 'logs');
35
-        self::mkdirIfNotExists($dir . DIRECTORY_SEPARATOR . 'coverage');
34
+        self::mkdirIfNotExists($dir.DIRECTORY_SEPARATOR.'logs');
35
+        self::mkdirIfNotExists($dir.DIRECTORY_SEPARATOR.'coverage');
36 36
 
37 37
         return $dir;
38 38
     }
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
     {
45 45
         foreach (self::$tempDirs as $directory) {
46 46
             if (file_exists($directory)) {
47
-                $baseDir = $directory . DIRECTORY_SEPARATOR . 'paraunit';
47
+                $baseDir = $directory.DIRECTORY_SEPARATOR.'paraunit';
48 48
                 self::mkdirIfNotExists($baseDir);
49 49
 
50 50
                 return $baseDir;
Please login to merge, or discard this patch.
src/Paraunit/Configuration/JSONLogFilename.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,6 +30,6 @@
 block discarded – undo
30 30
 
31 31
     public function generateFromUniqueId($uniqueId)
32 32
     {
33
-        return $this->tempDirectory->getTempDirForThisExecution() . '/logs/' . $uniqueId . '.json.log';
33
+        return $this->tempDirectory->getTempDirForThisExecution().'/logs/'.$uniqueId.'.json.log';
34 34
     }
35 35
 }
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.
src/Paraunit/Output/OutputContainerInterface.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
      */
37 37
     public function countMessages();
38 38
 
39
-   /**
39
+    /**
40 40
      * @return string
41 41
      */
42 42
     public function getTag();
Please login to merge, or discard this patch.
src/Paraunit/TestResult/TraceStep.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,6 +46,6 @@
 block discarded – undo
46 46
      */
47 47
     public function __toString()
48 48
     {
49
-        return $this->filePath . ':' . $this->line;
49
+        return $this->filePath.':'.$this->line;
50 50
     }
51 51
 }
Please login to merge, or discard this patch.
src/Paraunit/TestResult/TestResultWithAbnormalTermination.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
      */
17 17
     public function getFailureMessage()
18 18
     {
19
-        return parent::getFailureMessage() . "\n" . $this->testOutput;
19
+        return parent::getFailureMessage()."\n".$this->testOutput;
20 20
     }
21 21
 
22 22
     /**
Please login to merge, or discard this patch.