Commit 899b7789 by Alexander Mohorev

Correct type declarations

parent 64b4d6dc
......@@ -92,7 +92,7 @@ use yii\helpers\ArrayHelper;
class ActiveField extends \yii\widgets\ActiveField
{
/**
* @var bool whether to render [[checkboxList()]] and [[radioList()]] inline.
* @var boolean whether to render [[checkboxList()]] and [[radioList()]] inline.
*/
public $inline = false;
/**
......@@ -137,11 +137,11 @@ class ActiveField extends \yii\widgets\ActiveField
*/
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 boolean whether to render the error. Default is `true` except for layout `inline`.
*/
public $enableError = true;
/**
* @var bool whether to render the label. Default is `true`.
* @var boolean whether to render the label. Default is `true`.
*/
public $enableLabel = true;
......@@ -303,7 +303,7 @@ class ActiveField extends \yii\widgets\ActiveField
}
/**
* @param bool $value whether to render a inline list
* @param boolean $value whether to render a inline list
* @return static the field object itself
* Make sure you call this method before [[checkboxList()]] or [[radioList()]] to have any effect.
*/
......
......@@ -176,7 +176,7 @@ class Security extends Component
/**
* Encrypts data.
* @param string $data data to be encrypted
* @param bool $passwordBased set true to use password-based key derivation
* @param boolean $passwordBased set true to use password-based key derivation
* @param string $secret the encryption password or key
* @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.
......@@ -217,7 +217,7 @@ class Security extends Component
/**
* Decrypts data.
* @param string $data encrypted data to be decrypted.
* @param bool $passwordBased set true to use password-based key derivation
* @param boolean $passwordBased set true to use password-based key derivation
* @param string $secret the decryption password or key
* @param string $info context/application specific information, @see encrypt()
* @return bool|string the decrypted data or false on authentication failure
......@@ -290,7 +290,7 @@ class Security extends Component
* @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
* [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 integer $length length of the output key in bytes. If 0, the output key is
* the length of the hash algorithm output.
* @throws InvalidParamException
* @return string the derived key
......@@ -335,9 +335,9 @@ class Security extends Component
* @param string $algo a hash algorithm supported by `hash_hmac()`, e.g. 'SHA-256'
* @param string $password the source password
* @param string $salt the random salt
* @param int $iterations the number of iterations of the hash algorithm. Set as high as
* @param integer $iterations the number of iterations of the hash algorithm. Set as high as
* possible to hinder dictionary password attacks.
* @param int $length length of the output key in bytes. If 0, the output key is
* @param integer $length length of the output key in bytes. If 0, the output key is
* the length of the hash algorithm output.
* @throws InvalidParamException
* @return string the derived key
......
......@@ -601,7 +601,7 @@ EOD;
/**
* Creates template of configuration file for [[actionCompress]].
* @param string $configFile output file name.
* @return int CLI exit code
* @return integer CLI exit code
* @throws \yii\console\Exception on failure.
*/
public function actionTemplate($configFile)
......
......@@ -302,7 +302,7 @@ abstract class BaseMigrateController extends Controller
*
* @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.
* @return int CLI exit code
* @return integer CLI exit code
* @throws Exception if the version argument is invalid or the version cannot be found.
*/
public function actionMark($version)
......@@ -562,7 +562,7 @@ abstract class BaseMigrateController extends Controller
/**
* Migrates to the certain version.
* @param string $version name in the full format.
* @return int CLI exit code
* @return integer CLI exit code
* @throws Exception if the provided version cannot be found.
*/
protected function migrateToVersion($version)
......
......@@ -55,7 +55,7 @@ class FixtureController extends Controller
*/
public $namespace = 'tests\unit\fixtures';
/**
* @var bool whether to append new fixture data to the existing ones.
* @var boolean 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.
*/
public $append = false;
......
......@@ -50,7 +50,7 @@ class MessageController extends Controller
* you may use this configuration file with the "extract" command.
*
* @param string $filePath output file name or alias.
* @return int CLI exit code
* @return integer CLI exit code
* @throws Exception on failure.
*/
public function actionConfig($filePath)
......
......@@ -50,7 +50,7 @@ class CheckboxColumn extends Column
*/
public $checkboxOptions = [];
/**
* @var bool whether it is possible to select multiple rows. Defaults to `true`.
* @var boolean whether it is possible to select multiple rows. Defaults to `true`.
*/
public $multiple = true;
......
......@@ -332,7 +332,7 @@ class BaseConsole
/**
* Returns the length of the string without ANSI color codes.
* @param string $string the string to measure
* @return int the length of the string not counting ANSI format characters
* @return integer the length of the string not counting ANSI format characters
*/
public static function ansiStrlen($string) {
return mb_strlen(static::stripAnsiFormat($string));
......
......@@ -84,7 +84,7 @@ class UrlRule extends Object implements UrlRuleInterface
*/
public $mode;
/**
* @var bool a value indicating if parameters should be url encoded.
* @var boolean a value indicating if parameters should be url encoded.
*/
public $encodeParams = true;
......
......@@ -5,9 +5,9 @@ namespace yiiunit\data\ar;
/**
* Model representing type table
*
* @property int $int_col
* @property int $int_col2 DEFAULT 1
* @property int $smallint_col DEFAULT 1
* @property integer $int_col
* @property integer $int_col2 DEFAULT 1
* @property integer $smallint_col DEFAULT 1
* @property string $char_col
* @property string $char_col2 DEFAULT 'something'
* @property string $char_col3
......
......@@ -215,8 +215,8 @@ class SecurityTest extends TestCase
* @param string $hash
* @param string $password
* @param string $salt
* @param int $iterations
* @param int $length
* @param integer $iterations
* @param integer $length
* @param string $okm
*/
public function testPbkdf2($hash, $password, $salt, $iterations, $length, $okm)
......@@ -303,7 +303,7 @@ class SecurityTest extends TestCase
* @param string $ikm
* @param string $salt
* @param string $info
* @param int $l
* @param integer $l
* @param string $prk
* @param string $okm
*/
......
......@@ -13,7 +13,7 @@ function time()
/**
* Mock for the microtime() function for caching classes
* @param bool $float
* @param boolean $float
* @return float
*/
function microtime($float = false)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment