| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 32 | public static function handlePullNotification($uri, callable $handle, array $options = array()) |
||
|
|
|||
| 33 | { |
||
| 34 | $server = new \SoapServer( |
||
| 35 | __DIR__ . '/../Resources/wsdl/notification-service.wsdl', |
||
| 36 | [ |
||
| 37 | 'uri' => $uri, |
||
| 38 | 'classmap' => ClassMap::getClassMap(), |
||
| 39 | ] |
||
| 40 | ); |
||
| 41 | $server->setObject(new NotificationHandler($handle)); |
||
| 42 | $server->handle(); |
||
| 43 | |||
| 44 | return $server; |
||
| 45 | } |
||
| 47 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.