Completed
Pull Request — master (#261)
by Filippo
02:41
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/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.
src/Logging/JUnit/Reader.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -40,6 +40,9 @@
 block discarded – undo
40 40
         'time' => 0,
41 41
     ];
42 42
 
43
+    /**
44
+     * @param string $logFile
45
+     */
43 46
     public function __construct($logFile)
44 47
     {
45 48
         if (!file_exists($logFile)) {
Please login to merge, or discard this patch.