@@ -65,7 +65,7 @@ |
||
65 | 65 | /** |
66 | 66 | * Create CoverallsV1JobsCommand. |
67 | 67 | * |
68 | - * @return \Satooshi\Bundle\CoverallsBundle\Console\CoverallsV1JobsCommand |
|
68 | + * @return CoverallsV1JobsCommand |
|
69 | 69 | */ |
70 | 70 | protected function createCoverallsV1JobsCommand() |
71 | 71 | { |
@@ -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 | * |
@@ -92,7 +91,6 @@ discard block |
||
92 | 91 | * |
93 | 92 | * @param array $options Processed configuration. |
94 | 93 | * @param string $rootDir Path to project root directory. |
95 | - * @param InputInterface $input|null Input arguments. |
|
96 | 94 | * |
97 | 95 | * @return \Satooshi\Bundle\CoverallsV1Bundle\Config\Configuration |
98 | 96 | */ |
@@ -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 | { |
@@ -27,6 +27,9 @@ |
||
27 | 27 | ->addCloverXmlPath($this->cloverXmlPath); |
28 | 28 | } |
29 | 29 | |
30 | + /** |
|
31 | + * @param Configuration $config |
|
32 | + */ |
|
30 | 33 | protected function createCiEnvVarsCollector($config = null) |
31 | 34 | { |
32 | 35 | if ($config === null) { |
@@ -202,6 +202,9 @@ discard block |
||
202 | 202 | |
203 | 203 | // custom assert |
204 | 204 | |
205 | + /** |
|
206 | + * @param string $runAt |
|
207 | + */ |
|
205 | 208 | protected function assertJsonFile($jsonFile, $serviceName, $serviceJobId, $repoToken, $git, $runAt) |
206 | 209 | { |
207 | 210 | $this->assertSame($serviceName, $jsonFile->getServiceName()); |
@@ -211,6 +214,12 @@ discard block |
||
211 | 214 | $this->assertSame($runAt, $jsonFile->getRunAt()); |
212 | 215 | } |
213 | 216 | |
217 | + /** |
|
218 | + * @param string $name |
|
219 | + * @param string $path |
|
220 | + * @param integer $fileLines |
|
221 | + * @param string $source |
|
222 | + */ |
|
214 | 223 | protected function assertSourceFile(SourceFile $sourceFile, $name, $path, $fileLines, array $coverage, $source) |
215 | 224 | { |
216 | 225 | $this->assertSame($name, $sourceFile->getName()); |
@@ -42,6 +42,9 @@ discard block |
||
42 | 42 | return $this->getMock($class); |
43 | 43 | } |
44 | 44 | |
45 | + /** |
|
46 | + * @return GitCommand |
|
47 | + */ |
|
45 | 48 | protected function createGitCommandStubWith($getBranchesValue, $getHeadCommitValue, $getRemotesValue) |
46 | 49 | { |
47 | 50 | $stub = $this->createGitCommandStub(); |
@@ -53,6 +56,11 @@ discard block |
||
53 | 56 | return $stub; |
54 | 57 | } |
55 | 58 | |
59 | + /** |
|
60 | + * @param string[] $getBranchesValue |
|
61 | + * |
|
62 | + * @return GitCommand |
|
63 | + */ |
|
56 | 64 | protected function createGitCommandStubCalledBranches($getBranchesValue, $getHeadCommitValue, $getRemotesValue) |
57 | 65 | { |
58 | 66 | $stub = $this->createGitCommandStub(); |
@@ -64,6 +72,9 @@ discard block |
||
64 | 72 | return $stub; |
65 | 73 | } |
66 | 74 | |
75 | + /** |
|
76 | + * @return GitCommand |
|
77 | + */ |
|
67 | 78 | protected function createGitCommandStubCalledHeadCommit($getBranchesValue, $getHeadCommitValue, $getRemotesValue) |
68 | 79 | { |
69 | 80 | $stub = $this->createGitCommandStub(); |