Passed
Branch master (62b727)
by K
02:48
created
Category
src/MiniTraceBehavior.php 1 patch
Braces   +5 added lines, -4 removed lines patch added patch discarded remove patch
@@ -27,10 +27,11 @@
 block discarded – undo
27 27
         $trace  = debug_backtrace();
28 28
         array_shift($trace);
29 29
         foreach ($trace as $one) {
30
-            if (!isset($one['file']))
31
-                $result [] = 'unknown';
32
-            else
33
-                $result [] = sprintf('%s -- %s:%d', $one['function'], $one['file'], $one["line"]);
30
+            if (!isset($one['file'])) {
31
+                            $result [] = 'unknown';
32
+            } else {
33
+                            $result [] = sprintf('%s -- %s:%d', $one['function'], $one['file'], $one["line"]);
34
+            }
34 35
         }
35 36
 
36 37
         return implode("\n", $result);
Please login to merge, or discard this patch.
src/MultiFilter.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,8 +21,9 @@
 block discarded – undo
21 21
     protected function validateAttribute($object, $attribute)
22 22
     {
23 23
         foreach ($this->filters as $filter) {
24
-            if (!is_callable($filter))
25
-                throw new \CException(Yii::t('yii', 'The "filter" property must be specified with a valid callback.'));
24
+            if (!is_callable($filter)) {
25
+                            throw new \CException(Yii::t('yii', 'The "filter" property must be specified with a valid callback.'));
26
+            }
26 27
 
27 28
             $object->$attribute = call_user_func_array($filter, [$object->$attribute]);
28 29
         }
Please login to merge, or discard this patch.