@@ -64,7 +64,7 @@ |
||
64 | 64 | /** |
65 | 65 | * Create CoverallsV1JobsCommand. |
66 | 66 | * |
67 | - * @return \Contrib\Bundle\CoverallsBundle\Console\CoverallsV1JobsCommand |
|
67 | + * @return CoverallsV1JobsCommand |
|
68 | 68 | */ |
69 | 69 | protected function createCoverallsV1JobsCommand() |
70 | 70 | { |
@@ -162,7 +162,7 @@ |
||
162 | 162 | /** |
163 | 163 | * Return JsonFile. |
164 | 164 | * |
165 | - * @return JsonFile |
|
165 | + * @return Contrib\Bundle\CoverallsV1Bundle\Entity\JsonFile|null |
|
166 | 166 | */ |
167 | 167 | public function getJsonFile() |
168 | 168 | { |
@@ -23,7 +23,7 @@ |
||
23 | 23 | /** |
24 | 24 | * Constructor. |
25 | 25 | * |
26 | - * @param GitCommand $gitCommand Git command |
|
26 | + * @param GitCommand $command Git command |
|
27 | 27 | */ |
28 | 28 | public function __construct(GitCommand $command) |
29 | 29 | { |
@@ -531,7 +531,7 @@ |
||
531 | 531 | /** |
532 | 532 | * Set git data. |
533 | 533 | * |
534 | - * @param array $git Git data. |
|
534 | + * @param Git $git Git data. |
|
535 | 535 | * @return Coveralls |
536 | 536 | */ |
537 | 537 | public function setGit(Git $git) |
@@ -84,7 +84,7 @@ |
||
84 | 84 | * |
85 | 85 | * @param integer $statements Number of statements. |
86 | 86 | * @param integer $coveredStatements Number of covered statements. |
87 | - * @return float |
|
87 | + * @return integer |
|
88 | 88 | */ |
89 | 89 | protected function calculateLineCoverage($statements, $coveredStatements) |
90 | 90 | { |
@@ -28,6 +28,9 @@ |
||
28 | 28 | return $config->setSrcDir($this->srcDir)->addCloverXmlPath($this->cloverXmlPath); |
29 | 29 | } |
30 | 30 | |
31 | + /** |
|
32 | + * @param Configuration $config |
|
33 | + */ |
|
31 | 34 | protected function createCiEnvVarsCollector($config = null) |
32 | 35 | { |
33 | 36 | if ($config === null) { |
@@ -133,6 +133,9 @@ discard block |
||
133 | 133 | |
134 | 134 | // custom assert |
135 | 135 | |
136 | + /** |
|
137 | + * @param string $runAt |
|
138 | + */ |
|
136 | 139 | protected function assertJsonFile($jsonFile, $serviceName, $serviceJobId, $repoToken, $git, $runAt) |
137 | 140 | { |
138 | 141 | $this->assertEquals($serviceName, $jsonFile->getServiceName()); |
@@ -142,6 +145,12 @@ discard block |
||
142 | 145 | $this->assertEquals($runAt, $jsonFile->getRunAt()); |
143 | 146 | } |
144 | 147 | |
148 | + /** |
|
149 | + * @param string $name |
|
150 | + * @param string $path |
|
151 | + * @param integer $fileLines |
|
152 | + * @param string $source |
|
153 | + */ |
|
145 | 154 | protected function assertSourceFile(SourceFile $sourceFile, $name, $path, $fileLines, array $coverage, $source) |
146 | 155 | { |
147 | 156 | $this->assertEquals($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(); |
@@ -2,7 +2,6 @@ |
||
2 | 2 | namespace Contrib\Bundle\CoverallsV1Bundle\Collector; |
3 | 3 | |
4 | 4 | use Contrib\Component\System\Git\GitCommand; |
5 | - |
|
6 | 5 | use Contrib\Bundle\CoverallsV1Bundle\Entity\Git\Git; |
7 | 6 | use Contrib\Bundle\CoverallsV1Bundle\Entity\Git\Commit; |
8 | 7 | use Contrib\Bundle\CoverallsV1Bundle\Entity\Git\Remote; |
@@ -129,6 +129,9 @@ |
||
129 | 129 | } |
130 | 130 | } |
131 | 131 | |
132 | + /** |
|
133 | + * @param string $lines |
|
134 | + */ |
|
132 | 135 | protected function indent($lines) |
133 | 136 | { |
134 | 137 | return trim(str_replace("\n", "\n ", $lines)); |