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
91965fd3
Commit
91965fd3
authored
Apr 23, 2014
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
phpdoc formatting issues
parent
12d34849
Show whitespace changes
Inline
Side-by-side
Showing
27 changed files
with
21 additions
and
19 deletions
+21
-19
PhpDocController.php
build/controllers/PhpDocController.php
+10
-7
BaseYii.php
framework/BaseYii.php
+1
-0
Action.php
framework/base/Action.php
+0
-0
Behavior.php
framework/base/Behavior.php
+0
-0
InlineAction.php
framework/base/InlineAction.php
+0
-0
Module.php
framework/base/Module.php
+0
-0
Widget.php
framework/base/Widget.php
+1
-1
DbCache.php
framework/caching/DbCache.php
+1
-1
FileCache.php
framework/caching/FileCache.php
+1
-1
CaptchaAction.php
framework/captcha/CaptchaAction.php
+1
-1
Connection.php
framework/db/Connection.php
+0
-2
Query.php
framework/db/Query.php
+0
-0
QueryBuilder.php
framework/db/QueryBuilder.php
+1
-1
QueryInterface.php
framework/db/QueryInterface.php
+0
-0
Schema.php
framework/db/Schema.php
+0
-0
TableSchema.php
framework/db/TableSchema.php
+0
-0
Schema.php
framework/db/mysql/Schema.php
+0
-0
Schema.php
framework/db/pgsql/Schema.php
+0
-0
QueryBuilder.php
framework/db/sqlite/QueryBuilder.php
+1
-1
Schema.php
framework/db/sqlite/Schema.php
+0
-0
BaseSecurity.php
framework/helpers/BaseSecurity.php
+0
-0
Formatter.php
framework/i18n/Formatter.php
+0
-0
DbTarget.php
framework/log/DbTarget.php
+0
-0
RangeValidator.php
framework/validators/RangeValidator.php
+1
-1
RegularExpressionValidator.php
framework/validators/RegularExpressionValidator.php
+1
-1
UrlValidator.php
framework/validators/UrlValidator.php
+2
-2
AssetManager.php
framework/web/AssetManager.php
+0
-0
No files found.
build/controllers/PhpDocController.php
View file @
91965fd3
...
...
@@ -205,16 +205,18 @@ class PhpDocController extends Controller
$listIndent
=
false
;
$indent
=
''
;
foreach
(
$lines
as
$i
=>
$line
)
{
if
(
preg_match
(
'~^(\s
+
)/\*\*$~'
,
$line
,
$matches
))
{
if
(
preg_match
(
'~^(\s
*
)/\*\*$~'
,
$line
,
$matches
))
{
$docBlock
=
true
;
$indent
=
$matches
[
1
];
}
elseif
(
preg_match
(
'~^(\s+)\*/~'
,
$line
))
{
}
elseif
(
preg_match
(
'~^(\s+)\*+/~'
,
$line
))
{
if
(
$docBlock
)
{
// could be the end of normal comment
$lines
[
$i
]
=
$indent
.
' */'
;
}
$docBlock
=
false
;
$codeBlock
=
false
;
$listIndent
=
''
;
$lines
[
$i
]
=
$indent
.
' */'
;
}
elseif
(
$docBlock
)
{
$docLine
=
trim
(
$line
,
"
\t
*"
);
$docLine
=
str_replace
(
"
\t
"
,
' '
,
rtrim
(
substr
(
ltrim
(
$line
),
2
))
);
if
(
empty
(
$docLine
))
{
$listIndent
=
''
;
}
elseif
(
$docLine
[
0
]
===
'@'
)
{
...
...
@@ -223,15 +225,16 @@ class PhpDocController extends Controller
$docLine
=
preg_replace
(
'/\s+/'
,
' '
,
$docLine
);
}
elseif
(
preg_match
(
'/^(~~~|```)/'
,
$docLine
))
{
$codeBlock
=
!
$codeBlock
;
}
elseif
(
preg_match
(
'/^([0-9]+\.|-|\*|\+) /'
,
$docLine
,
$matches
))
{
$listIndent
=
''
;
}
elseif
(
preg_match
(
'/^(\s*)([0-9]+\.|-|\*|\+) /'
,
$docLine
,
$matches
))
{
$listIndent
=
str_repeat
(
' '
,
strlen
(
$matches
[
0
]));
$lines
[
$i
]
=
$indent
.
' * '
.
$docLine
;
continue
;
}
if
(
$codeBlock
)
{
$lines
[
$i
]
=
rtrim
(
$indent
.
' * '
.
substr
(
ltrim
(
$line
),
2
)
);
$lines
[
$i
]
=
rtrim
(
$indent
.
' * '
.
$docLine
);
}
else
{
$lines
[
$i
]
=
rtrim
(
$indent
.
' * '
.
$listIndent
.
$docLine
);
$lines
[
$i
]
=
rtrim
(
$indent
.
' * '
.
(
empty
(
$listIndent
)
?
$docLine
:
(
$listIndent
.
ltrim
(
$docLine
)))
);
}
}
}
...
...
framework/BaseYii.php
View file @
91965fd3
...
...
@@ -4,6 +4,7 @@
* @copyright Copyright (c) 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
*/
namespace
yii
;
use
yii\base\InvalidConfigException
;
...
...
framework/base/Action.php
View file @
91965fd3
framework/base/Behavior.php
View file @
91965fd3
framework/base/InlineAction.php
View file @
91965fd3
framework/base/Module.php
View file @
91965fd3
framework/base/Widget.php
View file @
91965fd3
...
...
@@ -171,7 +171,7 @@ class Widget extends Component implements ViewContextInterface
* - relative path (e.g. "index"): the actual view file will be looked for under [[viewPath]].
*
* If the view name does not contain a file extension, it will use the default one `.php`.
*
* @param string $view the view name.
* @param array $params the parameters (name-value pairs) that should be made available in the view.
* @return string the rendering result.
...
...
framework/caching/DbCache.php
View file @
91965fd3
...
...
@@ -69,7 +69,7 @@ class DbCache extends Cache
* @var integer the probability (parts per million) that garbage collection (GC) should be performed
* when storing a piece of data in the cache. Defaults to 100, meaning 0.01% chance.
* This number should be between 0 and 1000000. A value 0 meaning no GC will be performed at all.
*
*
/
*/
public
$gcProbability
=
100
;
/**
...
...
framework/caching/FileCache.php
View file @
91965fd3
...
...
@@ -52,7 +52,7 @@ class FileCache extends Cache
* @var integer the probability (parts per million) that garbage collection (GC) should be performed
* when storing a piece of data in the cache. Defaults to 10, meaning 0.001% chance.
* This number should be between 0 and 1000000. A value 0 means no GC will be performed at all.
*
*
/
*/
public
$gcProbability
=
10
;
/**
* @var integer the permission to be set for newly created cache files.
...
...
framework/captcha/CaptchaAction.php
View file @
91965fd3
...
...
@@ -82,7 +82,7 @@ class CaptchaAction extends Action
/**
* @var integer the offset between characters. Defaults to -2. You can adjust this property
* in order to decrease or increase the readability of the captcha.
*
*
/
*/
public
$offset
=
-
2
;
/**
* @var string the TrueType font file. This can be either a file path or path alias.
...
...
framework/db/Connection.php
View file @
91965fd3
...
...
@@ -76,7 +76,6 @@ use yii\caching\Cache;
* configuration like the following:
*
* ~~~
* [
* 'components' => [
* 'db' => [
* 'class' => '\yii\db\Connection',
...
...
@@ -86,7 +85,6 @@ use yii\caching\Cache;
* 'charset' => 'utf8',
* ],
* ],
* ]
* ~~~
*
* @property string $driverName Name of the DB driver.
...
...
framework/db/Query.php
View file @
91965fd3
framework/db/QueryBuilder.php
View file @
91965fd3
...
...
@@ -350,7 +350,7 @@ class QueryBuilder extends \yii\base\Object
* Builds a SQL statement for removing a primary key constraint to an existing table.
* @param string $name the name of the primary key constraint to be removed.
* @param string $table the table that the primary key constraint will be removed from.
* @return string the SQL statement for removing a primary key constraint from an existing table.
*
* @return string the SQL statement for removing a primary key constraint from an existing table.
*/
public
function
dropPrimaryKey
(
$name
,
$table
)
{
...
...
framework/db/QueryInterface.php
View file @
91965fd3
framework/db/Schema.php
View file @
91965fd3
framework/db/TableSchema.php
View file @
91965fd3
framework/db/mysql/Schema.php
View file @
91965fd3
framework/db/pgsql/Schema.php
View file @
91965fd3
framework/db/sqlite/QueryBuilder.php
View file @
91965fd3
...
...
@@ -254,7 +254,7 @@ class QueryBuilder extends \yii\db\QueryBuilder
* @param string $name the name of the primary key constraint to be removed.
* @param string $table the table that the primary key constraint will be removed from.
* @return string the SQL statement for removing a primary key constraint from an existing table.
* @throws NotSupportedException this is not supported by SQLite
*
* @throws NotSupportedException this is not supported by SQLite
*/
public
function
dropPrimaryKey
(
$name
,
$table
)
{
...
...
framework/db/sqlite/Schema.php
View file @
91965fd3
framework/helpers/BaseSecurity.php
View file @
91965fd3
framework/i18n/Formatter.php
View file @
91965fd3
framework/log/DbTarget.php
View file @
91965fd3
framework/validators/RangeValidator.php
View file @
91965fd3
...
...
@@ -33,7 +33,7 @@ class RangeValidator extends Validator
/**
* @var boolean whether to invert the validation logic. Defaults to false. If set to true,
* the attribute value should NOT be among the list of values defined via [[range]].
*
*
/
*/
public
$not
=
false
;
/**
...
...
framework/validators/RegularExpressionValidator.php
View file @
91965fd3
...
...
@@ -29,7 +29,7 @@ class RegularExpressionValidator extends Validator
/**
* @var boolean whether to invert the validation logic. Defaults to false. If set to true,
* the regular expression defined via [[pattern]] should NOT match the attribute value.
*
*
/
*/
public
$not
=
false
;
/**
...
...
framework/validators/UrlValidator.php
View file @
91965fd3
...
...
@@ -32,13 +32,13 @@ class UrlValidator extends Validator
/**
* @var array list of URI schemes which should be considered valid. By default, http and https
* are considered to be valid schemes.
*
*
/
*/
public
$validSchemes
=
[
'http'
,
'https'
];
/**
* @var string the default URI scheme. If the input doesn't contain the scheme part, the default
* scheme will be prepended to it (thus changing the input). Defaults to null, meaning a URL must
* contain the scheme part.
*
*
/
*/
public
$defaultScheme
;
/**
* @var boolean whether validation process should take into account IDN (internationalized
...
...
framework/web/AssetManager.php
View file @
91965fd3
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