Completed
Push — output_parsers_refactor ( d2cb12...a7c18a )
by Alessandro
03:46
created
src/Paraunit/Process/ParaunitProcessAbstract.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -147,6 +147,6 @@
 block discarded – undo
147 147
      */
148 148
     public function isEmpty()
149 149
     {
150
-        return (bool) count($this->filename);
150
+        return (bool)count($this->filename);
151 151
     }
152 152
 }
Please login to merge, or discard this patch.
src/Paraunit/Printer/OutputContainer.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
     }
40 40
 
41 41
     /**
42
-     * @return string[]
42
+     * @return integer[]
43 43
      */
44 44
     public function getFileNames()
45 45
     {
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
     }
48 48
 
49 49
     /**
50
-     * @return string[][]
50
+     * @return string[]
51 51
      */
52 52
     public function getOutputBuffer()
53 53
     {
Please login to merge, or discard this patch.
src/Paraunit/Printer/SharkPrinter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,8 +30,8 @@
 block discarded – undo
30 30
 
31 31
         $outputInterface->writeln('');
32 32
         $outputInterface->writeln(
33
-            'PARAUNIT v' .
34
-            Paraunit::PARAUNIT_VERSION .
33
+            'PARAUNIT v'.
34
+            Paraunit::PARAUNIT_VERSION.
35 35
             ' - by Francesco Panina, Alessandro Lai & Shark Dev Team @ Facile.it'
36 36
         );
37 37
     }
Please login to merge, or discard this patch.
src/Paraunit/Printer/DebugPrinter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
     public static function printDebugOutput(ParaunitProcessInterface $launchedProcess, array $runningStack)
18 18
     {
19 19
         echo "\n New running stack:";
20
-        echo "\n STARTED :" . $launchedProcess->getCommandLine();
20
+        echo "\n STARTED :".$launchedProcess->getCommandLine();
21 21
         echo "\n --------";
22 22
         foreach ($runningStack as $processRunning) {
23 23
             echo "\n";
Please login to merge, or discard this patch.
src/Paraunit/Printer/ProcessPrinter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
         $this->output = $processEvent->get('output_interface');
32 32
 
33 33
         if ( ! $this->output instanceof OutputInterface) {
34
-            throw new \BadMethodCallException('output_interface, unexpected type: ' . get_class($this->output));
34
+            throw new \BadMethodCallException('output_interface, unexpected type: '.get_class($this->output));
35 35
         }
36 36
 
37 37
         switch (true) {
Please login to merge, or discard this patch.
src/Paraunit/Configuration/Paraunit.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
     {
41 41
         $containerBuilder = new ContainerBuilder();
42 42
 
43
-        $loader = new YamlFileLoader($containerBuilder, new FileLocator(__DIR__ . '/../Resources/config/'));
43
+        $loader = new YamlFileLoader($containerBuilder, new FileLocator(__DIR__.'/../Resources/config/'));
44 44
         $loader->load('services.yml');
45 45
         $loader->load('parser.yml');
46 46
         $loader->load('configuration.yml');
@@ -65,10 +65,10 @@  discard block
 block discarded – undo
65 65
      */
66 66
     public function getTempDirForThisExecution()
67 67
     {
68
-        $dir = self::getTempBaseDir() . DIRECTORY_SEPARATOR . $this->timestamp;
68
+        $dir = self::getTempBaseDir().DIRECTORY_SEPARATOR.$this->timestamp;
69 69
         self::mkdirIfNotExists($dir);
70
-        self::mkdirIfNotExists($dir . DIRECTORY_SEPARATOR . 'logs');
71
-        self::mkdirIfNotExists($dir . DIRECTORY_SEPARATOR . 'coverage');
70
+        self::mkdirIfNotExists($dir.DIRECTORY_SEPARATOR.'logs');
71
+        self::mkdirIfNotExists($dir.DIRECTORY_SEPARATOR.'coverage');
72 72
 
73 73
         return $dir;
74 74
     }
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
     {
81 81
         foreach (self::$tempDirs as $directory) {
82 82
             if (file_exists($directory)) {
83
-                $baseDir = $directory . DIRECTORY_SEPARATOR . 'paraunit';
83
+                $baseDir = $directory.DIRECTORY_SEPARATOR.'paraunit';
84 84
                 self::mkdirIfNotExists($baseDir);
85 85
 
86 86
                 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
@@ -29,6 +29,6 @@
 block discarded – undo
29 29
 
30 30
     public function generateFromUniqueId($uniqueId)
31 31
     {
32
-        return $this->configuration->getTempDirForThisExecution() . '/logs/' . $uniqueId . '.json.log';
32
+        return $this->configuration->getTempDirForThisExecution().'/logs/'.$uniqueId.'.json.log';
33 33
     }
34 34
 }
Please login to merge, or discard this patch.
src/Paraunit/Configuration/PHPUnitConfigFile.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,11 +21,11 @@
 block discarded – undo
21 21
         }
22 22
 
23 23
         $configFile = is_dir($inputPathOrFileName)
24
-            ? $inputPathOrFileName . DIRECTORY_SEPARATOR . self::DEFAULT_FILE_NAME
24
+            ? $inputPathOrFileName.DIRECTORY_SEPARATOR.self::DEFAULT_FILE_NAME
25 25
             : $inputPathOrFileName;
26 26
 
27 27
         if ( ! is_file($configFile) || ! is_readable($configFile)) {
28
-            throw new \InvalidArgumentException('Config file ' . $configFile . ' does not exist or is not readable');
28
+            throw new \InvalidArgumentException('Config file '.$configFile.' does not exist or is not readable');
29 29
         }
30 30
 
31 31
         $this->configFile = $configFile;
Please login to merge, or discard this patch.
src/Paraunit/Lifecycle/ProcessEvent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
      */
58 58
     public function get($contextParameterName)
59 59
     {
60
-        if (!$this->has($contextParameterName)) {
60
+        if ( ! $this->has($contextParameterName)) {
61 61
             throw new \LogicException('Cannot find parameter: '.$contextParameterName);
62 62
         }
63 63
 
Please login to merge, or discard this patch.