| Conditions | 3 | 
| Paths | 4 | 
| Total Lines | 15 | 
| Code Lines | 8 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 10 | 
| CRAP Score | 3 | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 22 | 15 | public static function call($object, $method, $parameters, $anotherObject = null)  | 
            |
| 23 |     { | 
            ||
| 24 | 15 | $method = \Doctrine\Common\Util\Inflector::camelize($method);  | 
            |
| 25 | 15 | $result = $object;  | 
            |
| 26 | |||
| 27 | 15 |         if (is_null($anotherObject)) { | 
            |
| 28 | 9 | $anotherObject = $object;  | 
            |
| 29 | 9 | }  | 
            |
| 30 | |||
| 31 | 15 |         if (method_exists($anotherObject, $method)) { | 
            |
| 32 | 15 | $result = call_user_func_array([ $anotherObject, $method ], $parameters);  | 
            |
| 33 | 15 | }  | 
            |
| 34 | |||
| 35 | 15 | return $result;  | 
            |
| 36 | }  | 
            ||
| 37 | }  | 
            ||
| 38 |