Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
f8496233
Commit
f8496233
authored
Mar 03, 2014
by
Alexander Mohorev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
code style. FOR
parent
95ea1c20
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
ApiMarkdown.php
extensions/apidoc/helpers/ApiMarkdown.php
+1
-1
ActiveQuery.php
extensions/redis/ActiveQuery.php
+7
-7
yii.js
framework/assets/yii.js
+1
-1
No files found.
extensions/apidoc/helpers/ApiMarkdown.php
View file @
f8496233
...
...
@@ -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
{
...
...
extensions/redis/ActiveQuery.php
View file @
f8496233
...
...
@@ -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
;
...
...
framework/assets/yii.js
View file @
f8496233
...
...
@@ -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
]);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment