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
cbf649b1
Commit
cbf649b1
authored
Jan 12, 2014
by
Luciano Baraglia
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some code style fixes [skip ci]
parent
7bfdbe9d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
32 deletions
+34
-32
index.php
extensions/apidoc/templates/offline/views/index.php
+10
-8
offline.php
extensions/apidoc/templates/offline/views/offline.php
+12
-12
RedisCacheTest.php
tests/unit/extensions/redis/RedisCacheTest.php
+12
-12
No files found.
extensions/apidoc/templates/offline/views/index.php
View file @
cbf649b1
...
...
@@ -11,20 +11,22 @@ use yii\apidoc\models\TraitDoc;
?>
<h1>
Class Reference
</h1>
<table
class=
"summaryTable docIndex"
>
<colgroup>
<colgroup>
<col
class=
"col-package"
/>
<col
class=
"col-class"
/>
<col
class=
"col-description"
/>
</colgroup>
<tr>
<th>
Class
</th><th>
Description
</th>
</tr>
</colgroup>
<tr>
<th>
Class
</th>
<th>
Description
</th>
</tr>
<?php
ksort
(
$types
);
foreach
(
$types
as
$i
=>
$class
)
:
?>
<tr>
foreach
(
$types
as
$i
=>
$class
)
:
?>
<tr>
<td>
<?=
$this
->
context
->
typeLink
(
$class
,
$class
->
name
)
?>
</td>
<td>
<?=
\yii\apidoc\helpers\Markdown
::
process
(
$class
->
shortDescription
,
$class
)
?>
</td>
</tr>
</tr>
<?php
endforeach
;
?>
</table>
extensions/apidoc/templates/offline/views/offline.php
View file @
cbf649b1
...
...
@@ -19,20 +19,20 @@ $this->beginPage();
<body>
<?php
$this
->
beginBody
();
?>
<div
id=
"apiPage"
>
<div
id=
"apiPage"
>
<div
id=
"apiHeader"
>
<a
href=
"http://www.yiiframework.com"
>
Yii Framework
</a>
v
<?php
echo
Yii
::
getVersion
();
?>
Class Reference
</div>
<!-- end of header -->
<div
id=
"apiHeader"
>
<a
href=
"http://www.yiiframework.com"
>
Yii Framework
</a>
v
<?php
echo
Yii
::
getVersion
();
?>
Class Reference
</div>
<!-- end of header -->
<div
id=
"content"
>
<?php
echo
$content
;
?>
</div>
<!-- end of content -->
<div
id=
"content"
>
<?php
echo
$content
;
?>
</div>
<!-- end of content -->
<div
id=
"apiFooter"
>
©
2008-2013 by
<a
href=
"http://www.yiisoft.com"
>
Yii Software LLC
</a><br/
>
All Rights Reserved.
<br/
>
</div>
<!-- end of footer -->
<div
id=
"apiFooter"
>
<p>
©
2008-2013 by
<a
href=
"http://www.yiisoft.com"
>
Yii Software LLC
</a></p
>
<p>
All Rights Reserved.
</p
>
</div>
<!-- end of footer -->
<script
type=
"text/javascript"
>
/*<![CDATA[*/
...
...
@@ -64,7 +64,7 @@ $("a.sourceLink").click(function(){
/*]]>*/
</script>
</div>
<!-- end of page -->
</div>
<!-- end of page -->
<?php
$this
->
endBody
();
?>
</body>
</html>
...
...
tests/unit/extensions/redis/RedisCacheTest.php
View file @
cbf649b1
...
...
@@ -70,32 +70,32 @@ class RedisCacheTest extends CacheTestCase
{
$cache
=
$this
->
getCacheInstance
();
$data
=
str_repeat
(
'XX'
,
8192
);
// http://www.php.net/manual/en/function.fread.php
$key
=
'bigdata1'
;
$data
=
str_repeat
(
'XX'
,
8192
);
// http://www.php.net/manual/en/function.fread.php
$key
=
'bigdata1'
;
$this
->
assertFalse
(
$cache
->
get
(
$key
));
$cache
->
set
(
$key
,
$data
);
$this
->
assertTrue
(
$cache
->
get
(
$key
)
===
$data
);
$cache
->
set
(
$key
,
$data
);
$this
->
assertTrue
(
$cache
->
get
(
$key
)
===
$data
);
// try with multibyte string
$data
=
str_repeat
(
'ЖЫ'
,
8192
);
// http://www.php.net/manual/en/function.fread.php
$key
=
'bigdata2'
;
$data
=
str_repeat
(
'ЖЫ'
,
8192
);
// http://www.php.net/manual/en/function.fread.php
$key
=
'bigdata2'
;
$this
->
assertFalse
(
$cache
->
get
(
$key
));
$cache
->
set
(
$key
,
$data
);
$this
->
assertTrue
(
$cache
->
get
(
$key
)
===
$data
);
$cache
->
set
(
$key
,
$data
);
$this
->
assertTrue
(
$cache
->
get
(
$key
)
===
$data
);
}
public
function
testMultiByteGetAndSet
()
{
$cache
=
$this
->
getCacheInstance
();
$data
=
[
'abc'
=>
'ежик'
,
2
=>
'def'
];
$key
=
'data1'
;
$data
=
[
'abc'
=>
'ежик'
,
2
=>
'def'
];
$key
=
'data1'
;
$this
->
assertFalse
(
$cache
->
get
(
$key
));
$cache
->
set
(
$key
,
$data
);
$this
->
assertTrue
(
$cache
->
get
(
$key
)
===
$data
);
$cache
->
set
(
$key
,
$data
);
$this
->
assertTrue
(
$cache
->
get
(
$key
)
===
$data
);
}
}
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