@@ -261,7 +261,7 @@ |
||
261 | 261 | */ |
262 | 262 | public function render($file, array $args = []) |
263 | 263 | { |
264 | - $view = new View(); |
|
264 | + $view = new View(); |
|
265 | 265 | return $view->renderPhpFile(rtrim($this->getFolder(), DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR . FileHelper::ensureExtension($file, 'php'), $args); |
266 | 266 | |
267 | 267 | } |
@@ -262,7 +262,7 @@ |
||
262 | 262 | public function render($file, array $args = []) |
263 | 263 | { |
264 | 264 | $view = new View(); |
265 | - return $view->renderPhpFile(rtrim($this->getFolder(), DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR . FileHelper::ensureExtension($file, 'php'), $args); |
|
265 | + return $view->renderPhpFile(rtrim($this->getFolder(), DIRECTORY_SEPARATOR).DIRECTORY_SEPARATOR.FileHelper::ensureExtension($file, 'php'), $args); |
|
266 | 266 | |
267 | 267 | } |
268 | 268 | } |
@@ -83,7 +83,7 @@ |
||
83 | 83 | */ |
84 | 84 | public function url($route, array $params = [], $scheme = false) |
85 | 85 | { |
86 | - trigger_error('Deprecated since 1.0.0-RC3 use \luya\helpers\Url::toRoute instead. Will be removed in 1.0.0', E_USER_DEPRECATED); |
|
86 | + trigger_error('Deprecated since 1.0.0-RC3 use \luya\helpers\Url::toRoute instead. Will be removed in 1.0.0', E_USER_DEPRECATED); |
|
87 | 87 | $routeParams = [$route]; |
88 | 88 | foreach ($params as $key => $value) { |
89 | 89 | $routeParams[$key] = $value; |
@@ -12,25 +12,25 @@ |
||
12 | 12 | */ |
13 | 13 | trait RegistryTrait |
14 | 14 | { |
15 | - /** |
|
16 | - * Determines what attribute field in the corresponding model table should be used to find the identifier key. |
|
17 | - * |
|
18 | - * @return string The name attribute field defaults to `name`. |
|
19 | - */ |
|
20 | - public static function getNameAttribute() |
|
21 | - { |
|
22 | - return 'name'; |
|
23 | - } |
|
15 | + /** |
|
16 | + * Determines what attribute field in the corresponding model table should be used to find the identifier key. |
|
17 | + * |
|
18 | + * @return string The name attribute field defaults to `name`. |
|
19 | + */ |
|
20 | + public static function getNameAttribute() |
|
21 | + { |
|
22 | + return 'name'; |
|
23 | + } |
|
24 | 24 | |
25 | - /** |
|
26 | - * Determines what attribute field in the corresponding model table should be used to store the identifier key and retrieve its data. |
|
27 | - * |
|
28 | - * @return string The value attribute field defaults to `value`. |
|
29 | - */ |
|
30 | - public static function getValueAttribute() |
|
31 | - { |
|
32 | - return 'value'; |
|
33 | - } |
|
25 | + /** |
|
26 | + * Determines what attribute field in the corresponding model table should be used to store the identifier key and retrieve its data. |
|
27 | + * |
|
28 | + * @return string The value attribute field defaults to `value`. |
|
29 | + */ |
|
30 | + public static function getValueAttribute() |
|
31 | + { |
|
32 | + return 'value'; |
|
33 | + } |
|
34 | 34 | |
35 | 35 | /** |
36 | 36 | * Check whether a config value exists or not |
@@ -60,7 +60,7 @@ |
||
60 | 60 | { |
61 | 61 | if (Yii::$app->request->isPost) { |
62 | 62 | if ((time() - $this->getRenderTime()) < $this->delay) { |
63 | - throw new InvalidCallException("Robots Filter has detected an invalid Request: " . VarDumper::export(Yii::$app->request->post())); |
|
63 | + throw new InvalidCallException("Robots Filter has detected an invalid Request: ".VarDumper::export(Yii::$app->request->post())); |
|
64 | 64 | } |
65 | 65 | } |
66 | 66 | } |