@@ -176,7 +176,7 @@ |
||
| 176 | 176 | /** |
| 177 | 177 | * Return JsonFile. |
| 178 | 178 | * |
| 179 | - * @return JsonFile |
|
| 179 | + * @return Satooshi\Bundle\CoverallsV1Bundle\Entity\JsonFile|null |
|
| 180 | 180 | */ |
| 181 | 181 | public function getJsonFile() |
| 182 | 182 | { |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | /** |
| 25 | 25 | * Constructor. |
| 26 | 26 | * |
| 27 | - * @param GitCommand $gitCommand Git command |
|
| 27 | + * @param GitCommand $command Git command |
|
| 28 | 28 | */ |
| 29 | 29 | public function __construct(GitCommand $command) |
| 30 | 30 | { |
@@ -22,7 +22,6 @@ discard block |
||
| 22 | 22 | * |
| 23 | 23 | * @param string $coverallsYmlPath Path to .coveralls.yml. |
| 24 | 24 | * @param string $rootDir Path to project root directory. |
| 25 | - * @param InputInterface $input|null Input arguments. |
|
| 26 | 25 | * |
| 27 | 26 | * @return \Satooshi\Bundle\CoverallsV1Bundle\Config\Configuration |
| 28 | 27 | * |
@@ -82,7 +81,6 @@ discard block |
||
| 82 | 81 | * |
| 83 | 82 | * @param array $options Processed configuration. |
| 84 | 83 | * @param string $rootDir Path to project root directory. |
| 85 | - * @param InputInterface $input|null Input arguments. |
|
| 86 | 84 | * |
| 87 | 85 | * @return \Satooshi\Bundle\CoverallsV1Bundle\Config\Configuration |
| 88 | 86 | */ |
@@ -557,7 +557,7 @@ |
||
| 557 | 557 | /** |
| 558 | 558 | * Set git data. |
| 559 | 559 | * |
| 560 | - * @param array $git Git data. |
|
| 560 | + * @param Git $git Git data. |
|
| 561 | 561 | * |
| 562 | 562 | * @return \Satooshi\Bundle\CoverallsV1Bundle\Entity\JsonFile |
| 563 | 563 | */ |
@@ -85,7 +85,7 @@ |
||
| 85 | 85 | * @param int $statements Number of statements. |
| 86 | 86 | * @param int $coveredStatements Number of covered statements. |
| 87 | 87 | * |
| 88 | - * @return float |
|
| 88 | + * @return integer |
|
| 89 | 89 | */ |
| 90 | 90 | protected function calculateLineCoverage($statements, $coveredStatements) |
| 91 | 91 | { |
@@ -126,6 +126,9 @@ |
||
| 126 | 126 | } |
| 127 | 127 | } |
| 128 | 128 | |
| 129 | + /** |
|
| 130 | + * @param string $lines |
|
| 131 | + */ |
|
| 129 | 132 | protected function indent($lines) |
| 130 | 133 | { |
| 131 | 134 | return trim(str_replace("\n", "\n ", $lines)); |
@@ -98,6 +98,9 @@ |
||
| 98 | 98 | ]; |
| 99 | 99 | } |
| 100 | 100 | |
| 101 | + /** |
|
| 102 | + * @param string $content |
|
| 103 | + */ |
|
| 101 | 104 | private function createDOMDocument($content) |
| 102 | 105 | { |
| 103 | 106 | $document = new DOMDocument; |
@@ -354,6 +354,9 @@ |
||
| 354 | 354 | $this->assertEquals(array(true), $this->exporter->toArray(true)); |
| 355 | 355 | } |
| 356 | 356 | |
| 357 | + /** |
|
| 358 | + * @param string $string |
|
| 359 | + */ |
|
| 357 | 360 | private function trimNewline($string) |
| 358 | 361 | { |
| 359 | 362 | return preg_replace('/[ ]*\n/', "\n", $string); |
@@ -71,7 +71,7 @@ |
||
| 71 | 71 | /** |
| 72 | 72 | * @param string $path |
| 73 | 73 | * |
| 74 | - * @return bool|string |
|
| 74 | + * @return false|string |
|
| 75 | 75 | */ |
| 76 | 76 | private function getGitInformation($path) |
| 77 | 77 | { |