@@ -4,7 +4,6 @@ |
||
| 4 | 4 | namespace Paraunit\Coverage; |
| 5 | 5 | |
| 6 | 6 | use Paraunit\Lifecycle\ProcessEvent; |
| 7 | -use Paraunit\Process\AbstractParaunitProcess; |
|
| 8 | 7 | use Paraunit\Process\ParaunitProcessInterface; |
| 9 | 8 | use Paraunit\Proxy\Coverage\CodeCoverage; |
| 10 | 9 | |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Paraunit\Coverage; |
| 5 | 5 | |
@@ -292,6 +292,9 @@ |
||
| 292 | 292 | return $this->logDirectory; |
| 293 | 293 | } |
| 294 | 294 | |
| 295 | + /** |
|
| 296 | + * @param string $string |
|
| 297 | + */ |
|
| 295 | 298 | private function convertToUtf8($string): string |
| 296 | 299 | { |
| 297 | 300 | if (! $this->isUtf8($string)) { |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Paraunit\Parser\JSON; |
| 5 | 5 | |
@@ -174,7 +174,7 @@ discard block |
||
| 174 | 174 | $logFilename = $this->getLogFilename($suite); |
| 175 | 175 | |
| 176 | 176 | $logDir = dirname($logFilename); |
| 177 | - if (! @mkdir($logDir, 0777, true) && ! is_dir($logDir)) { |
|
| 177 | + if ( ! @mkdir($logDir, 0777, true) && ! is_dir($logDir)) { |
|
| 178 | 178 | throw new \RuntimeException('Cannot create folder for JSON logs'); |
| 179 | 179 | } |
| 180 | 180 | |
@@ -255,7 +255,7 @@ discard block |
||
| 255 | 255 | */ |
| 256 | 256 | public function writeArray($buffer) |
| 257 | 257 | { |
| 258 | - array_walk_recursive($buffer, function (&$input) { |
|
| 258 | + array_walk_recursive($buffer, function(&$input) { |
|
| 259 | 259 | if (is_string($input)) { |
| 260 | 260 | $input = $this->convertToUtf8($input); |
| 261 | 261 | } |
@@ -294,7 +294,7 @@ discard block |
||
| 294 | 294 | |
| 295 | 295 | private function convertToUtf8($string): string |
| 296 | 296 | { |
| 297 | - if (! $this->isUtf8($string)) { |
|
| 297 | + if ( ! $this->isUtf8($string)) { |
|
| 298 | 298 | if (\function_exists('mb_convert_encoding')) { |
| 299 | 299 | return \mb_convert_encoding($string, 'UTF-8'); |
| 300 | 300 | } |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Paraunit\Lifecycle; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Paraunit\Lifecycle; |
| 5 | 5 | |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | */ |
| 41 | 41 | public function get(string $contextParameterName) |
| 42 | 42 | { |
| 43 | - if (! $this->has($contextParameterName)) { |
|
| 43 | + if ( ! $this->has($contextParameterName)) { |
|
| 44 | 44 | throw new \LogicException('Cannot find parameter: ' . $contextParameterName); |
| 45 | 45 | } |
| 46 | 46 | |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Paraunit\Process; |
| 5 | 5 | |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Paraunit\File; |
| 5 | 5 | |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | return; |
| 80 | 80 | } |
| 81 | 81 | |
| 82 | - if (!mkdir($path) && !is_dir($path)) { |
|
| 82 | + if ( ! mkdir($path) && ! is_dir($path)) { |
|
| 83 | 83 | throw new \RuntimeException('Unable to create temporary directory ' . $path); |
| 84 | 84 | } |
| 85 | 85 | } |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Paraunit\File; |
| 5 | 5 | |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | */ |
| 48 | 48 | public static function cleanUpDir(string $dir): bool |
| 49 | 49 | { |
| 50 | - if (! file_exists($dir)) { |
|
| 50 | + if ( ! file_exists($dir)) { |
|
| 51 | 51 | return false; |
| 52 | 52 | } |
| 53 | 53 | |
@@ -1,5 +1,5 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Paraunit\Coverage; |
| 5 | 5 | |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | |
| 54 | 54 | private function coverageFileIsValid(string $tempFilename): bool |
| 55 | 55 | { |
| 56 | - if (! file_exists($tempFilename)) { |
|
| 56 | + if ( ! file_exists($tempFilename)) { |
|
| 57 | 57 | return false; |
| 58 | 58 | } |
| 59 | 59 | |
@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Paraunit\Coverage\Processor; |
| 5 | 5 | |