Completed
Push — master ( e546fc...9f6d8c )
by Julian
11s
created
src/Console/Testers/PHPUnit.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -163,7 +163,7 @@
 block discarded – undo
163 163
      * Require the bootstrap. If the file is specified, but does not exist
164 164
      * then an exception will be raised.
165 165
      *
166
-     * @param $file
166
+     * @param string $file
167 167
      *
168 168
      * @throws \RuntimeException
169 169
      */
Please login to merge, or discard this patch.
src/Logging/JUnit/Writer.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
      * Append a testsuite node to the given
106 106
      * root element.
107 107
      *
108
-     * @param $root
108
+     * @param \DOMElement $root
109 109
      * @param TestSuite $suite
110 110
      *
111 111
      * @return \DOMElement
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
      * Append a testcase node to the given testsuite
129 129
      * node.
130 130
      *
131
-     * @param $suiteNode
131
+     * @param \DOMElement $suiteNode
132 132
      * @param TestCase $case
133 133
      *
134 134
      * @return \DOMElement
@@ -155,9 +155,9 @@  discard block
 block discarded – undo
155 155
     /**
156 156
      * Append error or failure nodes to the given testcase node.
157 157
      *
158
-     * @param $caseNode
158
+     * @param \DOMElement $caseNode
159 159
      * @param $defects
160
-     * @param $type
160
+     * @param string $type
161 161
      */
162 162
     protected function appendDefects($caseNode, $defects, $type)
163 163
     {
Please login to merge, or discard this patch.
src/Logging/LogInterpreter.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
      * Flatten messages into a single collection
166 166
      * based on an accessor method.
167 167
      *
168
-     * @param $method
168
+     * @param string $method
169 169
      *
170 170
      * @return array
171 171
      */
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
      * Reduces a collection of readers down to a single
184 184
      * result based on an accessor.
185 185
      *
186
-     * @param $method
186
+     * @param string $method
187 187
      *
188 188
      * @return mixed
189 189
      */
Please login to merge, or discard this patch.
src/Logging/MetaProvider.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
     /**
46 46
      * Return a value as a float or integer.
47 47
      *
48
-     * @param $property
48
+     * @param string $property
49 49
      *
50 50
      * @return float|int
51 51
      */
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
     /**
60 60
      * Return messages for a given type.
61 61
      *
62
-     * @param $type
62
+     * @param string $type
63 63
      *
64 64
      * @return array
65 65
      */
Please login to merge, or discard this patch.
src/Parser/Parser.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -155,8 +155,8 @@
 block discarded – undo
155 155
     }
156 156
 
157 157
     /**
158
-     * @param $filename
159
-     * @param $className
158
+     * @param string $filename
159
+     * @param string $className
160 160
      *
161 161
      * @return bool
162 162
      */
Please login to merge, or discard this patch.
src/Runners/PHPUnit/ResultPrinter.php 1 patch
Doc Comments   +8 added lines, -2 removed lines patch added patch discarded remove patch
@@ -338,7 +338,7 @@  discard block
 block discarded – undo
338 338
      * @todo Skipped/Incomplete test tracking available only in functional mode for now
339 339
      *       or in regular mode but without group/exclude-group filters.
340 340
      *
341
-     * @param mixed $options
341
+     * @param Options $options
342 342
      *
343 343
      * @return bool
344 344
      */
@@ -415,7 +415,7 @@  discard block
 block discarded – undo
415 415
      * for a collection of errors or failures.
416 416
      *
417 417
      * @param array $defects
418
-     * @param $type
418
+     * @param string $type
419 419
      *
420 420
      * @return string
421 421
      */
@@ -507,6 +507,9 @@  discard block
 block discarded – undo
507 507
             ));
508 508
     }
509 509
 
510
+    /**
511
+     * @param string $text
512
+     */
510 513
     private function green($text)
511 514
     {
512 515
         if ($this->colors) {
@@ -518,6 +521,9 @@  discard block
 block discarded – undo
518 521
         return $text;
519 522
     }
520 523
 
524
+    /**
525
+     * @param string $text
526
+     */
521 527
     private function red($text)
522 528
     {
523 529
         if ($this->colors) {
Please login to merge, or discard this patch.
src/Runners/PHPUnit/SuiteLoader.php 1 patch
Doc Comments   +24 added lines patch added patch discarded remove patch
@@ -28,6 +28,9 @@  discard block
 block discarded – undo
28 28
      */
29 29
     public $options;
30 30
 
31
+    /**
32
+     * @param Options $options
33
+     */
31 34
     public function __construct($options = null)
32 35
     {
33 36
         if ($options && !$options instanceof Options) {
@@ -126,6 +129,9 @@  discard block
 block discarded – undo
126 129
         }
127 130
     }
128 131
 
132
+    /**
133
+     * @param ParsedClass $class
134
+     */
129 135
     private function executableTests($path, $class)
130 136
     {
131 137
         $executableTests = [];
@@ -170,6 +176,10 @@  discard block
 block discarded – undo
170 176
         return $batches;
171 177
     }
172 178
 
179
+    /**
180
+     * @param string $dependsOn
181
+     * @param string[] $tests
182
+     */
173 183
     private function addDependentTestsToBatchSet(&$batches, $dependsOn, $tests)
174 184
     {
175 185
         foreach ($batches as $key => $batch) {
@@ -182,6 +192,10 @@  discard block
 block discarded – undo
182 192
         }
183 193
     }
184 194
 
195
+    /**
196
+     * @param string[] $tests
197
+     * @param integer $maxBatchSize
198
+     */
185 199
     private function addTestsToBatchSet(&$batches, $tests, $maxBatchSize)
186 200
     {
187 201
         foreach ($tests as $test) {
@@ -273,6 +287,10 @@  discard block
 block discarded – undo
273 287
         return $result;
274 288
     }
275 289
 
290
+    /**
291
+     * @param string $className
292
+     * @param string $name
293
+     */
276 294
     private function testMatchOptions($className, $name, $group)
277 295
     {
278 296
         $result = $this->testMatchGroupOptions($group)
@@ -281,6 +299,9 @@  discard block
 block discarded – undo
281 299
         return $result;
282 300
     }
283 301
 
302
+    /**
303
+     * @param ParsedObject $method
304
+     */
284 305
     private function methodDataProvider($method)
285 306
     {
286 307
         if (preg_match("/@\bdataProvider\b \b(.*)\b/", $method->getDocBlock(), $matches)) {
@@ -295,6 +316,9 @@  discard block
 block discarded – undo
295 316
         }
296 317
     }
297 318
 
319
+    /**
320
+     * @param ParsedObject $method
321
+     */
298 322
     private function methodGroups($method)
299 323
     {
300 324
         if (preg_match_all("/@\bgroup\b \b(.*)\b/", $method->getDocBlock(), $matches)) {
Please login to merge, or discard this patch.
src/Runners/PHPUnit/TestFileLoader.php 1 patch
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,6 +43,9 @@  discard block
 block discarded – undo
43 43
      */
44 44
     protected $excludingFiles = false;
45 45
 
46
+    /**
47
+     * @param Options $options
48
+     */
46 49
     public function __construct($options = null)
47 50
     {
48 51
         if ($options && !$options instanceof Options) {
@@ -84,8 +87,8 @@  discard block
 block discarded – undo
84 87
      * Loads suites based on a specific path.
85 88
      * A valid path can be a directory or file.
86 89
      *
87
-     * @param $path
88
-     * @param $pattern
90
+     * @param string $path
91
+     * @param string $pattern
89 92
      *
90 93
      * @throws \InvalidArgumentException
91 94
      *
Please login to merge, or discard this patch.
src/Runners/PHPUnit/WrapperRunner.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -141,7 +141,7 @@
 block discarded – undo
141 141
      * Returns the output streams of a subset of workers.
142 142
      *
143 143
      * @param array    keys are positions in $this->workers
144
-     * @param mixed                          $workers
144
+     * @param Worker[]                          $workers
145 145
      *
146 146
      * @return array
147 147
      */
Please login to merge, or discard this patch.