Passed
Branch master (c4215b)
by Fabio
02:00
created
framework/Data/Common/Oracle/TOracleCommandBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -147,7 +147,7 @@
 block discarded – undo
147 147
 
148 148
 		************************* */
149 149
 		$offset = (int) $offset;
150
-		$toReg = $offset + $limit ;
150
+		$toReg = $offset + $limit;
151 151
 		$fullTableName = $this->getTableInfo()->getTableFullName();
152 152
 		if (empty($sORDERBY)) {
153 153
 			$sORDERBY = "ROWNUM";
Please login to merge, or discard this patch.
framework/Collections/TPriorityList.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -481,7 +481,7 @@
 block discarded – undo
481 481
 		}
482 482
 
483 483
 		foreach ($this->_d as $priority => $items) {
484
-			for ($index = count($items) - 1;$index >= 0;$index--) {
484
+			for ($index = count($items) - 1; $index >= 0; $index--) {
485 485
 				$this->removeAtIndexInPriority($index, $priority);
486 486
 			}
487 487
 			unset($this->_d[$priority]);
Please login to merge, or discard this patch.
framework/Collections/TPagedList.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -324,7 +324,7 @@  discard block
 block discarded – undo
324 324
 	public function indexOf($item)
325 325
 	{
326 326
 		$c = $this->getCount();
327
-		for ($i = 0;$i < $c;++$i) {
327
+		for ($i = 0; $i < $c; ++$i) {
328 328
 			if ($this->itemAt($i) === $item) {
329 329
 				return $i;
330 330
 			}
@@ -362,7 +362,7 @@  discard block
 block discarded – undo
362 362
 	{
363 363
 		$c = $this->getCount();
364 364
 		$array = [];
365
-		for ($i = 0;$i < $c;++$i) {
365
+		for ($i = 0; $i < $c; ++$i) {
366 366
 			$array[$i] = $this->itemAt($i);
367 367
 		}
368 368
 		return $array;
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TDataList.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1340,7 +1340,7 @@  discard block
 block discarded – undo
1340 1340
 		if (($separatorStyle = $this->getViewState('SeparatorStyle', null)) !== null && $this->getHasSeparators()) {
1341 1341
 			$controls = $this->getControls();
1342 1342
 			$count = $controls->getCount();
1343
-			for ($i = $this->_header ? 2 : 1;$i < $count;$i += 2) {
1343
+			for ($i = $this->_header ? 2 : 1; $i < $count; $i += 2) {
1344 1344
 				if (($separator = $controls->itemAt($i)) instanceof IStyleable) {
1345 1345
 					$separator->getStyle()->mergeWith($separatorStyle);
1346 1346
 				}
@@ -1398,7 +1398,7 @@  discard block
 block discarded – undo
1398 1398
 			$editIndex = $this->getEditItemIndex();
1399 1399
 			$hasSeparator = $this->_separatorTemplate !== null || $this->getSeparatorRenderer() !== '';
1400 1400
 			$this->_header = $this->createItemInternal(-1, TListItemType::Header);
1401
-			for ($i = 0;$i < $itemCount;++$i) {
1401
+			for ($i = 0; $i < $itemCount; ++$i) {
1402 1402
 				if ($hasSeparator && $i > 0) {
1403 1403
 					$this->createItemInternal($i - 1, TListItemType::Separator);
1404 1404
 				}
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TDataGrid.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -943,7 +943,7 @@  discard block
 block discarded – undo
943 943
 			}
944 944
 			$selectedIndex = $this->getSelectedItemIndex();
945 945
 			$editIndex = $this->getEditItemIndex();
946
-			for ($index = 0;$index < $itemCount;++$index) {
946
+			for ($index = 0; $index < $itemCount; ++$index) {
947 947
 				if ($index === 0) {
948 948
 					if ($allowPaging) {
949 949
 						$this->_topPager = $this->createPager();
@@ -1310,7 +1310,7 @@  discard block
 block discarded – undo
1310 1310
 			$controls->add("\n");
1311 1311
 		}
1312 1312
 
1313
-		for ($i = $startPageIndex;$i <= $endPageIndex;++$i) {
1313
+		for ($i = $startPageIndex; $i <= $endPageIndex; ++$i) {
1314 1314
 			if ($i === $pageIndex) {
1315 1315
 				$label = $this->createPagerButton($pager, $buttonType, false, "$i", '', '');
1316 1316
 				$controls->add($label);
@@ -1493,7 +1493,7 @@  discard block
 block discarded – undo
1493 1493
 			if ($this->_columns && $itemType !== TListItemType::Pager) {
1494 1494
 				$n = $this->_columns->getCount();
1495 1495
 				$cells = $item->getCells();
1496
-				for ($i = 0;$i < $n;++$i) {
1496
+				for ($i = 0; $i < $n; ++$i) {
1497 1497
 					$cell = $cells->itemAt($i);
1498 1498
 					$column = $this->_columns->itemAt($i);
1499 1499
 					if (!$column->getVisible()) {
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TRepeatInfo.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
 		// render items
189 189
 		$hasSeparators = $user->getHasSeparators();
190 190
 		$itemCount = $user->getItemCount();
191
-		for ($i = 0;$i < $itemCount;++$i) {
191
+		for ($i = 0; $i < $itemCount; ++$i) {
192 192
 			$user->renderItem($writer, $this, 'Item', $i);
193 193
 			if ($hasSeparators && $i != $itemCount - 1) {
194 194
 				$user->renderItem($writer, $this, 'Separator', $i);
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
 		if ($tableLayout) {
222 222
 			$writer->renderBeginTag('tbody');
223 223
 			$column = 0;
224
-			for ($i = 0;$i < $itemCount;++$i) {
224
+			for ($i = 0; $i < $itemCount; ++$i) {
225 225
 				if ($column == 0) {
226 226
 					$writer->renderBeginTag('tr');
227 227
 				}
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
 					if ($hasSeparators) {
248 248
 						$restColumns = $restColumns ? $restColumns + $restColumns + 1 : 1;
249 249
 					}
250
-					for ($j = 0;$j < $restColumns;++$j) {
250
+					for ($j = 0; $j < $restColumns; ++$j) {
251 251
 						$writer->write("<td></td>\n");
252 252
 					}
253 253
 				}
@@ -260,7 +260,7 @@  discard block
 block discarded – undo
260 260
 			$writer->renderEndTag();
261 261
 		} else {
262 262
 			$column = 0;
263
-			for ($i = 0;$i < $itemCount;++$i) {
263
+			for ($i = 0; $i < $itemCount; ++$i) {
264 264
 				$user->renderItem($writer, $this, 'Item', $i);
265 265
 				if ($hasSeparators && $i != $itemCount - 1) {
266 266
 					$user->renderItem($writer, $this, 'Separator', $i);
@@ -314,10 +314,10 @@  discard block
 block discarded – undo
314 314
 		if ($tableLayout) {
315 315
 			$writer->renderBeginTag('tbody');
316 316
 			$renderedItems = 0;
317
-			for ($row = 0;$row < $rows;++$row) {
317
+			for ($row = 0; $row < $rows; ++$row) {
318 318
 				$index = $row;
319 319
 				$writer->renderBeginTag('tr');
320
-				for ($col = 0;$col < $columns;++$col) {
320
+				for ($col = 0; $col < $columns; ++$col) {
321 321
 					if ($renderedItems >= $itemCount) {
322 322
 						break;
323 323
 					}
@@ -362,7 +362,7 @@  discard block
 block discarded – undo
362 362
 					if ($hasSeparators) {
363 363
 						$restColumns += $restColumns;
364 364
 					}
365
-					for ($col = 0;$col < $restColumns;++$col) {
365
+					for ($col = 0; $col < $restColumns; ++$col) {
366 366
 						$writer->write("<td></td>\n");
367 367
 					}
368 368
 				}
@@ -372,9 +372,9 @@  discard block
 block discarded – undo
372 372
 			$writer->renderEndTag();
373 373
 		} else {
374 374
 			$renderedItems = 0;
375
-			for ($row = 0;$row < $rows;++$row) {
375
+			for ($row = 0; $row < $rows; ++$row) {
376 376
 				$index = $row;
377
-				for ($col = 0;$col < $columns;++$col) {
377
+				for ($col = 0; $col < $columns; ++$col) {
378 378
 					if ($renderedItems >= $itemCount) {
379 379
 						break;
380 380
 					}
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TPager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -591,7 +591,7 @@
 block discarded – undo
591 591
 			$controls->add("\n");
592 592
 		}
593 593
 
594
-		for ($i = $startPageIndex;$i <= $endPageIndex;++$i) {
594
+		for ($i = $startPageIndex; $i <= $endPageIndex; ++$i) {
595 595
 			if ($i === $pageIndex) {
596 596
 				$label = $this->createPagerButton($buttonType, false, "$i", self::CMD_PAGE, '');
597 597
 				$controls->add($label);
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TDatePicker.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -718,7 +718,7 @@  discard block
 block discarded – undo
718 718
 		$formatter = new TSimpleDateFormatter($this->getDateFormat());
719 719
 		$days = [];
720 720
 		$requiresPadding = $formatter->getDayPattern() === 'dd';
721
-		for ($i = 1;$i <= 31;$i++) {
721
+		for ($i = 1; $i <= 31; $i++) {
722 722
 			$days[$i] = $requiresPadding ? str_pad($i, 2, '0', STR_PAD_LEFT) : $i;
723 723
 		}
724 724
 		return $days;
@@ -761,12 +761,12 @@  discard block
 block discarded – undo
761 761
 			case 'MMM': return $info->getAbbreviatedMonthNames();
762 762
 			case 'MM':
763 763
 				$array = [];
764
-				for ($i = 1;$i <= 12;$i++) {
764
+				for ($i = 1; $i <= 12; $i++) {
765 765
 					$array[$i - 1] = $i < 10 ? '0' . $i : $i;
766 766
 				}
767 767
 				return $array;
768 768
 			case 'M':
769
-				$array = []; for ($i = 1;$i <= 12;$i++) {
769
+				$array = []; for ($i = 1; $i <= 12; $i++) {
770 770
 					$array[$i - 1] = $i;
771 771
 				}
772 772
 				return $array;
Please login to merge, or discard this patch.
framework/Web/UI/WebControls/TTabPanel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -388,7 +388,7 @@
 block discarded – undo
388 388
 	public function onPreRender($param)
389 389
 	{
390 390
 		parent::onPreRender($param);
391
-		$this->getActiveView();  // determine the active view
391
+		$this->getActiveView(); // determine the active view
392 392
 		$this->registerStyleSheet();
393 393
 
394 394
 		$page = $this->getPage();
Please login to merge, or discard this patch.