Test Failed
Push — develop ( 38bc20...a43681 )
by Àlex
05:29
created
PHPCI/Logging/LoggedBuildContextTidier.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\Logging;
12 12
 
Please login to merge, or discard this patch.
PHPCI/Logging/Handler.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\Logging;
12 12
 
Please login to merge, or discard this patch.
PHPCI/Logging/BuildLogger.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\Logging;
12 12
 
Please login to merge, or discard this patch.
PHPCI/Logging/OutputLogHandler.php 2 patches
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\Logging;
12 12
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,6 +45,6 @@
 block discarded – undo
45 45
      */
46 46
     protected function write(array $record)
47 47
     {
48
-        $this->output->writeln((string) $record['formatted']);
48
+        $this->output->writeln((string)$record['formatted']);
49 49
     }
50 50
 }
Please login to merge, or discard this patch.
PHPCI/Logging/LoggerConfig.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\Logging;
12 12
 
Please login to merge, or discard this patch.
PHPCI/Logging/BuildDBLogHandler.php 2 patches
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\Logging;
12 12
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
      */
51 51
     protected function write(array $record)
52 52
     {
53
-        $message = (string) $record['message'];
53
+        $message = (string)$record['message'];
54 54
         $message = str_replace($this->build->currentBuildPath, '/', $message);
55 55
 
56 56
         $this->logValue .= $message.PHP_EOL;
Please login to merge, or discard this patch.
PHPCI/Builder.php 2 patches
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/Store/BuildStore.php 2 patches
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\Store;
12 12
 
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
         if ($stmt->execute()) {
49 49
             $res = $stmt->fetchAll(\PDO::FETCH_ASSOC);
50 50
 
51
-            $map = function ($item) {
51
+            $map = function($item) {
52 52
                 return new \PHPCI\Model\Build($item);
53 53
             };
54 54
             $rtn = array_map($map, $res);
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
         if ($stmt->execute()) {
102 102
             $res = $stmt->fetchAll(\PDO::FETCH_ASSOC);
103 103
 
104
-            $map = function ($item) {
104
+            $map = function($item) {
105 105
                 return new Build($item);
106 106
             };
107 107
 
@@ -173,9 +173,9 @@  discard block
 block discarded – undo
173 173
 
174 174
         $stmt = Database::getConnection('read')->prepare($query);
175 175
         $stmt->bindValue(':key', $key, \PDO::PARAM_STR);
176
-        $stmt->bindValue(':projectId', (int) $projectId, \PDO::PARAM_INT);
177
-        $stmt->bindValue(':buildId', (int) $buildId, \PDO::PARAM_INT);
178
-        $stmt->bindValue(':numResults', (int) $numResults, \PDO::PARAM_INT);
176
+        $stmt->bindValue(':projectId', (int)$projectId, \PDO::PARAM_INT);
177
+        $stmt->bindValue(':buildId', (int)$buildId, \PDO::PARAM_INT);
178
+        $stmt->bindValue(':numResults', (int)$numResults, \PDO::PARAM_INT);
179 179
         if (!is_null($branch)) {
180 180
             $stmt->bindValue(':branch', $branch, \PDO::PARAM_STR);
181 181
         }
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
             $rtn = $stmt->fetchAll(\PDO::FETCH_ASSOC);
185 185
 
186 186
             $rtn = array_reverse($rtn);
187
-            $rtn = array_map(function ($item) {
187
+            $rtn = array_map(function($item) {
188 188
                 $item['meta_value'] = json_decode($item['meta_value'], true);
189 189
 
190 190
                 return $item;
@@ -217,8 +217,8 @@  discard block
 block discarded – undo
217 217
 
218 218
         $stmt = Database::getConnection('read')->prepare($query);
219 219
         $stmt->bindValue(':key', $key, \PDO::PARAM_STR);
220
-        $stmt->bindValue(':projectId', (int) $projectId, \PDO::PARAM_INT);
221
-        $stmt->bindValue(':buildId', (int) $buildId, \PDO::PARAM_INT);
220
+        $stmt->bindValue(':projectId', (int)$projectId, \PDO::PARAM_INT);
221
+        $stmt->bindValue(':buildId', (int)$buildId, \PDO::PARAM_INT);
222 222
         $stmt->bindValue(':value', $value, \PDO::PARAM_STR);
223 223
 
224 224
         if ($stmt->execute()) {
Please login to merge, or discard this patch.
PHPCI/Store/ProjectStore.php 2 patches
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\Store;
12 12
 
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
         if ($stmt->execute()) {
38 38
             $res = $stmt->fetchAll(\PDO::FETCH_ASSOC);
39 39
 
40
-            $map = function ($item) {
40
+            $map = function($item) {
41 41
                 return $item['branch'];
42 42
             };
43 43
             $rtn = array_map($map, $res);
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
         if ($stmt->execute()) {
62 62
             $res = $stmt->fetchAll(\PDO::FETCH_ASSOC);
63 63
 
64
-            $map = function ($item) {
64
+            $map = function($item) {
65 65
                 return new Project($item);
66 66
             };
67 67
             $rtn = array_map($map, $res);
@@ -94,12 +94,12 @@  discard block
 block discarded – undo
94 94
         $query = 'SELECT * FROM `project` WHERE `group_id` = :group_id ORDER BY title LIMIT :limit';
95 95
         $stmt = Database::getConnection($useConnection)->prepare($query);
96 96
         $stmt->bindValue(':group_id', $value);
97
-        $stmt->bindValue(':limit', (int) $limit, \PDO::PARAM_INT);
97
+        $stmt->bindValue(':limit', (int)$limit, \PDO::PARAM_INT);
98 98
 
99 99
         if ($stmt->execute()) {
100 100
             $res = $stmt->fetchAll(\PDO::FETCH_ASSOC);
101 101
 
102
-            $map = function ($item) {
102
+            $map = function($item) {
103 103
                 return new Project($item);
104 104
             };
105 105
             $rtn = array_map($map, $res);
Please login to merge, or discard this patch.