Test Failed
Push — develop ( 38bc20...a43681 )
by Àlex
05:29
created
PHPCI/Plugin/Xmpp.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\Plugin;
12 12
 
Please login to merge, or discard this patch.
PHPCI/Plugin/PackageBuild.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\Plugin;
12 12
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
         $this->phpci = $phpci;
40 40
         $this->directory = isset($options['directory']) ? $options['directory'] : $path;
41 41
         $this->filename = isset($options['filename']) ? $options['filename'] : 'build';
42
-        $this->format = isset($options['format']) ?  $options['format'] : 'zip';
42
+        $this->format = isset($options['format']) ? $options['format'] : 'zip';
43 43
     }
44 44
 
45 45
     /**
Please login to merge, or discard this patch.
PHPCI/Plugin/Campfire.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\Plugin;
12 12
 
Please login to merge, or discard this patch.
PHPCI/Plugin/PhpTalLint.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\Plugin;
12 12
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
         }
80 80
 
81 81
         if (isset($options['suffixes'])) {
82
-            $this->suffixes = (array) $options['suffixes'];
82
+            $this->suffixes = (array)$options['suffixes'];
83 83
         }
84 84
 
85 85
         $this->setOptions($options);
Please login to merge, or discard this patch.
PHPCI/Plugin/Behat.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\Plugin;
12 12
 
Please login to merge, or discard this patch.
PHPCI/Application.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
         $opts = array('controller' => 'Home', 'action' => 'index');
39 39
 
40 40
         // Inlined as a closure to fix "using $this when not in object context" on 5.3
41
-        $validateSession = function () {
41
+        $validateSession = function() {
42 42
             if (!empty($_SESSION['phpci_user_id'])) {
43 43
                 $user = b8\Store\Factory::getStore('User')->getByPrimaryKey($_SESSION['phpci_user_id']);
44 44
 
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
         $skipAuth = array($this, 'shouldSkipAuth');
58 58
 
59 59
         // Handler for the route we're about to register, checks for a valid session where necessary:
60
-        $routeHandler = function (&$route, Response &$response) use (&$request, $validateSession, $skipAuth) {
60
+        $routeHandler = function(&$route, Response&$response) use (&$request, $validateSession, $skipAuth) {
61 61
             $skipValidation = in_array($route['controller'], array('session', 'webhook', 'build-status'));
62 62
 
63 63
             if (!$skipValidation && !$validateSession() && (!is_callable($skipAuth) || !$skipAuth())) {
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
      *
140 140
      * @param View $layout
141 141
      */
142
-    protected function setLayoutVariables(View &$layout)
142
+    protected function setLayoutVariables(View&$layout)
143 143
     {
144 144
         $groups = array();
145 145
         $groupStore = b8\Store\Factory::getStore('ProjectGroup');
@@ -163,10 +163,10 @@  discard block
 block discarded – undo
163 163
     protected function shouldSkipAuth()
164 164
     {
165 165
         $config = b8\Config::getInstance();
166
-        $state = (bool) $config->get('phpci.authentication_settings.state', false);
166
+        $state = (bool)$config->get('phpci.authentication_settings.state', false);
167 167
         $userId = $config->get('phpci.authentication_settings.user_id', 0);
168 168
 
169
-        if (false !== $state && 0 != (int) $userId) {
169
+        if (false !== $state && 0 != (int)$userId) {
170 170
             $user = b8\Store\Factory::getStore('User')
171 171
                 ->getByPrimaryKey($userId);
172 172
 
Please login to merge, or discard this patch.
PHPCI/Command/RunCommand.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\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/Command/DaemoniseCommand.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\Command;
12 12
 
Please login to merge, or discard this patch.
PHPCI/Command/RebuildQueueCommand.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 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 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\Command;
12 12
 
Please login to merge, or discard this patch.