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
899b7789
Commit
899b7789
authored
Oct 25, 2014
by
Alexander Mohorev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct type declarations
parent
64b4d6dc
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
24 additions
and
24 deletions
+24
-24
ActiveField.php
extensions/bootstrap/ActiveField.php
+4
-4
Security.php
framework/base/Security.php
+5
-5
AssetController.php
framework/console/controllers/AssetController.php
+1
-1
BaseMigrateController.php
framework/console/controllers/BaseMigrateController.php
+2
-2
FixtureController.php
framework/console/controllers/FixtureController.php
+1
-1
MessageController.php
framework/console/controllers/MessageController.php
+1
-1
CheckboxColumn.php
framework/grid/CheckboxColumn.php
+1
-1
BaseConsole.php
framework/helpers/BaseConsole.php
+1
-1
UrlRule.php
framework/web/UrlRule.php
+1
-1
Type.php
tests/unit/data/ar/Type.php
+3
-3
SecurityTest.php
tests/unit/framework/base/SecurityTest.php
+3
-3
CacheTestCase.php
tests/unit/framework/caching/CacheTestCase.php
+1
-1
No files found.
extensions/bootstrap/ActiveField.php
View file @
899b7789
...
@@ -92,7 +92,7 @@ use yii\helpers\ArrayHelper;
...
@@ -92,7 +92,7 @@ use yii\helpers\ArrayHelper;
class
ActiveField
extends
\yii\widgets\ActiveField
class
ActiveField
extends
\yii\widgets\ActiveField
{
{
/**
/**
* @var bool whether to render [[checkboxList()]] and [[radioList()]] inline.
* @var bool
ean
whether to render [[checkboxList()]] and [[radioList()]] inline.
*/
*/
public
$inline
=
false
;
public
$inline
=
false
;
/**
/**
...
@@ -137,11 +137,11 @@ class ActiveField extends \yii\widgets\ActiveField
...
@@ -137,11 +137,11 @@ class ActiveField extends \yii\widgets\ActiveField
*/
*/
public
$inlineRadioListTemplate
=
"
{
label}\n{beginWrapper}\n{input}\n{error}\n{endWrapper}\n{hint
}
"
;
public
$inlineRadioListTemplate
=
"
{
label}\n{beginWrapper}\n{input}\n{error}\n{endWrapper}\n{hint
}
"
;
/**
/**
* @var bool whether to render the error. Default is `true` except for layout `inline`.
* @var bool
ean
whether to render the error. Default is `true` except for layout `inline`.
*/
*/
public
$enableError
=
true
;
public
$enableError
=
true
;
/**
/**
* @var bool whether to render the label. Default is `true`.
* @var bool
ean
whether to render the label. Default is `true`.
*/
*/
public
$enableLabel
=
true
;
public
$enableLabel
=
true
;
...
@@ -303,7 +303,7 @@ class ActiveField extends \yii\widgets\ActiveField
...
@@ -303,7 +303,7 @@ class ActiveField extends \yii\widgets\ActiveField
}
}
/**
/**
* @param bool $value whether to render a inline list
* @param bool
ean
$value whether to render a inline list
* @return static the field object itself
* @return static the field object itself
* Make sure you call this method before [[checkboxList()]] or [[radioList()]] to have any effect.
* Make sure you call this method before [[checkboxList()]] or [[radioList()]] to have any effect.
*/
*/
...
...
framework/base/Security.php
View file @
899b7789
...
@@ -176,7 +176,7 @@ class Security extends Component
...
@@ -176,7 +176,7 @@ class Security extends Component
/**
/**
* Encrypts data.
* Encrypts data.
* @param string $data data to be encrypted
* @param string $data data to be encrypted
* @param bool $passwordBased set true to use password-based key derivation
* @param bool
ean
$passwordBased set true to use password-based key derivation
* @param string $secret the encryption password or key
* @param string $secret the encryption password or key
* @param string $info context/application specific information, e.g. a user ID
* @param string $info context/application specific information, e.g. a user ID
* See [RFC 5869 Section 3.2](https://tools.ietf.org/html/rfc5869#section-3.2) for more details.
* See [RFC 5869 Section 3.2](https://tools.ietf.org/html/rfc5869#section-3.2) for more details.
...
@@ -217,7 +217,7 @@ class Security extends Component
...
@@ -217,7 +217,7 @@ class Security extends Component
/**
/**
* Decrypts data.
* Decrypts data.
* @param string $data encrypted data to be decrypted.
* @param string $data encrypted data to be decrypted.
* @param bool $passwordBased set true to use password-based key derivation
* @param bool
ean
$passwordBased set true to use password-based key derivation
* @param string $secret the decryption password or key
* @param string $secret the decryption password or key
* @param string $info context/application specific information, @see encrypt()
* @param string $info context/application specific information, @see encrypt()
* @return bool|string the decrypted data or false on authentication failure
* @return bool|string the decrypted data or false on authentication failure
...
@@ -290,7 +290,7 @@ class Security extends Component
...
@@ -290,7 +290,7 @@ class Security extends Component
* @param string $info optional info to bind the derived key material to application-
* @param string $info optional info to bind the derived key material to application-
* and context-specific information, e.g. a user ID or API version, see
* and context-specific information, e.g. a user ID or API version, see
* [RFC 5869](https://tools.ietf.org/html/rfc5869)
* [RFC 5869](https://tools.ietf.org/html/rfc5869)
* @param int $length length of the output key in bytes. If 0, the output key is
* @param int
eger
$length length of the output key in bytes. If 0, the output key is
* the length of the hash algorithm output.
* the length of the hash algorithm output.
* @throws InvalidParamException
* @throws InvalidParamException
* @return string the derived key
* @return string the derived key
...
@@ -335,9 +335,9 @@ class Security extends Component
...
@@ -335,9 +335,9 @@ class Security extends Component
* @param string $algo a hash algorithm supported by `hash_hmac()`, e.g. 'SHA-256'
* @param string $algo a hash algorithm supported by `hash_hmac()`, e.g. 'SHA-256'
* @param string $password the source password
* @param string $password the source password
* @param string $salt the random salt
* @param string $salt the random salt
* @param int $iterations the number of iterations of the hash algorithm. Set as high as
* @param int
eger
$iterations the number of iterations of the hash algorithm. Set as high as
* possible to hinder dictionary password attacks.
* possible to hinder dictionary password attacks.
* @param int $length length of the output key in bytes. If 0, the output key is
* @param int
eger
$length length of the output key in bytes. If 0, the output key is
* the length of the hash algorithm output.
* the length of the hash algorithm output.
* @throws InvalidParamException
* @throws InvalidParamException
* @return string the derived key
* @return string the derived key
...
...
framework/console/controllers/AssetController.php
View file @
899b7789
...
@@ -601,7 +601,7 @@ EOD;
...
@@ -601,7 +601,7 @@ EOD;
/**
/**
* Creates template of configuration file for [[actionCompress]].
* Creates template of configuration file for [[actionCompress]].
* @param string $configFile output file name.
* @param string $configFile output file name.
* @return int CLI exit code
* @return int
eger
CLI exit code
* @throws \yii\console\Exception on failure.
* @throws \yii\console\Exception on failure.
*/
*/
public
function
actionTemplate
(
$configFile
)
public
function
actionTemplate
(
$configFile
)
...
...
framework/console/controllers/BaseMigrateController.php
View file @
899b7789
...
@@ -302,7 +302,7 @@ abstract class BaseMigrateController extends Controller
...
@@ -302,7 +302,7 @@ abstract class BaseMigrateController extends Controller
*
*
* @param string $version the version at which the migration history should be marked.
* @param string $version the version at which the migration history should be marked.
* This can be either the timestamp or the full name of the migration.
* This can be either the timestamp or the full name of the migration.
* @return int CLI exit code
* @return int
eger
CLI exit code
* @throws Exception if the version argument is invalid or the version cannot be found.
* @throws Exception if the version argument is invalid or the version cannot be found.
*/
*/
public
function
actionMark
(
$version
)
public
function
actionMark
(
$version
)
...
@@ -562,7 +562,7 @@ abstract class BaseMigrateController extends Controller
...
@@ -562,7 +562,7 @@ abstract class BaseMigrateController extends Controller
/**
/**
* Migrates to the certain version.
* Migrates to the certain version.
* @param string $version name in the full format.
* @param string $version name in the full format.
* @return int CLI exit code
* @return int
eger
CLI exit code
* @throws Exception if the provided version cannot be found.
* @throws Exception if the provided version cannot be found.
*/
*/
protected
function
migrateToVersion
(
$version
)
protected
function
migrateToVersion
(
$version
)
...
...
framework/console/controllers/FixtureController.php
View file @
899b7789
...
@@ -55,7 +55,7 @@ class FixtureController extends Controller
...
@@ -55,7 +55,7 @@ class FixtureController extends Controller
*/
*/
public
$namespace
=
'tests\unit\fixtures'
;
public
$namespace
=
'tests\unit\fixtures'
;
/**
/**
* @var bool whether to append new fixture data to the existing ones.
* @var bool
ean
whether to append new fixture data to the existing ones.
* Defaults to false, meaning if there is any existing fixture data, it will be removed.
* Defaults to false, meaning if there is any existing fixture data, it will be removed.
*/
*/
public
$append
=
false
;
public
$append
=
false
;
...
...
framework/console/controllers/MessageController.php
View file @
899b7789
...
@@ -50,7 +50,7 @@ class MessageController extends Controller
...
@@ -50,7 +50,7 @@ class MessageController extends Controller
* you may use this configuration file with the "extract" command.
* you may use this configuration file with the "extract" command.
*
*
* @param string $filePath output file name or alias.
* @param string $filePath output file name or alias.
* @return int CLI exit code
* @return int
eger
CLI exit code
* @throws Exception on failure.
* @throws Exception on failure.
*/
*/
public
function
actionConfig
(
$filePath
)
public
function
actionConfig
(
$filePath
)
...
...
framework/grid/CheckboxColumn.php
View file @
899b7789
...
@@ -50,7 +50,7 @@ class CheckboxColumn extends Column
...
@@ -50,7 +50,7 @@ class CheckboxColumn extends Column
*/
*/
public
$checkboxOptions
=
[];
public
$checkboxOptions
=
[];
/**
/**
* @var bool whether it is possible to select multiple rows. Defaults to `true`.
* @var bool
ean
whether it is possible to select multiple rows. Defaults to `true`.
*/
*/
public
$multiple
=
true
;
public
$multiple
=
true
;
...
...
framework/helpers/BaseConsole.php
View file @
899b7789
...
@@ -332,7 +332,7 @@ class BaseConsole
...
@@ -332,7 +332,7 @@ class BaseConsole
/**
/**
* Returns the length of the string without ANSI color codes.
* Returns the length of the string without ANSI color codes.
* @param string $string the string to measure
* @param string $string the string to measure
* @return int the length of the string not counting ANSI format characters
* @return int
eger
the length of the string not counting ANSI format characters
*/
*/
public
static
function
ansiStrlen
(
$string
)
{
public
static
function
ansiStrlen
(
$string
)
{
return
mb_strlen
(
static
::
stripAnsiFormat
(
$string
));
return
mb_strlen
(
static
::
stripAnsiFormat
(
$string
));
...
...
framework/web/UrlRule.php
View file @
899b7789
...
@@ -84,7 +84,7 @@ class UrlRule extends Object implements UrlRuleInterface
...
@@ -84,7 +84,7 @@ class UrlRule extends Object implements UrlRuleInterface
*/
*/
public
$mode
;
public
$mode
;
/**
/**
* @var bool a value indicating if parameters should be url encoded.
* @var bool
ean
a value indicating if parameters should be url encoded.
*/
*/
public
$encodeParams
=
true
;
public
$encodeParams
=
true
;
...
...
tests/unit/data/ar/Type.php
View file @
899b7789
...
@@ -5,9 +5,9 @@ namespace yiiunit\data\ar;
...
@@ -5,9 +5,9 @@ namespace yiiunit\data\ar;
/**
/**
* Model representing type table
* Model representing type table
*
*
* @property int $int_col
* @property int
eger
$int_col
* @property int $int_col2 DEFAULT 1
* @property int
eger
$int_col2 DEFAULT 1
* @property int $smallint_col DEFAULT 1
* @property int
eger
$smallint_col DEFAULT 1
* @property string $char_col
* @property string $char_col
* @property string $char_col2 DEFAULT 'something'
* @property string $char_col2 DEFAULT 'something'
* @property string $char_col3
* @property string $char_col3
...
...
tests/unit/framework/base/SecurityTest.php
View file @
899b7789
...
@@ -215,8 +215,8 @@ class SecurityTest extends TestCase
...
@@ -215,8 +215,8 @@ class SecurityTest extends TestCase
* @param string $hash
* @param string $hash
* @param string $password
* @param string $password
* @param string $salt
* @param string $salt
* @param int $iterations
* @param int
eger
$iterations
* @param int $length
* @param int
eger
$length
* @param string $okm
* @param string $okm
*/
*/
public
function
testPbkdf2
(
$hash
,
$password
,
$salt
,
$iterations
,
$length
,
$okm
)
public
function
testPbkdf2
(
$hash
,
$password
,
$salt
,
$iterations
,
$length
,
$okm
)
...
@@ -303,7 +303,7 @@ class SecurityTest extends TestCase
...
@@ -303,7 +303,7 @@ class SecurityTest extends TestCase
* @param string $ikm
* @param string $ikm
* @param string $salt
* @param string $salt
* @param string $info
* @param string $info
* @param int $l
* @param int
eger
$l
* @param string $prk
* @param string $prk
* @param string $okm
* @param string $okm
*/
*/
...
...
tests/unit/framework/caching/CacheTestCase.php
View file @
899b7789
...
@@ -13,7 +13,7 @@ function time()
...
@@ -13,7 +13,7 @@ function time()
/**
/**
* Mock for the microtime() function for caching classes
* Mock for the microtime() function for caching classes
* @param bool $float
* @param bool
ean
$float
* @return float
* @return float
*/
*/
function
microtime
(
$float
=
false
)
function
microtime
(
$float
=
false
)
...
...
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