@@ -147,6 +147,6 @@ |
||
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 | } |
@@ -39,7 +39,7 @@ discard block |
||
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 |
||
47 | 47 | } |
48 | 48 | |
49 | 49 | /** |
50 | - * @return string[][] |
|
50 | + * @return string[] |
|
51 | 51 | */ |
52 | 52 | public function getOutputBuffer() |
53 | 53 | { |
@@ -30,8 +30,8 @@ |
||
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 | } |
@@ -17,7 +17,7 @@ |
||
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"; |
@@ -31,7 +31,7 @@ |
||
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) { |
@@ -40,7 +40,7 @@ discard block |
||
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 |
||
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 |
||
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; |
@@ -29,6 +29,6 @@ |
||
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 | } |
@@ -21,11 +21,11 @@ |
||
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; |
@@ -57,7 +57,7 @@ |
||
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 |