Completed
Push — master ( 658920...8dc597 )
by Andrey
02:37
created
Widget.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,9 +32,13 @@
 block discarded – undo
32 32
     }
33 33
 
34 34
     public function __call($_name,$value){
35
-        if(isset($value[0]) && !empty($value[0]) && is_array($value[0])) extract($value[0]);
35
+        if(isset($value[0]) && !empty($value[0]) && is_array($value[0])) {
36
+            extract($value[0]);
37
+        }
36 38
         $file = self::$config['paths']['widget'].'/'.self::$property.'/'.$_name.'.phtml';
37
-        if(is_file($file)) require($file);
39
+        if(is_file($file)) {
40
+            require($file);
41
+        }
38 42
     }
39 43
 
40 44
 }
Please login to merge, or discard this patch.