diff --git a/extensions/apidoc/helpers/ApiMarkdown.php b/extensions/apidoc/helpers/ApiMarkdown.php index dba4dffd082..2f069f5e3c2 100644 --- a/extensions/apidoc/helpers/ApiMarkdown.php +++ b/extensions/apidoc/helpers/ApiMarkdown.php @@ -70,7 +70,7 @@ protected function consumeFencedCode($lines, $current) if (!empty($language)) { $block['language'] = $language; } - for($i = $current + 1, $count = count($lines); $i < $count; $i++) { + for ($i = $current + 1, $count = count($lines); $i < $count; $i++) { if (rtrim($line = $lines[$i]) !== $fence) { $block['content'][] = $line; } else { diff --git a/extensions/redis/ActiveQuery.php b/extensions/redis/ActiveQuery.php index 8ca8e9cc47f..67bbb3d27b9 100644 --- a/extensions/redis/ActiveQuery.php +++ b/extensions/redis/ActiveQuery.php @@ -90,7 +90,7 @@ public function all($db = null) foreach ($data as $dataRow) { $row = []; $c = count($dataRow); - for($i = 0; $i < $c; ) { + for ($i = 0; $i < $c; ) { $row[$dataRow[$i++]] = $dataRow[$i++]; } $rows[] = $row; @@ -128,7 +128,7 @@ public function one($db = null) } $row = []; $c = count($data); - for($i = 0; $i < $c; ) { + for ($i = 0; $i < $c; ) { $row[$data[$i++]] = $data[$i++]; } if ($this->asArray) { @@ -383,7 +383,7 @@ private function findByPk($db, $type, $columnName = null) foreach ($data as $dataRow) { $row = []; $c = count($dataRow); - for($i = 0; $i < $c; ) { + for ($i = 0; $i < $c; ) { $row[$dataRow[$i++]] = $dataRow[$i++]; } $column[] = $row[$columnName]; @@ -393,7 +393,7 @@ private function findByPk($db, $type, $columnName = null) $sum = 0; foreach ($data as $dataRow) { $c = count($dataRow); - for($i = 0; $i < $c; ) { + for ($i = 0; $i < $c; ) { if ($dataRow[$i++] == $columnName) { $sum += $dataRow[$i]; break; @@ -407,7 +407,7 @@ private function findByPk($db, $type, $columnName = null) foreach ($data as $dataRow) { $count++; $c = count($dataRow); - for($i = 0; $i < $c; ) { + for ($i = 0; $i < $c; ) { if ($dataRow[$i++] == $columnName) { $sum += $dataRow[$i]; break; @@ -419,7 +419,7 @@ private function findByPk($db, $type, $columnName = null) $min = null; foreach ($data as $dataRow) { $c = count($dataRow); - for($i = 0; $i < $c; ) { + for ($i = 0; $i < $c; ) { if ($dataRow[$i++] == $columnName && ($min == null || $dataRow[$i] < $min)) { $min = $dataRow[$i]; break; @@ -431,7 +431,7 @@ private function findByPk($db, $type, $columnName = null) $max = null; foreach ($data as $dataRow) { $c = count($dataRow); - for($i = 0; $i < $c; ) { + for ($i = 0; $i < $c; ) { if ($dataRow[$i++] == $columnName && ($max == null || $dataRow[$i] > $max)) { $max = $dataRow[$i]; break; diff --git a/framework/assets/yii.js b/framework/assets/yii.js index 2f99226e923..b85d19b9ff6 100644 --- a/framework/assets/yii.js +++ b/framework/assets/yii.js @@ -158,7 +158,7 @@ yii = (function ($) { return {}; } var qs = url.substring(pos + 1).split('&'); - for(var i = 0, result = {}; i < qs.length; i++){ + for (var i = 0, result = {}; i < qs.length; i++) { qs[i] = qs[i].split('='); result[decodeURIComponent(qs[i][0])] = decodeURIComponent(qs[i][1]); }