Passed
Branch master (c4215b)
by Fabio
02:00
created
framework/Web/UI/WebControls/TReCaptcha.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -181,8 +181,7 @@
 block discarded – undo
181 181
 
182 182
 	public function validate()
183 183
 	{
184
-		if (!
185
-			  (
184
+		if (!(
186 185
 			($challenge = @$_POST[$this->getChallengeFieldName()])
187 186
 			and
188 187
 			($response = @$_POST[$this->getResponseFieldName()])
Please login to merge, or discard this patch.
framework/Exceptions/TErrorHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -430,7 +430,7 @@
 block discarded – undo
430 430
 		$endLine = $errorLine + self::SOURCE_LINES <= count($lines) ? $errorLine + self::SOURCE_LINES : count($lines);
431 431
 
432 432
 		$source = '';
433
-		for ($i = $beginLine;$i < $endLine;++$i) {
433
+		for ($i = $beginLine; $i < $endLine; ++$i) {
434 434
 			if ($i === $errorLine - 1) {
435 435
 				$line = htmlspecialchars(sprintf("%04d: %s", $i + 1, str_replace("\t", '    ', $lines[$i])));
436 436
 				$source .= "<div class=\"error\">" . $line . "</div>";
Please login to merge, or discard this patch.
framework/Exceptions/THttpException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
 		array_shift($args);
47 47
 		$n = count($args);
48 48
 		$tokens = [];
49
-		for ($i = 0;$i < $n;++$i) {
49
+		for ($i = 0; $i < $n; ++$i) {
50 50
 			$tokens['{' . $i . '}'] = TPropertyValue::ensureString($args[$i]);
51 51
 		}
52 52
 		parent::__construct(strtr($errorMessage, $tokens));
Please login to merge, or discard this patch.
framework/Collections/TList.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -226,7 +226,7 @@
 block discarded – undo
226 226
 	 */
227 227
 	public function clear()
228 228
 	{
229
-		for ($i = $this->_c - 1;$i >= 0;--$i) {
229
+		for ($i = $this->_c - 1; $i >= 0; --$i) {
230 230
 			$this->removeAt($i);
231 231
 		}
232 232
 	}
Please login to merge, or discard this patch.
framework/Collections/TPagedMapIterator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
 	public function rewind()
56 56
 	{
57 57
 		$this->_iterator->rewind();
58
-		for ($i = 0;$i < $this->_startIndex;++$i) {
58
+		for ($i = 0; $i < $this->_startIndex; ++$i) {
59 59
 			$this->_iterator->next();
60 60
 		}
61 61
 		$this->_index = 0;
Please login to merge, or discard this patch.
framework/Util/TFileLogRoute.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -149,7 +149,7 @@
 block discarded – undo
149 149
 	protected function rotateFiles()
150 150
 	{
151 151
 		$file = $this->getLogPath() . DIRECTORY_SEPARATOR . $this->getLogFile();
152
-		for ($i = $this->_maxLogFiles;$i > 0;--$i) {
152
+		for ($i = $this->_maxLogFiles; $i > 0; --$i) {
153 153
 			$rotateFile = $file . '.' . $i;
154 154
 			if (is_file($rotateFile)) {
155 155
 				if ($i === $this->_maxLogFiles) {
Please login to merge, or discard this patch.
framework/Util/TBrowserLogRoute.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
 		$even = true;
40 40
 		$response = $this->getApplication()->getResponse();
41 41
 		$response->write($this->renderHeader());
42
-		for ($i = 0,$n = count($logs);$i < $n;++$i) {
42
+		for ($i = 0, $n = count($logs); $i < $n; ++$i) {
43 43
 			if ($i < $n - 1) {
44 44
 				$timing['delta'] = $logs[$i + 1][3] - $logs[$i][3];
45 45
 				$timing['total'] = $logs[$i + 1][3] - $first;
Please login to merge, or discard this patch.
framework/Util/TFirePhpLogRoute.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
 
60 60
 		$first = $logs[0][3];
61 61
 		$c = count($logs);
62
-		for ($i = 0,$n = $c;$i < $n;++$i) {
62
+		for ($i = 0, $n = $c; $i < $n; ++$i) {
63 63
 			$message = $logs[$i][0];
64 64
 			$level = $logs[$i][1];
65 65
 			$category = $logs[$i][2];
Please login to merge, or discard this patch.
framework/Exceptions/TException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
 		array_shift($args);
47 47
 		$n = count($args);
48 48
 		$tokens = [];
49
-		for ($i = 0;$i < $n;++$i) {
49
+		for ($i = 0; $i < $n; ++$i) {
50 50
 			$tokens['{' . $i . '}'] = TPropertyValue::ensureString($args[$i]);
51 51
 		}
52 52
 		parent::__construct(strtr($errorMessage, $tokens));
Please login to merge, or discard this patch.