| Conditions | 1 |
| Paths | 1 |
| Total Lines | 20 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | public function subscribeToPushNotifications( |
||
| 12 | BaseFolderIdType $folderId, |
||
| 13 | array $events, |
||
| 14 | $url, |
||
| 15 | $frequency, |
||
| 16 | array $options = array() |
||
| 17 | ) { |
||
| 18 | $request = [ |
||
| 19 | 'EventTypes' => ['EventType' => $events], |
||
| 20 | 'URL' => $url, |
||
| 21 | 'StatusFrequency' => $frequency, |
||
| 22 | 'FolderIds' => $folderId->toArray(true) |
||
| 23 | ]; |
||
| 24 | |||
| 25 | $request = array_replace_recursive($request, $options); |
||
| 26 | |||
| 27 | return $this->getClient()->Subscribe([ |
||
| 28 | 'PushSubscriptionRequest' => $request |
||
| 29 | ]); |
||
| 30 | } |
||
| 31 | |||
| 47 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.