Completed
Pull Request — master (#1319)
by Alexander
03:11
created
core/web/Element.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -261,7 +261,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -262,7 +262,7 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
core/web/View.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
core/traits/RegistryTrait.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -12,25 +12,25 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
core/web/filters/RobotsFilter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.