Completed
Pull Request — master (#96)
by Deven
28:46
created
php-coveralls/src/Contrib/Bundle/CoverallsBundle/Console/Application.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
satooshi/php-coveralls/src/Contrib/Bundle/CoverallsV1Bundle/Api/Jobs.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -162,7 +162,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/Contrib/Bundle/CoverallsV1Bundle/Collector/GitInfoCollector.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
php-coveralls/src/Contrib/Bundle/CoverallsV1Bundle/Entity/JsonFile.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -531,7 +531,7 @@
 block discarded – undo
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)
Please login to merge, or discard this patch.
php-coveralls/src/Contrib/Bundle/CoverallsV1Bundle/Entity/Metrics.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
tests/Contrib/Bundle/CoverallsV1Bundle/Collector/CiEnvVarsCollectorTest.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -28,6 +28,9 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
Bundle/CoverallsV1Bundle/Collector/CloverXmlCoverageCollectorTest.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -133,6 +133,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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());
Please login to merge, or discard this patch.
tests/Contrib/Bundle/CoverallsV1Bundle/Collector/GitInfoCollectorTest.php 2 patches
Doc Comments   +11 added lines patch added patch discarded remove patch
@@ -42,6 +42,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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();
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
vendor/sebastian/comparator/src/ArrayComparator.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -129,6 +129,9 @@
 block discarded – undo
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));
Please login to merge, or discard this patch.