| Conditions | 3 | 
| Paths | 3 | 
| Total Lines | 13 | 
| Code Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 8 | 
| CRAP Score | 3 | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 17 | 6 | public function vote($parameter = null, $user = null, array $additional = [])  | 
            |
| 18 |     { | 
            ||
| 19 | 6 |         if (empty($parameter)) { | 
            |
| 20 | 1 | return false;  | 
            |
| 21 | }  | 
            ||
| 22 | |||
| 23 | 5 | $language = new ExpressionLanguage();  | 
            |
| 24 | 5 |         if (! array_key_exists('user', $additional)) { | 
            |
| 25 | 4 | $additional['user'] = $user;  | 
            |
| 26 | 4 | }  | 
            |
| 27 | |||
| 28 | 5 | return FeatureJudge::isTrue($language->evaluate($parameter, $additional));  | 
            |
| 29 | }  | 
            ||
| 30 | }  | 
            ||
| 31 |