Test Failed
Push — develop ( 38bc20...a43681 )
by Àlex
05:29
created
PHPCI/Controller/BuildController.php 3 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -233,6 +233,7 @@
 block discarded – undo
233 233
 
234 234
     /**
235 235
      * Parse log for unix colours and replace with HTML.
236
+     * @param string $log
236 237
      */
237 238
     protected function cleanLog($log)
238 239
     {
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
@@ -169,7 +169,7 @@
 block discarded – undo
169 169
     protected function getBuildData(Build $build)
170 170
     {
171 171
         $data = array();
172
-        $data['status'] = (int) $build->getStatus();
172
+        $data['status'] = (int)$build->getStatus();
173 173
         $data['log'] = $this->cleanLog($build->getLog());
174 174
         $data['created'] = !is_null($build->getCreated()) ? $build->getCreated()->format('Y-m-d H:i:s') : null;
175 175
         $data['started'] = !is_null($build->getStarted()) ? $build->getStarted()->format('Y-m-d H:i:s') : null;
Please login to merge, or discard this patch.
PHPCI/Model/Base/BuildBase.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -425,7 +425,7 @@  discard block
 block discarded – undo
425 425
     /**
426 426
      * Set the value of Log / log.
427 427
      *
428
-     * @param $value string
428
+     * @param string $value string
429 429
      */
430 430
     public function setLog($value)
431 431
     {
@@ -464,7 +464,7 @@  discard block
 block discarded – undo
464 464
     /**
465 465
      * Set the value of Created / created.
466 466
      *
467
-     * @param $value \DateTime
467
+     * @param \DateTime $value \DateTime
468 468
      */
469 469
     public function setCreated($value)
470 470
     {
@@ -482,7 +482,7 @@  discard block
 block discarded – undo
482 482
     /**
483 483
      * Set the value of Started / started.
484 484
      *
485
-     * @param $value \DateTime
485
+     * @param \DateTime $value \DateTime
486 486
      */
487 487
     public function setStarted($value)
488 488
     {
@@ -500,7 +500,7 @@  discard block
 block discarded – undo
500 500
     /**
501 501
      * Set the value of Finished / finished.
502 502
      *
503
-     * @param $value \DateTime
503
+     * @param \DateTime $value \DateTime
504 504
      */
505 505
     public function setFinished($value)
506 506
     {
@@ -554,7 +554,7 @@  discard block
 block discarded – undo
554 554
     /**
555 555
      * Set the value of Extra / extra.
556 556
      *
557
-     * @param $value string
557
+     * @param string $value string
558 558
      */
559 559
     public function setExtra($value)
560 560
     {
@@ -599,7 +599,7 @@  discard block
 block discarded – undo
599 599
     /**
600 600
      * Set Project - Accepts an ID, an array representing a Project or a Project model.
601 601
      *
602
-     * @param $value mixed
602
+     * @param Model\Project $value mixed
603 603
      */
604 604
     public function setProject($value)
605 605
     {
Please login to merge, or discard this patch.
PHPCI/Model/Base/BuildErrorBase.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -434,7 +434,7 @@  discard block
 block discarded – undo
434 434
      *
435 435
      * Must not be null.
436 436
      *
437
-     * @param $value \DateTime
437
+     * @param \DateTime $value \DateTime
438 438
      */
439 439
     public function setCreatedDate($value)
440 440
     {
@@ -480,7 +480,7 @@  discard block
 block discarded – undo
480 480
     /**
481 481
      * Set Build - Accepts an ID, an array representing a Build or a Build model.
482 482
      *
483
-     * @param $value mixed
483
+     * @param Model\Build $value mixed
484 484
      */
485 485
     public function setBuild($value)
486 486
     {
Please login to merge, or discard this patch.
PHPCI/Model/Base/ProjectBase.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -372,7 +372,7 @@  discard block
 block discarded – undo
372 372
      *
373 373
      * Must not be null.
374 374
      *
375
-     * @param $value string
375
+     * @param string $value string
376 376
      */
377 377
     public function setTitle($value)
378 378
     {
@@ -393,7 +393,7 @@  discard block
 block discarded – undo
393 393
      *
394 394
      * Must not be null.
395 395
      *
396
-     * @param $value string
396
+     * @param string $value string
397 397
      */
398 398
     public function setReference($value)
399 399
     {
@@ -453,7 +453,7 @@  discard block
 block discarded – undo
453 453
      *
454 454
      * Must not be null.
455 455
      *
456
-     * @param $value string
456
+     * @param string $value string
457 457
      */
458 458
     public function setType($value)
459 459
     {
@@ -472,7 +472,7 @@  discard block
 block discarded – undo
472 472
     /**
473 473
      * Set the value of AccessInformation / access_information.
474 474
      *
475
-     * @param $value string
475
+     * @param string $value string
476 476
      */
477 477
     public function setAccessInformation($value)
478 478
     {
@@ -546,7 +546,7 @@  discard block
 block discarded – undo
546 546
      *
547 547
      * Must not be null.
548 548
      *
549
-     * @param $value int
549
+     * @param integer $value int
550 550
      */
551 551
     public function setAllowPublicStatus($value)
552 552
     {
@@ -567,7 +567,7 @@  discard block
 block discarded – undo
567 567
      *
568 568
      * Must not be null.
569 569
      *
570
-     * @param $value int
570
+     * @param boolean $value int
571 571
      */
572 572
     public function setArchived($value)
573 573
     {
Please login to merge, or discard this patch.
PHPCI/Plugin/Codeception.php 3 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
     /**
60 60
      * Try and find the codeception YML config file.
61 61
      *
62
-     * @param $buildPath
62
+     * @param string $buildPath
63 63
      *
64 64
      * @return null|string
65 65
      */
@@ -118,9 +118,9 @@  discard block
 block discarded – undo
118 118
     /**
119 119
      * Run tests from a Codeception config file.
120 120
      *
121
-     * @param $configPath
121
+     * @param string $configPath
122 122
      *
123
-     * @return bool|mixed
123
+     * @return boolean
124 124
      *
125 125
      * @throws \Exception
126 126
      */
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\Plugin;
12 12
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@
 block discarded – undo
95 95
             $this->ymlConfigFile = $options['config'];
96 96
         }
97 97
         if (isset($options['args'])) {
98
-            $this->args = (string) $options['args'];
98
+            $this->args = (string)$options['args'];
99 99
         }
100 100
         if (isset($options['path'])) {
101 101
             $this->path = $options['path'];
Please login to merge, or discard this patch.
PHPCI/Plugin/Irc.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -94,9 +94,9 @@  discard block
 block discarded – undo
94 94
 
95 95
     /**
96 96
      * @param resource $socket
97
-     * @param array    $commands
97
+     * @param string[]    $commands
98 98
      *
99
-     * @return bool
99
+     * @return boolean|null
100 100
      */
101 101
     private function executeIrcCommands($socket, array $commands)
102 102
     {
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
      * @param resource $socket
125 125
      * @param string   $command
126 126
      *
127
-     * @return bool
127
+     * @return boolean|null
128 128
      */
129 129
     private function executeIrcCommand($socket, $command)
130 130
     {
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\Plugin;
12 12
 
Please login to merge, or discard this patch.
PHPCI/Plugin/PhpCpd.php 3 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -110,9 +110,9 @@
 block discarded – undo
110 110
     /**
111 111
      * Process the PHPCPD XML report.
112 112
      *
113
-     * @param $xmlString
113
+     * @param string $xmlString
114 114
      *
115
-     * @return array
115
+     * @return integer
116 116
      *
117 117
      * @throws \Exception
118 118
      */
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\Plugin;
12 12
 
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
     {
75 75
         $ignore = '';
76 76
         if (count($this->ignore)) {
77
-            $map = function ($item) {
77
+            $map = function($item) {
78 78
                 // remove the trailing slash
79 79
                 $item = rtrim($item, DIRECTORY_SEPARATOR);
80 80
 
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
         $warnings = 0;
129 129
         foreach ($xml->duplication as $duplication) {
130 130
             foreach ($duplication->file as $file) {
131
-                $fileName = (string) $file['path'];
131
+                $fileName = (string)$file['path'];
132 132
                 $fileName = str_replace($this->phpci->buildPath, '', $fileName);
133 133
 
134 134
                 $message = <<<CPD
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
                     BuildError::SEVERITY_NORMAL,
147 147
                     $fileName,
148 148
                     $file['line'],
149
-                    (int) $file['line'] + (int) $duplication['lines']
149
+                    (int)$file['line'] + (int)$duplication['lines']
150 150
                 );
151 151
             }
152 152
 
Please login to merge, or discard this patch.
PHPCI/Plugin/PhpMessDetector.php 3 patches
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
      * Override a default setting.
137 137
      *
138 138
      * @param $options
139
-     * @param $key
139
+     * @param string $key
140 140
      */
141 141
     protected function overrideSetting($options, $key)
142 142
     {
@@ -148,9 +148,9 @@  discard block
 block discarded – undo
148 148
     /**
149 149
      * Process PHPMD's XML output report.
150 150
      *
151
-     * @param $xmlString
151
+     * @param string $xmlString
152 152
      *
153
-     * @return array
153
+     * @return integer
154 154
      *
155 155
      * @throws \Exception
156 156
      */
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
     /**
213 213
      * Execute PHP Mess Detector.
214 214
      *
215
-     * @param $binaryPath
215
+     * @param null|string $binaryPath
216 216
      */
217 217
     protected function executePhpMd($binaryPath)
218 218
     {
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\Plugin;
12 12
 
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
         }
106 106
 
107 107
         if (array_key_exists('allowed_warnings', $options)) {
108
-            $this->allowed_warnings = (int) $options['allowed_warnings'];
108
+            $this->allowed_warnings = (int)$options['allowed_warnings'];
109 109
         }
110 110
 
111 111
         foreach (array('rules', 'ignore', 'suffixes') as $key) {
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
         $warnings = 0;
167 167
 
168 168
         foreach ($xml->file as $file) {
169
-            $fileName = (string) $file['name'];
169
+            $fileName = (string)$file['name'];
170 170
             $fileName = str_replace($this->phpci->buildPath, '', $fileName);
171 171
 
172 172
             foreach ($file->violation as $violation) {
@@ -175,11 +175,11 @@  discard block
 block discarded – undo
175 175
                 $this->build->reportError(
176 176
                     $this->phpci,
177 177
                     'php_mess_detector',
178
-                    (string) $violation,
178
+                    (string)$violation,
179 179
                     PHPCI\Model\BuildError::SEVERITY_HIGH,
180 180
                     $fileName,
181
-                    (int) $violation['beginline'],
182
-                    (int) $violation['endline']
181
+                    (int)$violation['beginline'],
182
+                    (int)$violation['endline']
183 183
                 );
184 184
             }
185 185
         }
Please login to merge, or discard this patch.
PHPCI/Helper/MailerFactory.php 1 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.