@@ -74,7 +74,7 @@ |
||
74 | 74 | return false; |
75 | 75 | } |
76 | 76 | |
77 | - $timestamp = (int) substr($token, strrpos($token, '_') + 1); |
|
77 | + $timestamp = (int)substr($token, strrpos($token, '_') + 1); |
|
78 | 78 | $expire = Yii::$app->params['user.passwordResetTokenExpire']; |
79 | 79 | |
80 | 80 | return $timestamp + $expire >= time(); |
@@ -8,8 +8,8 @@ |
||
8 | 8 | 'charset' => 'utf8', |
9 | 9 | ]; |
10 | 10 | |
11 | -if (file_exists(__DIR__.'/db.local.php')) { |
|
12 | - $db = array_merge($db, require(__DIR__.'/db.local.php')); |
|
11 | +if (file_exists(__DIR__ . '/db.local.php')) { |
|
12 | + $db = array_merge($db, require(__DIR__ . '/db.local.php')); |
|
13 | 13 | } |
14 | 14 | |
15 | 15 | return $db; |
@@ -107,7 +107,7 @@ |
||
107 | 107 | return Validator::createValidator( |
108 | 108 | $this->rule_class, |
109 | 109 | $model, |
110 | - (array) $attributes, |
|
110 | + (array)$attributes, |
|
111 | 111 | ArrayHelper::map($this->properties, 'property', 'value') |
112 | 112 | ); |
113 | 113 | } |
@@ -46,7 +46,7 @@ |
||
46 | 46 | { |
47 | 47 | return [ |
48 | 48 | [['name', 'label', 'cast'], 'required'], |
49 | - [['name', 'label', 'cast',], 'string', 'min' => 4], |
|
49 | + [['name', 'label', 'cast', ], 'string', 'min' => 4], |
|
50 | 50 | [['name'], 'unique'], |
51 | 51 | [['cast'], 'verifyCast'], |
52 | 52 | ]; |
@@ -53,7 +53,7 @@ |
||
53 | 53 | } |
54 | 54 | if (!$owner instanceof ActiveRecord) { |
55 | 55 | throw new InvalidConfigException( |
56 | - static::class . '::$owner must extend ' . ActiveRecord::class |
|
56 | + static::class . '::$owner must extend ' . ActiveRecord::class |
|
57 | 57 | ); |
58 | 58 | } |
59 | 59 | if (!$owner->hasAttribute($this->parentAttribute)) { |