Completed
Push — master ( 704d5e...e278a7 )
by Ricardo
04:42
created
src/Tools/Plugin/Codeception.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
     /**
97 97
      * Try and find the codeception YML config file.
98 98
      *
99
-     * @param  $buildPath
99
+     * @param  string|null $buildPath
100 100
      * @return null|string
101 101
      */
102 102
     public static function findConfigFile($buildPath)
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
     /**
129 129
      * Run tests from a Codeception config file.
130 130
      *
131
-     * @return bool|mixed
131
+     * @return boolean
132 132
      * @throws \Exception
133 133
      */
134 134
     protected function runConfigFile()
Please login to merge, or discard this patch.
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2,12 +2,12 @@
 block discarded – undo
2 2
 
3 3
 namespace Fabrica\Tools\Plugin;
4 4
 
5
-use Fabrica\Tools\Builder;
6 5
 use Fabrica\Models\Infra\Ci\Build;
7
-use Fabrica\Tools\Plugin\Util\TestResultParsers\Codeception as Parser;
6
+use Fabrica\Tools\Builder;
8 7
 use Fabrica\Tools\Plugin;
9
-use Symfony\Component\Yaml\Parser as YamlParser;
8
+use Fabrica\Tools\Plugin\Util\TestResultParsers\Codeception as Parser;
10 9
 use Fabrica\Tools\ZeroConfigPluginInterface;
10
+use Symfony\Component\Yaml\Parser as YamlParser;
11 11
 
12 12
 /**
13 13
  * Codeception Plugin - Enables full acceptance, unit, and functional testing.
Please login to merge, or discard this patch.
src/Tools/Plugin/Irc.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -82,8 +82,8 @@  discard block
 block discarded – undo
82 82
 
83 83
     /**
84 84
      * @param  resource $socket
85
-     * @param  array    $commands
86
-     * @return bool
85
+     * @param  string[]    $commands
86
+     * @return boolean|null
87 87
      */
88 88
     private function executeIrcCommands($socket, array $commands)
