| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 10 | 
| Code Lines | 5 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 4 | 
| CRAP Score | 2.032 | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 34 | 8 | public function execute($user, $item, $params)  | 
            |
| 35 |     { | 
            ||
| 36 | 8 | $organization = $params['organization'];  | 
            |
| 37 | /* @var $organization Organization */// The Organization to be revoked.  | 
            ||
| 38 | // If current user is creator of organization, he is allowed to revoke it.  | 
            ||
| 39 | 8 |         if ($user->isOrganizationCreator($organization)) { | 
            |
| 40 | 8 | return true;  | 
            |
| 41 | }  | 
            ||
| 42 | return false;  | 
            ||
| 43 | }  | 
            ||
| 44 | }  | 
            ||
| 45 |