@@ -186,7 +186,7 @@ |
||
| 186 | 186 | * Find an existing cache by handle |
| 187 | 187 | * |
| 188 | 188 | * @param string $handle |
| 189 | - * @return null |
|
| 189 | + * @return null|ModelWithHandle |
|
| 190 | 190 | */ |
| 191 | 191 | public function findCacheByHandle(string $handle) |
| 192 | 192 | { |
@@ -43,11 +43,11 @@ |
||
| 43 | 43 | public function find($identifier, string $toScenario = null) |
| 44 | 44 | { |
| 45 | 45 | |
| 46 | - if($model = parent::find($identifier, $toScenario)) { |
|
| 46 | + if ($model = parent::find($identifier, $toScenario)) { |
|
| 47 | 47 | return $model; |
| 48 | 48 | } |
| 49 | 49 | |
| 50 | - if(!is_string($identifier)) { |
|
| 50 | + if (!is_string($identifier)) { |
|
| 51 | 51 | return null; |
| 52 | 52 | } |
| 53 | 53 | |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | */ |
| 31 | 31 | public static function prefixSessionData() |
| 32 | 32 | { |
| 33 | - return function () { |
|
| 33 | + return function() { |
|
| 34 | 34 | $request = Craft::$app->getRequest(); |
| 35 | 35 | $ip = $request instanceof Request ? $request->getUserIP() : '-'; |
| 36 | 36 | |
@@ -62,7 +62,7 @@ |
||
| 62 | 62 | *******************************************/ |
| 63 | 63 | |
| 64 | 64 | /** |
| 65 | - * @param array $config |
|
| 65 | + * @param Record $config |
|
| 66 | 66 | * @param string|null $toScenario |
| 67 | 67 | * @throws InvalidConfigException |
| 68 | 68 | * @return BaseModel |