Skip to content

Commit

Permalink
code style. FOR
Browse files Browse the repository at this point in the history
  • Loading branch information
mohorev committed Mar 3, 2014
1 parent 95ea1c2 commit f849623
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion extensions/apidoc/helpers/ApiMarkdown.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
14 changes: 7 additions & 7 deletions extensions/redis/ActiveQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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];
Expand All @@ -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;
Expand All @@ -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;
Expand All @@ -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;
Expand All @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion framework/assets/yii.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
}
Expand Down

0 comments on commit f849623

Please sign in to comment.