| Conditions | 3 | 
| Paths | 3 | 
| Total Lines | 13 | 
| Code Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 29 | public function postWrite(GetResponseForControllerResultEvent $event)  | 
            ||
| 30 |     { | 
            ||
| 31 | $role = $event->getControllerResult();  | 
            ||
| 32 | $method = $event->getRequest()->getMethod();  | 
            ||
| 33 | |||
| 34 |         if (!$role instanceof Role) { | 
            ||
| 35 | return;  | 
            ||
| 36 | }  | 
            ||
| 37 | |||
| 38 |         if ($method == 'POST') { | 
            ||
| 39 | $this->addResources($role);  | 
            ||
| 40 | }  | 
            ||
| 41 | }  | 
            ||
| 42 | |||
| 61 |