Test Failed
Push — develop ( 38bc20...a43681 )
by Àlex
05:29
created
PHPCI/Builder.php 3 patches
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -145,6 +145,7 @@  discard block
 block discarded – undo
145 145
     /**
146 146
      * Access a variable from the phpci.yml file.
147 147
      * @param string
148
+     * @param string $key
148 149
      * @return mixed
149 150
      */
150 151
     public function getConfig($key)
@@ -160,7 +161,7 @@  discard block
 block discarded – undo
160 161
 
161 162
     /**
162 163
      * Access a variable from the config.yml
163
-     * @param $key
164
+     * @param string $key
164 165
      * @return mixed
165 166
      */
166 167
     public function getSystemConfig($key)
@@ -357,6 +358,7 @@  discard block
 block discarded – undo
357 358
    /**
358 359
      * Add a success-coloured message to the log.
359 360
      * @param string
361
+     * @param string $message
360 362
      */
361 363
     public function logSuccess($message)
362 364
     {
Please login to merge, or discard this patch.
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * PHPCI - Continuous Integration for PHP.
4
- *
5
- * @copyright    Copyright 2014, Block 8 Limited.
6
- * @license      https://github.com/Block8/PHPCI/blob/master/LICENSE.md
7
- *
8
- * @link         https://www.phptesting.org/
9
- */
3
+     * PHPCI - Continuous Integration for PHP.
4
+     *
5
+     * @copyright    Copyright 2014, Block 8 Limited.
6
+     * @license      https://github.com/Block8/PHPCI/blob/master/LICENSE.md
7
+     *
8
+     * @link         https://www.phptesting.org/
9
+     */
10 10
 
11 11
 namespace PHPCI;
12 12
 
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -402,7 +402,7 @@  discard block
 block discarded – undo
402 402
 
403 403
         $self = $this;
404 404
         $pluginFactory->registerResource(
405
-            function () use ($self) {
405
+            function() use ($self) {
406 406
                 return $self;
407 407
             },
408 408
             null,
@@ -410,7 +410,7 @@  discard block
 block discarded – undo
410 410
         );
411 411
 
412 412
         $pluginFactory->registerResource(
413
-            function () use ($build) {
413
+            function() use ($build) {
414 414
                 return $build;
415 415
             },
416 416
             null,
@@ -419,7 +419,7 @@  discard block
 block discarded – undo
419 419
 
420 420
         $logger = $this->logger;
421 421
         $pluginFactory->registerResource(
422
-            function () use ($logger) {
422
+            function() use ($logger) {
423 423
                 return $logger;
424 424
             },
425 425
             null,
@@ -427,7 +427,7 @@  discard block
 block discarded – undo
427 427
         );
428 428
 
429 429
         $pluginFactory->registerResource(
430
-            function () use ($self) {
430
+            function() use ($self) {
431 431
                 $factory = new MailerFactory($self->getSystemConfig('phpci'));
432 432
 
433 433
                 return $factory->getSwiftMailerFromConfig();
Please login to merge, or discard this patch.
PHPCI/Command/RunCommand.php 3 patches
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -135,11 +135,17 @@
 block discarded – undo
135 135
         return $builds;
136 136
     }
137 137
 
138
+    /**
139
+     * @param integer $numBuilds
140
+     */
138 141
     public function setMaxBuilds($numBuilds)
139 142
     {
140 143
         $this->maxBuilds = (int)$numBuilds;
141 144
     }
142 145
 
146
+    /**
147
+     * @param boolean $fromDaemon
148
+     */
143 149
     public function setDaemon($fromDaemon)
144 150
     {
145 151
         $this->isFromDaemon = (bool)$fromDaemon;
Please login to merge, or discard this patch.
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * PHPCI - Continuous Integration for PHP.
4
- *
5
- * @copyright    Copyright 2014, Block 8 Limited.
6
- * @license      https://github.com/Block8/PHPCI/blob/master/LICENSE.md
7
- *
8
- * @link         https://www.phptesting.org/
9
- */
3
+     * PHPCI - Continuous Integration for PHP.
4
+     *
5
+     * @copyright    Copyright 2014, Block 8 Limited.
6
+     * @license      https://github.com/Block8/PHPCI/blob/master/LICENSE.md
7
+     *
8
+     * @link         https://www.phptesting.org/
9
+     */
10 10
 
11 11
 namespace PHPCI\Command;
12 12
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -136,12 +136,12 @@
 block discarded – undo
136 136
 
137 137
     public function setMaxBuilds($numBuilds)
138 138
     {
139
-        $this->maxBuilds = (int) $numBuilds;
139
+        $this->maxBuilds = (int)$numBuilds;
140 140
     }
141 141
 
142 142
     public function setDaemon($fromDaemon)
143 143
     {
144
-        $this->isFromDaemon = (bool) $fromDaemon;
144
+        $this->isFromDaemon = (bool)$fromDaemon;
145 145
     }
146 146
 
147 147
     protected function validateRunningBuilds()
Please login to merge, or discard this patch.
PHPCI/Controller/ProjectController.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -405,7 +405,7 @@
 block discarded – undo
405 405
     /**
406 406
      * Get the validator to use to check project references.
407 407
      * @param $values
408
-     * @return callable
408
+     * @return \Closure
409 409
      */
410 410
     protected function getReferenceValidator($values)
411 411
     {
Please login to merge, or discard this patch.
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * PHPCI - Continuous Integration for PHP.
4
- *
5
- * @copyright    Copyright 2014, Block 8 Limited.
6
- * @license      https://github.com/Block8/PHPCI/blob/master/LICENSE.md
7
- *
8
- * @link         https://www.phptesting.org/
9
- */
3
+     * PHPCI - Continuous Integration for PHP.
4
+     *
5
+     * @copyright    Copyright 2014, Block 8 Limited.
6
+     * @license      https://github.com/Block8/PHPCI/blob/master/LICENSE.md
7
+     *
8
+     * @link         https://www.phptesting.org/
9
+     */
10 10
 
11 11
 namespace PHPCI\Controller;
12 12
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -420,7 +420,7 @@
 block discarded – undo
420 420
      */
421 421
     protected function getReferenceValidator($values)
422 422
     {
423
-        return function ($val) use ($values) {
423
+        return function($val) use ($values) {
424 424
             $type = $values['type'];
425 425
 
426 426
             $validators = array(
Please login to merge, or discard this patch.
PHPCI/Controller/WebhookController.php 2 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -163,7 +163,6 @@
 block discarded – undo
163 163
      *
164 164
      * @param Project $project
165 165
      * @param array $payload
166
-     * @param b8\Http\Response\JsonResponse $response
167 166
      *
168 167
      * @return b8\Http\Response\JsonResponse
169 168
      */
Please login to merge, or discard this patch.
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * PHPCI - Continuous Integration for PHP.
4
- *
5
- * @copyright    Copyright 2014-2015, Block 8 Limited.
6
- * @license      https://github.com/Block8/PHPCI/blob/master/LICENSE.md
7
- *
8
- * @link         https://www.phptesting.org/
9
- */
3
+     * PHPCI - Continuous Integration for PHP.
4
+     *
5
+     * @copyright    Copyright 2014-2015, Block 8 Limited.
6
+     * @license      https://github.com/Block8/PHPCI/blob/master/LICENSE.md
7
+     *
8
+     * @link         https://www.phptesting.org/
9
+     */
10 10
 
11 11
 namespace PHPCI\Controller;
12 12
 
Please login to merge, or discard this patch.
PHPCI/Helper/Github.php 2 patches
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 {
22 22
     /**
23 23
      * Make a request to the Github API.
24
-     * @param $url
24
+     * @param string $url
25 25
      * @param $params
26 26
      * @return mixed
27 27
      */
@@ -105,11 +105,11 @@  discard block
 block discarded – undo
105 105
 
106 106
     /**
107 107
      * Create a comment on a specific file (and commit) in a Github Pull Request.
108
-     * @param $repo
108
+     * @param string $repo
109 109
      * @param $pullId
110
-     * @param $commitId
110
+     * @param string $commitId
111 111
      * @param $file
112
-     * @param $line
112
+     * @param integer $line
113 113
      * @param $comment
114 114
      * @return null
115 115
      */
@@ -141,10 +141,10 @@  discard block
 block discarded – undo
141 141
 
142 142
     /**
143 143
      * Create a comment on a Github commit.
144
-     * @param $repo
145
-     * @param $commitId
144
+     * @param string $repo
145
+     * @param string $commitId
146 146
      * @param $file
147
-     * @param $line
147
+     * @param integer $line
148 148
      * @param $comment
149 149
      * @return null
150 150
      */
Please login to merge, or discard this patch.
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * PHPCI - Continuous Integration for PHP.
4
- *
5
- * @copyright    Copyright 2014, Block 8 Limited.
6
- * @license      https://github.com/Block8/PHPCI/blob/master/LICENSE.md
7
- *
8
- * @link         https://www.phptesting.org/
9
- */
3
+     * PHPCI - Continuous Integration for PHP.
4
+     *
5
+     * @copyright    Copyright 2014, Block 8 Limited.
6
+     * @license      https://github.com/Block8/PHPCI/blob/master/LICENSE.md
7
+     *
8
+     * @link         https://www.phptesting.org/
9
+     */
10 10
 
11 11
 namespace PHPCI\Helper;
12 12
 
Please login to merge, or discard this patch.
PHPCI/Helper/Lang.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
     /**
26 26
      * Get a specific string from the language file.
27 27
      *
28
-     * @param $string
28
+     * @param string $string
29 29
      * @return mixed|string
30 30
      */
31 31
     public static function get($string)
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
     /**
52 52
      * Get the currently active language.
53 53
      *
54
-     * @return string|null
54
+     * @return string
55 55
      */
56 56
     public static function getLanguage()
57 57
     {
Please login to merge, or discard this patch.
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * PHPCI - Continuous Integration for PHP.
4
- *
5
- * @copyright    Copyright 2014, Block 8 Limited.
6
- * @license      https://github.com/Block8/PHPCI/blob/master/LICENSE.md
7
- *
8
- * @link         https://www.phptesting.org/
9
- */
3
+     * PHPCI - Continuous Integration for PHP.
4
+     *
5
+     * @copyright    Copyright 2014, Block 8 Limited.
6
+     * @license      https://github.com/Block8/PHPCI/blob/master/LICENSE.md
7
+     *
8
+     * @link         https://www.phptesting.org/
9
+     */
10 10
 
11 11
 namespace PHPCI\Helper;
12 12
 
Please login to merge, or discard this patch.
PHPCI/Helper/MailerFactory.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
 
62 62
     /**
63 63
      * Return a specific configuration value by key.
64
-     * @param $configName
64
+     * @param string $configName
65 65
      * @return null|string
66 66
      */
67 67
     public function getMailConfig($configName)
Please login to merge, or discard this patch.
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * PHPCI - Continuous Integration for PHP.
4
- *
5
- * @copyright    Copyright 2014, Block 8 Limited.
6
- * @license      https://github.com/Block8/PHPCI/blob/master/LICENSE.md
7
- *
8
- * @link         https://www.phptesting.org/
9
- */
3
+     * PHPCI - Continuous Integration for PHP.
4
+     *
5
+     * @copyright    Copyright 2014, Block 8 Limited.
6
+     * @license      https://github.com/Block8/PHPCI/blob/master/LICENSE.md
7
+     *
8
+     * @link         https://www.phptesting.org/
9
+     */
10 10
 
11 11
 namespace PHPCI\Helper;
12 12
 
Please login to merge, or discard this patch.
PHPCI/Model/Build.php 2 patches
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,6 +74,7 @@  discard block
 block discarded – undo
74 74
 
75 75
     /**
76 76
      * Store build metadata
77
+     * @param string $key
77 78
      */
78 79
     public function storeMeta($key, $value)
79 80
     {
@@ -181,7 +182,7 @@  discard block
 block discarded – undo
181 182
 
182 183
     /**
183 184
      * Return a value from the build's "extra" JSON array.
184
-     * @param null $key
185
+     * @param string $key
185 186
      * @return mixed|null|string
186 187
      */
187 188
     public function getExtra($key = null)
Please login to merge, or discard this patch.
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * PHPCI - Continuous Integration for PHP.
4
- *
5
- * @copyright    Copyright 2014, Block 8 Limited.
6
- * @license      https://github.com/Block8/PHPCI/blob/master/LICENSE.md
7
- *
8
- * @link         https://www.phptesting.org/
9
- */
3
+     * PHPCI - Continuous Integration for PHP.
4
+     *
5
+     * @copyright    Copyright 2014, Block 8 Limited.
6
+     * @license      https://github.com/Block8/PHPCI/blob/master/LICENSE.md
7
+     *
8
+     * @link         https://www.phptesting.org/
9
+     */
10 10
 
11 11
 namespace PHPCI\Model;
12 12
 
Please login to merge, or discard this patch.
PHPCI/Model/Build/SubversionBuild.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -157,7 +157,7 @@
 block discarded – undo
157 157
     /**
158 158
      * Create an SSH wrapper script for Svn to use, to disable host key checking, etc.
159 159
      * @param $cloneTo
160
-     * @param $keyFile
160
+     * @param string $keyFile
161 161
      * @return string
162 162
      */
163 163
     protected function writeSshWrapper($cloneTo, $keyFile)
Please login to merge, or discard this patch.
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * PHPCI - Continuous Integration for PHP.
4
- *
5
- * @copyright    Copyright 2014, Block 8 Limited.
6
- * @license      https://github.com/Block8/PHPCI/blob/master/LICENSE.md
7
- *
8
- * @link         https://www.phptesting.org/
9
- */
3
+     * PHPCI - Continuous Integration for PHP.
4
+     *
5
+     * @copyright    Copyright 2014, Block 8 Limited.
6
+     * @license      https://github.com/Block8/PHPCI/blob/master/LICENSE.md
7
+     *
8
+     * @link         https://www.phptesting.org/
9
+     */
10 10
 
11 11
 namespace PHPCI\Model\Build;
12 12
 
Please login to merge, or discard this patch.