Completed
Pull Request — master (#1324)
by Martin
03:12
created
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.
core/helpers/ArrayHelper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
     public static function search(array $array, $searchText, $sensitive = false)
97 97
     {
98 98
         $function = ($sensitive) ? 'strpos' : 'stripos';
99
-        return array_filter($array, function ($item) use ($searchText, $function) {
99
+        return array_filter($array, function($item) use ($searchText, $function) {
100 100
             $response = false;
101 101
             foreach ($item as $key => $value) {
102 102
                 if ($response) {
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
     {
139 139
         $columns = array_column($array, $column);
140 140
         $key = array_search($search, $columns);
141
-        return ($key !== false) ?  $array[$key] : false;
141
+        return ($key !== false) ? $array[$key] : false;
142 142
     }
143 143
     
144 144
     /**
Please login to merge, or discard this patch.