@@ -27,10 +27,11 @@  | 
                                                    ||
| 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); | 
                                                        
@@ -21,8 +21,9 @@  | 
                                                    ||
| 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 | }  |