@@ -2,10 +2,10 @@ |
||
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 | /** |
@@ -87,7 +87,7 @@ |
||
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 | * |
@@ -2,9 +2,9 @@ |
||
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 |
@@ -2,9 +2,9 @@ |
||
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; |
@@ -156,7 +156,7 @@ |
||
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 | */ |
@@ -2,13 +2,13 @@ |
||
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. |
@@ -73,7 +73,7 @@ discard block |
||
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 |
||
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) |
@@ -119,7 +119,7 @@ discard block |
||
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 |
||
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 | { |
@@ -2,8 +2,8 @@ |
||
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 |
@@ -35,6 +35,9 @@ |
||
35 | 35 | return 'type -P '.$program; |
36 | 36 | } |
37 | 37 | |
38 | + /** |
|
39 | + * @param string $exec |
|
40 | + */ |
|
38 | 41 | public function exec($exec, $sudo = false) |
39 | 42 | { |
40 | 43 | if ($sudo) { |
@@ -143,6 +143,7 @@ |
||
143 | 143 | |
144 | 144 | /** |
145 | 145 | * This internal method is used to create a process object. |
146 | + * @param string $command |
|
146 | 147 | */ |
147 | 148 | private static function getProcess($command, array $args = array(), array $options = array()) |
148 | 149 | { |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | /** |
35 | 35 | * Constructor. |
36 | 36 | * |
37 | - * @param Fabrica\Tools\Programs\Git\Repository $repository Repository of the commit |
|
37 | + * @param Repository $repository Repository of the commit |
|
38 | 38 | * @param string $hash Hash of the commit |
39 | 39 | */ |
40 | 40 | public function __construct(Repository $repository, $hash, array $data = array()) |
@@ -342,6 +342,9 @@ discard block |
||
342 | 342 | return $this; |
343 | 343 | } |
344 | 344 | |
345 | + /** |
|
346 | + * @param string $name |
|
347 | + */ |
|
345 | 348 | private function getData($name) |
346 | 349 | { |
347 | 350 | if (isset($this->data[$name])) { |