89 89
     {
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
      *
112 112
      * @param  resource $socket
113 113
      * @param  string   $command
114
-     * @return bool
114
+     * @return boolean|null
115 115
      */
116 116
     private function executeIrcCommand($socket, $command)
117 117
     {
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@
 block discarded – undo
2 2
 
3 3
 namespace Fabrica\Tools\Plugin;
4 4
 
5
-use Fabrica\Tools\Builder;
6 5
 use Fabrica\Models\Infra\Ci\Build;
6
+use Fabrica\Tools\Builder;
7 7
 use Fabrica\Tools\Plugin;
8 8
 
9 9
 /**
Please login to merge, or discard this patch.
src/Tools/Plugin/Option/PhpUnitOptions.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
     protected $arguments = [];
29 29
 
30 30
     /**
31
-     * @param array  $options
31
+     * @param string[]  $options
32 32
      * @param string $location
33 33
      */
34 34
     public function __construct($options, $location)
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
     /**
41 41
      * Remove a command argument
42 42
      *
43
-     * @param $argumentName
43
+     * @param string $argumentName
44 44
      *
45 45
      * @return $this
46 46
      */
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
     /**
205 205
      * Get an option if defined
206 206
      *
207
-     * @param $optionName
207
+     * @param string $optionName
208 208
      *
209 209
      * @return string[]|string|null
210 210
      */
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
     /**
231 231
      * Ge the directory name where tests file reside
232 232
      *
233
-     * @return string|null
233
+     * @return string
234 234
      */
235 235
     public function getTestsPath()
236 236
     {
@@ -260,7 +260,7 @@  discard block
 block discarded – undo
260 260
     /**
261 261
      * Get options for a given argument
262 262
      *
263
-     * @param $argumentName
263
+     * @param string $argumentName
264 264
      *
265 265
      * @return string[] All the options for given argument
266 266
      */
Please login to merge, or discard this patch.
src/Tools/Plugin/Pahout.php 1 patch
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,10 +2,10 @@
 block discarded – undo
2 2
 
3 3
 namespace Fabrica\Tools\Plugin;
4 4
 
5
-use Fabrica\Tools;
6
-use Fabrica\Tools\Builder;
7 5
 use Fabrica\Models\Infra\Ci\Build;
8 6
 use Fabrica\Models\Infra\Ci\BuildError;
7
+use Fabrica\Tools;
8
+use Fabrica\Tools\Builder;
9 9
 use Fabrica\Tools\Plugin;
10 10
 
11 11
 /**
Please login to merge, or discard this patch.
src/Tools/Plugin/PhpCpd.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
     /**
88 88
      * Process the PHPCPD XML report.
89 89
      *
90
-     * @param $xmlString
90
+     * @param string $xmlString
91 91
      *
92 92
      * @return int
93 93
      *
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,9 +2,9 @@
 block discarded – undo
2 2
 
3 3
 namespace Fabrica\Tools\Plugin;
4 4
 
5
-use Fabrica\Tools\Builder;
6 5
 use Fabrica\Models\Infra\Ci\Build;
7 6
 use Fabrica\Models\Infra\Ci\BuildError;
7
+use Fabrica\Tools\Builder;
8 8
 use Fabrica\Tools\Plugin;
9 9
 use Fabrica\Tools\ZeroConfigPluginInterface;
10 10
 
Please login to merge, or discard this patch.
src/Tools/Plugin/PhpCsFixer.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,9 +2,9 @@
 block discarded – undo
2 2
 
3 3
 namespace Fabrica\Tools\Plugin;
4 4
 
5
-use Fabrica\Tools\Builder;
6 5
 use Fabrica\Models\Infra\Ci\Build;
7 6
 use Fabrica\Models\Infra\Ci\BuildError;
7
+use Fabrica\Tools\Builder;
8 8
 use Fabrica\Tools\Plugin;
9 9
 use SebastianBergmann\Diff\Line;
10 10
 use SebastianBergmann\Diff\Parser;
Please login to merge, or discard this patch.
src/Tools/Plugin/Util/Executor.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -156,7 +156,7 @@
 block discarded – undo
156 156
      * Execute the list of plugins found for a given testing stage.
157 157
      *
158 158
      * @param  $plugins
159
-     * @param  $stage
159
+     * @param  string $stage
160 160
      * @return bool
161 161
      * @throws \Exception
162 162
      */
Please login to merge, or discard this patch.
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,13 +2,13 @@
 block discarded – undo
2 2
 
3 3
 namespace Fabrica\Tools\Plugin\Util;
4 4
 
5
-use Fabrica\Tools\Store\Factory as StoreFactory;
6 5
 use Exception;
7 6
 use Fabrica\Helper\Lang;
8
-use Fabrica\Tools\Logging\BuildLogger;
9 7
 use Fabrica\Models\Infra\Ci\Build;
8
+use Fabrica\Tools\Logging\BuildLogger;
10 9
 use Fabrica\Tools\Plugin;
11 10
 use Fabrica\Tools\Store\BuildStore;
11
+use Fabrica\Tools\Store\Factory as StoreFactory;
12 12
 
13 13
 /**
14 14
  * Plugin Executor - Runs the configured plugins for a given build stage.
Please login to merge, or discard this patch.
src/Tools/Plugin/Util/Factory.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
      * @param string     $className
74 74
      * @param array|null $options
75 75
      *
76
-     * @return \PHPCensor\Plugin
76
+     * @return Plugin
77 77
      */
78 78
     public function buildPlugin($className, $options = [])
79 79
     {
@@ -140,8 +140,8 @@  discard block
 block discarded – undo
140 140
     /**
141 141
      * Get an internal resource ID.
142 142
      *
143
-     * @param  null $type
144
-     * @param  null $name
143
+     * @param  string|null $type
144
+     * @param  string|null $name
145 145
      * @return string
146 146
      */
147 147
     private function getInternalID($type = null, $name = null)
Please login to merge, or discard this patch.
src/Tools/Plugin/Util/TestResultParsers/Codeception.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
     /**
120 120
      * The time take to complete all tests
121 121
      *
122
-     * @return mixed
122
+     * @return integer
123 123
      */
124 124
     public function getTotalTimeTaken()
125 125
     {
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
     /**
130 130
      * A count of the test failures
131 131
      *
132
-     * @return mixed
132
+     * @return integer
133 133
      */
134 134
     public function getTotalFailures()
135 135
     {
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@
 block discarded – undo
2 2
 
3 3
 namespace Fabrica\Tools\Plugin\Util\TestResultParsers;
4 4
 
5
-use Fabrica\Tools\Builder;
6 5
 use Fabrica\Helper\Xml;
6
+use Fabrica\Tools\Builder;
7 7
 
8 8
 /**
9 9
  * Class Codeception
Please login to merge, or discard this patch.