Completed
Branch master (205409)
by Timothy
02:36
created
build/CodeIgniter/Sniffs/Commenting/InlineCommentSniff.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
     /**
42 42
      * Returns an array of tokens this test wants to listen for.
43 43
      *
44
-     * @return array
44
+     * @return integer[]
45 45
      */
46 46
     public function register()
47 47
     {
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
      * @param File $phpcsFile The current file being scanned.
119 119
      * @param int                  $stackPtr  Pointer to the first comment line.
120 120
      *
121
-     * @return type array Pointers to tokens making up the comment block.
121
+     * @return integer[] array Pointers to tokens making up the comment block.
122 122
      */
123 123
     private function _getCommentBlock(File $phpcsFile, $stackPtr)
124 124
     {
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
      * Add errors to $phpcsFile, if $commentLines isn't enclosed with blank lines.
146 146
      *
147 147
      * @param File $phpcsFile    The current file being scanned.
148
-     * @param array                $commentLines Lines of the comment block being checked.
148
+     * @param integer[]                $commentLines Lines of the comment block being checked.
149 149
      *
150 150
      * @return bool TRUE if $commentLines is enclosed with at least a blank line
151 151
      * before and after, FALSE otherwise.
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -94,17 +94,17 @@  discard block
 block discarded – undo
94 94
     {
95 95
         $tokens = $phpcsFile->getTokens();
96 96
         if ($tokens[$stackPtr]['content']{0} === '#') {
97
-            $error  = 'Perl-style comments are not allowed; use "// Comment" or DocBlock comments instead';
97
+            $error = 'Perl-style comments are not allowed; use "// Comment" or DocBlock comments instead';
98 98
             $phpcsFile->addError($error, $stackPtr, 'WrongStyle');
99 99
             return FALSE;
100 100
         } else if (substr($tokens[$stackPtr]['content'], 0, 2) === '/*'
101 101
             || $tokens[$stackPtr]['content']{0} === '*'
102 102
         ) {
103
-            $error  = 'Multi lines comments are not allowed; use "// Comment" DocBlock comments instead';
103
+            $error = 'Multi lines comments are not allowed; use "// Comment" DocBlock comments instead';
104 104
             $phpcsFile->addError($error, $stackPtr, 'WrongStyle');
105 105
             return FALSE;
106 106
         } else if (substr($tokens[$stackPtr]['content'], 0, 2) !== '//') {
107
-            $error  = 'Use single line or DocBlock comments within code';
107
+            $error = 'Use single line or DocBlock comments within code';
108 108
             $phpcsFile->addError($error, $stackPtr, 'WrongStyle');
109 109
             return FALSE;
110 110
         }
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
             $firstPreviousSpacePtr--;
163 163
         }
164 164
         if ($tokens[$firstPreviousSpacePtr]['line'] >= $tokens[$firstCommentPtr]['line'] - 1) {
165
-            $error  = "Please add a blank line before comments counting more than {$this->longCommentLimit} lines.";
165
+            $error = "Please add a blank line before comments counting more than {$this->longCommentLimit} lines.";
166 166
             $phpcsFile->addError($error, $firstCommentPtr, 'LongCommentWithoutSpacing');
167 167
             $hasBlankLinesAround = FALSE;
168 168
         }
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
             $lastNextSpacePtr++;
175 175
         }
176 176
         if ($tokens[$lastNextSpacePtr]['line'] <= $tokens[$lastCommentPtr]['line'] + 1) {
177
-            $error  = "Please add a blank line after comments counting more than {$this->longCommentLimit} lines.";
177
+            $error = "Please add a blank line after comments counting more than {$this->longCommentLimit} lines.";
178 178
             $phpcsFile->addError($error, $lastCommentPtr, 'LongCommentWithoutSpacing');
179 179
             $hasBlankLinesAround = FALSE;
180 180
         }
Please login to merge, or discard this patch.
build/CodeIgniter/Sniffs/Files/ByteOrderMarkSniff.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
     /**
36 36
      * Returns an array of tokens this test wants to listen for.
37 37
      *
38
-     * @return array
38
+     * @return integer[]
39 39
      */
40 40
     public function register()
41 41
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
      */
40 40
     public function register()
41 41
     {
42
-        return array( T_OPEN_TAG );
42
+        return array(T_OPEN_TAG);
43 43
     }//end register()
44 44
 
45 45
     /**
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
      *
75 75
      * @return void
76 76
      */
77
-    public function process(File $phpcsFile, $stackPtr )
77
+    public function process(File $phpcsFile, $stackPtr)
78 78
     {
79 79
         // We are only interested if this is the first open tag.
80 80
         if ($stackPtr !== 0) {
Please login to merge, or discard this patch.
build/CodeIgniter/Sniffs/Files/Utf8EncodingSniff.php 2 patches
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     /**
37 37
      * Returns an array of tokens this test wants to listen for.
38 38
      *
39
-     * @return array
39
+     * @return integer[]
40 40
      */
41 41
     public function register()
42 42
     {
@@ -174,6 +174,7 @@  discard block
 block discarded – undo
174 174
      *
175 175
      * @param string $str String to split.
176 176
 	 * @param int $len number of characters per chunk
177
+	 * @param string $glue
177 178
      *
178 179
      * @return array string array after splitting
179 180
      *
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -96,10 +96,10 @@  discard block
 block discarded – undo
96 96
      */
97 97
     private static function _checkUtf8W3c($content)
98 98
     {
99
-        $content_chunks=self::mb_chunk_split($content, 4096, '');
100
-    	foreach($content_chunks as $content_chunk)
99
+        $content_chunks = self::mb_chunk_split($content, 4096, '');
100
+    	foreach ($content_chunks as $content_chunk)
101 101
 		{
102
-			$preg_result= preg_match(
102
+			$preg_result = preg_match(
103 103
             '%^(?:
104 104
                   [\x09\x0A\x0D\x20-\x7E]            # ASCII
105 105
                 | [\xC2-\xDF][\x80-\xBF]             # non-overlong 2-byte
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
             )*$%xs',
113 113
             $content_chunk
114 114
 			);
115
-			if($preg_result!==1)
115
+			if ($preg_result !== 1)
116 116
 			{
117 117
 				return false;
118 118
 			}
@@ -141,9 +141,9 @@  discard block
 block discarded – undo
141 141
                 if (($c >= 254)) {
142 142
                     return false;
143 143
                 } elseif ($c >= 252) {
144
-                    $bits=6;
144
+                    $bits = 6;
145 145
                 } elseif ($c >= 248) {
146
-                    $bits=5;
146
+                    $bits = 5;
147 147
                 } elseif ($c >= 240) {
148 148
                     $bytes = 4;
149 149
                 } elseif ($c >= 224) {
@@ -182,14 +182,14 @@  discard block
 block discarded – undo
182 182
 	private static function mb_chunk_split($str, $len, $glue)
183 183
 	{
184 184
 		if (empty($str)) return false;
185
-		$array = self::mbStringToArray ($str);
185
+		$array = self::mbStringToArray($str);
186 186
 		$n = -1;
187 187
 		$new = Array();
188 188
 		foreach ($array as $char) {
189 189
 			$n++;
190
-			if ($n < $len) $new []= $char;
190
+			if ($n < $len) $new [] = $char;
191 191
 			elseif ($n == $len) {
192
-				$new []= $glue . $char;
192
+				$new [] = $glue . $char;
193 193
 				$n = 0;
194 194
 			}
195 195
 		}
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
      *
205 205
      * @see http://php.net/manual/en/function.chunk-split.php
206 206
      */
207
-	private static function mbStringToArray ($str)
207
+	private static function mbStringToArray($str)
208 208
 	{
209 209
 		if (empty($str)) return false;
210 210
 		$len = mb_strlen($str);
Please login to merge, or discard this patch.
build/CodeIgniter/Sniffs/Operators/LogicalOperatorAndSniff.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
 	/**
36 36
      * Returns an array of tokens this test wants to listen for: symbolic and literal operators and.
37 37
      *
38
-     * @return array
38
+     * @return integer[]
39 39
      */
40 40
     public function register()
41 41
     {
Please login to merge, or discard this patch.
build/CodeIgniter/Sniffs/Operators/UppercaseLogicalOperatorOrSniff.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
     /**
36 36
      * Returns an array of tokens this test wants to listen for: literal and symbolic operators or.
37 37
      *
38
-     * @return array
38
+     * @return integer[]
39 39
      */
40 40
     public function register()
41 41
     {
Please login to merge, or discard this patch.
build/CodeIgniter/Sniffs/Strings/DoubleQuoteUsageSniff.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
 	 * @param string               $dblQtString The double-quoted string content,
88 88
 	 *                                          i.e. without quotes.
89 89
 	 *
90
-	 * @return void
90
+	 * @return boolean
91 91
 	 */
92 92
 	protected function processDoubleQuotedString (File $phpcsFile, $stackPtr, $dblQtString)
93 93
 	{
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
 	 * @param string               $sglQtString The single-quoted string content,
135 135
 	 *                                          i.e. without quotes.
136 136
 	 *
137
-	 * @return void
137
+	 * @return boolean
138 138
 	 */
139 139
 	protected function processSingleQuotedString (File $phpcsFile, $stackPtr, $sglQtString)
140 140
 	{
Please login to merge, or discard this patch.
Spacing   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -89,10 +89,10 @@  discard block
 block discarded – undo
89 89
 	 *
90 90
 	 * @return void
91 91
 	 */
92
-	protected function processDoubleQuotedString (File $phpcsFile, $stackPtr, $dblQtString)
92
+	protected function processDoubleQuotedString(File $phpcsFile, $stackPtr, $dblQtString)
93 93
 	{
94 94
 		$variableFound = FALSE;
95
-		$strTokens = token_get_all('<?php '.$dblQtString);
95
+		$strTokens = token_get_all('<?php ' . $dblQtString);
96 96
 		$strPtr = 1; // skip php opening tag added by ourselves
97 97
 		$requireDblQuotes = FALSE;
98 98
 		while ($strPtr < count($strTokens)) {
@@ -136,10 +136,10 @@  discard block
 block discarded – undo
136 136
 	 *
137 137
 	 * @return void
138 138
 	 */
139
-	protected function processSingleQuotedString (File $phpcsFile, $stackPtr, $sglQtString)
139
+	protected function processSingleQuotedString(File $phpcsFile, $stackPtr, $sglQtString)
140 140
 	{
141 141
 		$variableFound = FALSE;
142
-		$strTokens = token_get_all('<?php '.$sglQtString);
142
+		$strTokens = token_get_all('<?php ' . $sglQtString);
143 143
 		$strPtr = 1; // skip php opening tag added by ourselves
144 144
 		while ($strPtr < count($strTokens)) {
145 145
 			$strToken = $strTokens[$strPtr];
@@ -171,17 +171,17 @@  discard block
 block discarded – undo
171 171
 	 * @return array The attribute name associated to index 'var', an array with
172 172
 	 * indexes 'obj' and 'attr' or an array with indexes 'arr' and 'idx'.
173 173
 	 */
174
-	private function _parseVariable ($strTokens, &$strPtr)
174
+	private function _parseVariable($strTokens, &$strPtr)
175 175
 	{
176 176
 		if ( ! in_array($strTokens[$strPtr][0], array(T_VARIABLE, T_STRING_VARNAME))) {
177
-			throw new Exception ('Expected variable name.');
177
+			throw new Exception('Expected variable name.');
178 178
 		}
179 179
 		$var = $strTokens[$strPtr][1];
180 180
 		$strPtr++;
181 181
 		$startStrPtr = $strPtr;
182 182
 		try {
183 183
 			$attr = $this->_parseObjectAttribute($strTokens, $strPtr);
184
-			return array ('obj' => $var, 'attr' => $attr);
184
+			return array('obj' => $var, 'attr' => $attr);
185 185
 		} catch (Exception $err) {
186 186
 			if ($strPtr !== $startStrPtr) {
187 187
 				throw $err;
@@ -189,13 +189,13 @@  discard block
 block discarded – undo
189 189
 		}
190 190
 		try {
191 191
 			$idx = $this->_parseArrayIndexes($strTokens, $strPtr);
192
-			return array ('arr' => $var, 'idx' => $idx);
192
+			return array('arr' => $var, 'idx' => $idx);
193 193
 		} catch (Exception $err) {
194 194
 			if ($strPtr !== $startStrPtr) {
195 195
 				throw $err;
196 196
 			}
197 197
 		}
198
-		return array ('var' => $var);
198
+		return array('var' => $var);
199 199
 	}//end _parseVariable()
200 200
 
201 201
 
@@ -215,21 +215,21 @@  discard block
 block discarded – undo
215 215
 	 * @return mixed The attribute name as a string, an array with indexes
216 216
 	 * 'obj' and 'attr' or an array with indexes 'arr' and 'idx'.
217 217
 	 */
218
-	private function _parseObjectAttribute ($strTokens, &$strPtr)
218
+	private function _parseObjectAttribute($strTokens, &$strPtr)
219 219
 	{
220 220
 		if (T_OBJECT_OPERATOR !== $strTokens[$strPtr][0]) {
221
-			throw new Exception ('Expected ->.');
221
+			throw new Exception('Expected ->.');
222 222
 		}
223 223
 		$strPtr++;
224 224
 		if (T_STRING !== $strTokens[$strPtr][0]) {
225
-			throw new Exception ('Expected an object attribute.');
225
+			throw new Exception('Expected an object attribute.');
226 226
 		}
227 227
 		$attr = $strTokens[$strPtr][1];
228 228
 		$strPtr++;
229 229
 		$startStrPtr = $strPtr;
230 230
 		try {
231 231
 			$sub_attr = $this->_parseObjectAttribute($strTokens, $strPtr);
232
-			return array ('obj' => $attr, 'attr' => $sub_attr);
232
+			return array('obj' => $attr, 'attr' => $sub_attr);
233 233
 		} catch (Exception $err) {
234 234
 			if ($strPtr !== $startStrPtr) {
235 235
 				throw $err;
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
 		}
238 238
 		try {
239 239
 			$idx = $this->_parseArrayIndexes($strTokens, $strPtr);
240
-			return array ('arr' => $attr, 'idx' => $idx);
240
+			return array('arr' => $attr, 'idx' => $idx);
241 241
 		} catch (Exception $err) {
242 242
 			if ($strPtr !== $startStrPtr) {
243 243
 				throw $err;
@@ -260,7 +260,7 @@  discard block
 block discarded – undo
260 260
 	 *
261 261
 	 * @return array Indexes in the same order as in the string.
262 262
 	 */
263
-	private function _parseArrayIndexes ($strTokens, &$strPtr)
263
+	private function _parseArrayIndexes($strTokens, &$strPtr)
264 264
 	{
265 265
 		$indexes = array($this->_parseArrayIndex($strTokens, $strPtr));
266 266
 		try {
@@ -290,19 +290,19 @@  discard block
 block discarded – undo
290 290
 	 *
291 291
 	 * @return string Index between the 2 square brackets
292 292
 	 */
293
-	private function _parseArrayIndex ($strTokens, &$strPtr)
293
+	private function _parseArrayIndex($strTokens, &$strPtr)
294 294
 	{
295 295
 		if ('[' !== $strTokens[$strPtr]) {
296
-			throw new Exception ('Expected [.');
296
+			throw new Exception('Expected [.');
297 297
 		}
298 298
 		$strPtr++;
299
-		if (! in_array($strTokens[$strPtr][0], array(T_CONSTANT_ENCAPSED_STRING, T_LNUMBER))) {
300
-			throw new Exception ('Expected an array index.');
299
+		if ( ! in_array($strTokens[$strPtr][0], array(T_CONSTANT_ENCAPSED_STRING, T_LNUMBER))) {
300
+			throw new Exception('Expected an array index.');
301 301
 		}
302 302
 		$index = $strTokens[$strPtr][1];
303 303
 		$strPtr++;
304 304
 		if (']' !== $strTokens[$strPtr]) {
305
-			throw new Exception ('Expected ].');
305
+			throw new Exception('Expected ].');
306 306
 		}
307 307
 		$strPtr++;
308 308
 		return $index;
@@ -380,11 +380,11 @@  discard block
 block discarded – undo
380 380
      *
381 381
      * @return void
382 382
      */
383
-    protected function processDoubleQuotedString (File $phpcsFile, $stackPtr, $qtString)
383
+    protected function processDoubleQuotedString(File $phpcsFile, $stackPtr, $qtString)
384 384
     {
385 385
         // so there should be at least a single quote or a special char
386 386
         // if there are the 2 kinds of quote and no special char, then add a warning
387
-        $has_variable = parent::processDoubleQuotedString($phpcsFile, $stackPtr, '"'.$qtString.'"');
387
+        $has_variable = parent::processDoubleQuotedString($phpcsFile, $stackPtr, '"' . $qtString . '"');
388 388
         $has_specific_sequence = $this->_hasSpecificSequence($qtString);
389 389
         $dbl_qt_at = strpos($qtString, '"');
390 390
         $smpl_qt_at = strpos($qtString, "'");
@@ -413,14 +413,14 @@  discard block
 block discarded – undo
413 413
      *
414 414
      * @return void
415 415
      */
416
-    protected function processSingleQuotedString (File $phpcsFile, $stackPtr, $qtString)
416
+    protected function processSingleQuotedString(File $phpcsFile, $stackPtr, $qtString)
417 417
     {
418 418
         // if there is single quotes without additional double quotes,
419 419
         // then user is allowed to use double quote to avoid having to
420 420
         // escape single quotes. Don't add the warning, if an error was
421 421
         // already added, because a variable was found in a single-quoted
422 422
         // string.
423
-        $has_variable = parent::processSingleQuotedString($phpcsFile, $stackPtr, "'".$qtString."'");
423
+        $has_variable = parent::processSingleQuotedString($phpcsFile, $stackPtr, "'" . $qtString . "'");
424 424
         $dbl_qt_at = strpos($qtString, '"');
425 425
         $smpl_qt_at = strpos($qtString, "'");
426 426
         if (false === $has_variable && false !== $smpl_qt_at && false === $dbl_qt_at) {
Please login to merge, or discard this patch.
build/CodeIgniter/Sniffs/WhiteSpace/LogicalNotSpacingSniff.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
     /**
37 37
      * Returns an array of tokens this test wants to listen for.
38 38
      *
39
-     * @return array
39
+     * @return string[]
40 40
      */
41 41
     public function register()
42 42
     {
Please login to merge, or discard this patch.
build/CodeIgniter/UnusedSniffs/Files/ClosingLocationCommentSniff.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
     /**
51 51
      * Returns an array of tokens this test wants to listen for.
52 52
      *
53
-     * @return array
53
+     * @return integer[]
54 54
      */
55 55
     public function register()
56 56
     {
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
      * application root. Parent directory of the application root are allowed
135 135
      * but not mandatory.
136 136
      *
137
-     * @return string|bool The relative path from $appRoot to $filePath, or
137
+     * @return false|string The relative path from $appRoot to $filePath, or
138 138
      * false if $appRoot cannot be found in $filePath.
139 139
      */
140 140
     private static function _getLocationPath ($filePath, $appRoot)
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@
 block discarded – undo
137 137
      * @return string|bool The relative path from $appRoot to $filePath, or
138 138
      * false if $appRoot cannot be found in $filePath.
139 139
      */
140
-    private static function _getLocationPath ($filePath, $appRoot)
140
+    private static function _getLocationPath($filePath, $appRoot)
141 141
     {
142 142
         // removes the path to application root
143 143
         // from the beginning of the file path
Please login to merge, or discard this patch.
RoboFile.php 2 patches
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,6 +2,10 @@  discard block
 block discarded – undo
2 2
 if ( ! function_exists('glob_recursive'))
3 3
 {
4 4
 	// Does not support flag GLOB_BRACE
5
+
6
+	/**
7
+	 * @param string $pattern
8
+	 */
5 9
 	function glob_recursive($pattern, $flags = 0)
6 10
 	{
7 11
 		$files = glob($pattern, $flags);
@@ -320,7 +324,7 @@  discard block
 block discarded – undo
320 324
 	 * Shortcut for joining an array of command arguments
321 325
 	 * and then running it
322 326
 	 *
323
-	 * @param array $cmd_parts - command arguments
327
+	 * @param string[] $cmd_parts - command arguments
324 328
 	 * @param string $join_on - what to join the command arguments with
325 329
 	 */
326 330
 	protected function _run(array $cmd_parts, $join_on = ' ')
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -6,9 +6,9 @@  discard block
 block discarded – undo
6 6
 	{
7 7
 		$files = glob($pattern, $flags);
8 8
 
9
-		foreach (glob(dirname($pattern).'/*', GLOB_ONLYDIR|GLOB_NOSORT) as $dir)
9
+		foreach (glob(dirname($pattern) . '/*', GLOB_ONLYDIR | GLOB_NOSORT) as $dir)
10 10
 		{
11
-			$files = array_merge($files, glob_recursive($dir.'/'.basename($pattern), $flags));
11
+			$files = array_merge($files, glob_recursive($dir . '/' . basename($pattern), $flags));
12 12
 		}
13 13
 
14 14
 		return $files;
@@ -80,13 +80,13 @@  discard block
 block discarded – undo
80 80
 			'build/humbug.json',
81 81
 			'build/humbug-log.txt',
82 82
 		];
83
-		array_map(function ($file) {
83
+		array_map(function($file) {
84 84
 			@unlink($file);
85 85
 		}, $cleanFiles);
86 86
 
87 87
 		// So the task doesn't complain,
88 88
 		// make any 'missing' dirs to cleanup
89
-		array_map(function ($dir) {
89
+		array_map(function($dir) {
90 90
 			if ( ! is_dir($dir))
91 91
 			{
92 92
 				`mkdir -p {$dir}`;
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
 
131 131
 		$chunks = array_chunk($files, 6);
132 132
 
133
-		foreach($chunks as $chunk)
133
+		foreach ($chunks as $chunk)
134 134
 		{
135 135
 			$this->parallelLint($chunk);
136 136
 		}
@@ -241,10 +241,10 @@  discard block
 block discarded – undo
241 241
 			->monitor('composer.json', function() {
242 242
 				$this->taskComposerUpdate()->run();
243 243
 			})
244
-			->monitor('src', function () {
244
+			->monitor('src', function() {
245 245
 				$this->taskExec('test')->run();
246 246
 			})
247
-			->monitor('tests', function () {
247
+			->monitor('tests', function() {
248 248
 				$this->taskExec('test')->run();
249 249
 			})
250 250
 			->run();
@@ -295,7 +295,7 @@  discard block
 block discarded – undo
295 295
 			->timeout(5)
296 296
 			->printed(FALSE);
297 297
 
298
-		foreach($chunk as $file)
298
+		foreach ($chunk as $file)
299 299
 		{
300 300
 			$task = $task->process("php -l {$file}");
301 301
 		}
Please login to merge, or discard this patch.