@@ -65,7 +65,7 @@ |
||
65 | 65 | 'notests' => $collector->getShadowCount(), |
66 | 66 | 'covered_score' => $detectionRateTested, |
67 | 67 | 'combined_score' => $detectionRateAll, |
68 | - 'mutation_coverage' => (100 - $uncoveredRate) |
|
68 | + 'mutation_coverage' => (100-$uncoveredRate) |
|
69 | 69 | ] |
70 | 70 | ]; |
71 | 71 |
@@ -62,7 +62,7 @@ |
||
62 | 62 | $this->mutantGenerator = $mutantGenerator; |
63 | 63 | $this->processBuilder = $processBuilder; |
64 | 64 | |
65 | - $this->threadCount = max((int)$threadCount, 1); |
|
65 | + $this->threadCount = max((int) $threadCount, 1); |
|
66 | 66 | $this->baseDirectory = $baseDirectory; |
67 | 67 | } |
68 | 68 |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | */ |
25 | 25 | public function add(Mutable $mutable, $index, Mutation $mutation) |
26 | 26 | { |
27 | - $this->mutations[] = [ $mutable, $index, $mutation ]; |
|
27 | + $this->mutations[] = [$mutable, $index, $mutation]; |
|
28 | 28 | } |
29 | 29 | |
30 | 30 | /** |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | list(, $index, $mutation) = $data; |
54 | 54 | |
55 | 55 | $batches[] = [ |
56 | - [ $index, $mutation ] |
|
56 | + [$index, $mutation] |
|
57 | 57 | ]; |
58 | 58 | } |
59 | 59 |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | */ |
121 | 121 | public function getMeasurableTotal() |
122 | 122 | { |
123 | - return $this->totalCount - $this->shadowCount; |
|
123 | + return $this->totalCount-$this->shadowCount; |
|
124 | 124 | } |
125 | 125 | |
126 | 126 | /** |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | */ |
129 | 129 | public function getVanquishedTotal() |
130 | 130 | { |
131 | - return $this->killedCount + $this->timeoutCount + $this->errorCount; |
|
131 | + return $this->killedCount+$this->timeoutCount+$this->errorCount; |
|
132 | 132 | } |
133 | 133 | |
134 | 134 | /** |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | public function get($option) |
60 | 60 | { |
61 | 61 | if (!array_key_exists($option, $this->inputOptions)) { |
62 | - throw new \InvalidArgumentException('Option "'. $option . ' not exists'); |
|
62 | + throw new \InvalidArgumentException('Option "' . $option . ' not exists'); |
|
63 | 63 | } |
64 | 64 | |
65 | 65 | return $this->inputOptions[$option]; |
@@ -196,7 +196,7 @@ discard block |
||
196 | 196 | { |
197 | 197 | $dir = rtrim($dir, ' \\/'); |
198 | 198 | if (!is_dir($dir) || !is_readable($dir)) { |
199 | - throw new InvalidArgumentException('Invalid cache directory: "'.$dir.'"'); |
|
199 | + throw new InvalidArgumentException('Invalid cache directory: "' . $dir . '"'); |
|
200 | 200 | } |
201 | 201 | $this->tempDirectory = $dir; |
202 | 202 | return $this; |
@@ -49,7 +49,7 @@ |
||
49 | 49 | $this->output->write($string, false, $this->type); |
50 | 50 | } |
51 | 51 | if ($this->useBuffer === true) { |
52 | - $this->buffer .= strip_tags($string) . ($eol? PHP_EOL : ''); |
|
52 | + $this->buffer .= strip_tags($string) . ($eol ? PHP_EOL : ''); |
|
53 | 53 | } |
54 | 54 | } |
55 | 55 |
@@ -31,7 +31,7 @@ |
||
31 | 31 | { |
32 | 32 | $probable = ['composer', 'composer.phar']; |
33 | 33 | $finder = new ExecutableFinder; |
34 | - $immediatePaths = [getcwd(), realpath(getcwd().'/../'), realpath(getcwd().'/../../')]; |
|
34 | + $immediatePaths = [getcwd(), realpath(getcwd() . '/../'), realpath(getcwd() . '/../../')]; |
|
35 | 35 | foreach ($probable as $name) { |
36 | 36 | if ($path = $finder->find($name, null, $immediatePaths)) { |
37 | 37 | return $path; |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | $jsonLogFile = $this->getJsonLogFile($input, $output); |
63 | 63 | |
64 | 64 | if (!$this->isGenerationConfirmed($input, $output)) { |
65 | - $output->writeln('<fg=red>Aborted.</fg=red>' .PHP_EOL); |
|
65 | + $output->writeln('<fg=red>Aborted.</fg=red>' . PHP_EOL); |
|
66 | 66 | return 0; |
67 | 67 | } |
68 | 68 | |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | private function createFrameworkConfigurationQuestion(ConfigurationLocator $configurationLocator) |
196 | 196 | { |
197 | 197 | $frameworkConfigurationQuestion = new Question('Where is your phpunit.xml(.dist) configuration located? : '); |
198 | - $frameworkConfigurationQuestion->setValidator(function ($answer) use ($configurationLocator) { |
|
198 | + $frameworkConfigurationQuestion->setValidator(function($answer) use ($configurationLocator) { |
|
199 | 199 | $answer = trim($answer); |
200 | 200 | |
201 | 201 | if (!$answer) { |
@@ -241,7 +241,7 @@ discard block |
||
241 | 241 | private function createSourceQuestion($question) |
242 | 242 | { |
243 | 243 | $sourceQuestion = new Question($question); |
244 | - $sourceQuestion->setValidator(function ($answer) { |
|
244 | + $sourceQuestion->setValidator(function($answer) { |
|
245 | 245 | if (trim($answer) && !is_dir($answer)) { |
246 | 246 | throw new RuntimeException(sprintf('Could not find "%s" directory.', $answer)); |
247 | 247 | } |
@@ -271,12 +271,12 @@ discard block |
||
271 | 271 | private function createTimeoutQuestion() |
272 | 272 | { |
273 | 273 | $timeoutQuestion = new Question('Single test suite timeout in seconds [10] : ', 10); |
274 | - $timeoutQuestion->setValidator(function ($answer) { |
|
274 | + $timeoutQuestion->setValidator(function($answer) { |
|
275 | 275 | if (!$answer || !is_numeric($answer) || (int) $answer <= 0) { |
276 | 276 | throw new RuntimeException('Timeout should be an integer greater than 0'); |
277 | 277 | } |
278 | 278 | |
279 | - return (int)$answer; |
|
279 | + return (int) $answer; |
|
280 | 280 | }); |
281 | 281 | return $timeoutQuestion; |
282 | 282 | } |
@@ -28,11 +28,11 @@ |
||
28 | 28 | public function __construct() |
29 | 29 | { |
30 | 30 | $pharVersion = '@package_version@'; |
31 | - if ($pharVersion !== '@'.'package_version'.'@') { |
|
32 | - parent::__construct(self::$logo.PHP_EOL.self::NAME, $pharVersion); |
|
31 | + if ($pharVersion !== '@' . 'package_version' . '@') { |
|
32 | + parent::__construct(self::$logo . PHP_EOL . self::NAME, $pharVersion); |
|
33 | 33 | return; |
34 | 34 | } |
35 | - parent::__construct(self::$logo.PHP_EOL.self::NAME, self::VERSION); |
|
35 | + parent::__construct(self::$logo . PHP_EOL . self::NAME, self::VERSION); |
|
36 | 36 | } |
37 | 37 | |
38 | 38 | /** |