mirror of
				https://github.com/yiisoft/yii2.git
				synced 2025-11-04 14:46:19 +08:00 
			
		
		
		
	code style. FOR
This commit is contained in:
		@ -70,7 +70,7 @@ class ApiMarkdown extends GithubMarkdown
 | 
			
		||||
		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 {
 | 
			
		||||
 | 
			
		||||
@ -90,7 +90,7 @@ class ActiveQuery extends \yii\base\Component implements ActiveQueryInterface
 | 
			
		||||
		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 @@ class ActiveQuery extends \yii\base\Component implements ActiveQueryInterface
 | 
			
		||||
		}
 | 
			
		||||
		$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 @@ class ActiveQuery extends \yii\base\Component implements ActiveQueryInterface
 | 
			
		||||
				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 @@ class ActiveQuery extends \yii\base\Component implements ActiveQueryInterface
 | 
			
		||||
				$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 @@ class ActiveQuery extends \yii\base\Component implements ActiveQueryInterface
 | 
			
		||||
				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 @@ class ActiveQuery extends \yii\base\Component implements ActiveQueryInterface
 | 
			
		||||
				$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 @@ class ActiveQuery extends \yii\base\Component implements ActiveQueryInterface
 | 
			
		||||
				$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;
 | 
			
		||||
 | 
			
		||||
@ -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]);
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user