@@ -30,7 +30,7 @@ |
||
| 30 | 30 | array_shift($args); |
| 31 | 31 | $n = count($args); |
| 32 | 32 | $tokens = []; |
| 33 | - for ($i = 0;$i < $n;++$i) { |
|
| 33 | + for ($i = 0; $i < $n; ++$i) { |
|
| 34 | 34 | if ($args[$i] instanceof SimpleXMLElement) { |
| 35 | 35 | $tokens['{' . $i . '}'] = $this->implodeNode($args[$i]); |
| 36 | 36 | } else { |
@@ -239,7 +239,7 @@ |
||
| 239 | 239 | protected function setResultCollection(&$results, &$collections, $properties) |
| 240 | 240 | { |
| 241 | 241 | if (is_array($results) || $results instanceof \ArrayAccess) { |
| 242 | - for ($i = 0,$k = count($results);$i < $k;$i++) { |
|
| 242 | + for ($i = 0, $k = count($results); $i < $k; $i++) { |
|
| 243 | 243 | $this->setObjectProperty($results[$i], $properties, $collections); |
| 244 | 244 | } |
| 245 | 245 | } else { |
@@ -172,11 +172,11 @@ |
||
| 172 | 172 | { |
| 173 | 173 | $value = $this->getRecordPropertyValue($column, $record); |
| 174 | 174 | $hours = []; |
| 175 | - for ($i = 0;$i < 24;$i++) { |
|
| 175 | + for ($i = 0; $i < 24; $i++) { |
|
| 176 | 176 | $hours[] = str_pad($i, 2, '0', STR_PAD_LEFT); |
| 177 | 177 | } |
| 178 | 178 | $mins = []; |
| 179 | - for ($i = 0;$i < 60;$i++) { |
|
| 179 | + for ($i = 0; $i < 60; $i++) { |
|
| 180 | 180 | $mins[] = str_pad($i, 2, '0', STR_PAD_LEFT); |
| 181 | 181 | } |
| 182 | 182 | $hour = (int) (@date('H')); |
@@ -181,7 +181,7 @@ |
||
| 181 | 181 | $info['ColumnName'] = $columnId; //NOT quote the column names! |
| 182 | 182 | $info['ColumnId'] = $columnId; |
| 183 | 183 | $info['ColumnIndex'] = $col['index']; |
| 184 | - if (! (bool) $col['attnotnull']) { |
|
| 184 | + if (!(bool) $col['attnotnull']) { |
|
| 185 | 185 | $info['AllowNull'] = true; |
| 186 | 186 | } |
| 187 | 187 | if (in_array($columnId, $tableInfo->getPrimaryKeys())) { |
@@ -147,7 +147,7 @@ |
||
| 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"; |
@@ -1235,7 +1235,7 @@ |
||
| 1235 | 1235 | public function onEndRequest() |
| 1236 | 1236 | { |
| 1237 | 1237 | $this->flushOutput(false); // flush all remaining content in the buffer |
| 1238 | - $this->saveGlobals(); // save global state |
|
| 1238 | + $this->saveGlobals(); // save global state |
|
| 1239 | 1239 | $this->raiseEvent('OnEndRequest', $this, null); |
| 1240 | 1240 | } |
| 1241 | 1241 | } |
@@ -481,7 +481,7 @@ |
||
| 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]); |
@@ -324,7 +324,7 @@ discard block |
||
| 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 |
||
| 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; |
@@ -1340,7 +1340,7 @@ discard block |
||
| 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 |
||
| 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 | } |