@@ -219,11 +219,11 @@ |
||
219 | 219 | public static function convertedBytesProvider() |
220 | 220 | { |
221 | 221 | return array( |
222 | - array(20000000, 2, '19.07M'), |
|
223 | - array(20000000, 3, '19.073M'), |
|
224 | - array(2000000000, 2, '1.86G'), |
|
225 | - array(2, 2, '2.00B'), |
|
226 | - array(2048, 2, '2.00K'), |
|
222 | + array(20000000, 2, '19.07M'), |
|
223 | + array(20000000, 3, '19.073M'), |
|
224 | + array(2000000000, 2, '1.86G'), |
|
225 | + array(2, 2, '2.00B'), |
|
226 | + array(2048, 2, '2.00K'), |
|
227 | 227 | ); |
228 | 228 | } |
229 | 229 | } |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @see http://ocramius.github.io/blog/automated-code-coverage-check-for-github-pull-requests-with-travis/ |
|
4 | - */ |
|
3 | + * @see http://ocramius.github.io/blog/automated-code-coverage-check-for-github-pull-requests-with-travis/ |
|
4 | + */ |
|
5 | 5 | |
6 | 6 | // coverage-checker.php |
7 | 7 | $inputFile = $argv[1]; |
@@ -5,7 +5,7 @@ discard block |
||
5 | 5 | |
6 | 6 | // coverage-checker.php |
7 | 7 | $inputFile = $argv[1]; |
8 | -$percentage = min(100, max(0, (int) $argv[2])); |
|
8 | +$percentage = min(100, max(0, (int)$argv[2])); |
|
9 | 9 | |
10 | 10 | if (!file_exists($inputFile)) { |
11 | 11 | throw new InvalidArgumentException( |
@@ -26,8 +26,8 @@ discard block |
||
26 | 26 | $checkedElements = 0; |
27 | 27 | |
28 | 28 | foreach ($metrics as $metric) { |
29 | - $totalElements += (int) $metric['elements']; |
|
30 | - $checkedElements += (int) $metric['coveredelements']; |
|
29 | + $totalElements += (int)$metric['elements']; |
|
30 | + $checkedElements += (int)$metric['coveredelements']; |
|
31 | 31 | } |
32 | 32 | |
33 | 33 | $coverage = ($checkedElements / $totalElements) * 100; |
@@ -9,6 +9,7 @@ |
||
9 | 9 | /** |
10 | 10 | * @param OutputInterface $output |
11 | 11 | * @param array $rows |
12 | + * @return void |
|
12 | 13 | */ |
13 | 14 | public function render(OutputInterface $output, array $rows); |
14 | 15 | } |
@@ -9,6 +9,7 @@ |
||
9 | 9 | /** |
10 | 10 | * @param OutputInterface $output |
11 | 11 | * @param array $rows |
12 | + * @return void |
|
12 | 13 | */ |
13 | 14 | public function render(OutputInterface $output, array $rows); |
14 | 15 | } |
@@ -51,7 +51,7 @@ |
||
51 | 51 | * |
52 | 52 | * @param Bootstrap $bootstrap |
53 | 53 | * @param \Exception $exception |
54 | - * @return bool |
|
54 | + * @return boolean|null |
|
55 | 55 | */ |
56 | 56 | public function catchException(Bootstrap $bootstrap, \Exception $exception) |
57 | 57 | { |
@@ -28,7 +28,7 @@ |
||
28 | 28 | ) |
29 | 29 | ); |
30 | 30 | |
31 | - $this->output->writeln('<info>Created file: <comment>' . $outFile .'<comment></info>'); |
|
31 | + $this->output->writeln('<info>Created file: <comment>' . $outFile . '<comment></info>'); |
|
32 | 32 | |
33 | 33 | return true; |
34 | 34 | } |
@@ -51,7 +51,7 @@ |
||
51 | 51 | * |
52 | 52 | * @param Bootstrap $bootstrap |
53 | 53 | * @param \Exception $exception |
54 | - * @return bool |
|
54 | + * @return boolean|null |
|
55 | 55 | */ |
56 | 56 | public function catchException(Bootstrap $bootstrap, \Exception $exception) |
57 | 57 | { |
@@ -28,7 +28,7 @@ |
||
28 | 28 | ) |
29 | 29 | ); |
30 | 30 | |
31 | - $this->output->writeln('<info>Created file: <comment>' . $outFile .'<comment></info>'); |
|
31 | + $this->output->writeln('<info>Created file: <comment>' . $outFile . '<comment></info>'); |
|
32 | 32 | |
33 | 33 | return true; |
34 | 34 | } |
@@ -51,7 +51,7 @@ |
||
51 | 51 | * |
52 | 52 | * @param Bootstrap $bootstrap |
53 | 53 | * @param \Exception $exception |
54 | - * @return bool |
|
54 | + * @return boolean|null |
|
55 | 55 | */ |
56 | 56 | public function catchException(Bootstrap $bootstrap, \Exception $exception) |
57 | 57 | { |
@@ -28,7 +28,7 @@ |
||
28 | 28 | ) |
29 | 29 | ); |
30 | 30 | |
31 | - $this->output->writeln('<info>Created file: <comment>' . $outFile .'<comment></info>'); |
|
31 | + $this->output->writeln('<info>Created file: <comment>' . $outFile . '<comment></info>'); |
|
32 | 32 | |
33 | 33 | return true; |
34 | 34 | } |
@@ -51,7 +51,7 @@ |
||
51 | 51 | * |
52 | 52 | * @param Bootstrap $bootstrap |
53 | 53 | * @param \Exception $exception |
54 | - * @return bool |
|
54 | + * @return boolean|null |
|
55 | 55 | */ |
56 | 56 | public function catchException(Bootstrap $bootstrap, \Exception $exception) |
57 | 57 | { |
@@ -28,7 +28,7 @@ |
||
28 | 28 | ) |
29 | 29 | ); |
30 | 30 | |
31 | - $this->output->writeln('<info>Created file: <comment>' . $outFile .'<comment></info>'); |
|
31 | + $this->output->writeln('<info>Created file: <comment>' . $outFile . '<comment></info>'); |
|
32 | 32 | |
33 | 33 | return true; |
34 | 34 | } |
@@ -51,7 +51,7 @@ |
||
51 | 51 | * |
52 | 52 | * @param Bootstrap $bootstrap |
53 | 53 | * @param \Exception $exception |
54 | - * @return bool |
|
54 | + * @return boolean|null |
|
55 | 55 | */ |
56 | 56 | public function catchException(Bootstrap $bootstrap, \Exception $exception) |
57 | 57 | { |