Total Complexity | 2 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class NotificationAPI extends API |
||
10 | { |
||
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 | |||
32 | public static function handlePullNotification($uri, callable $handle, array $options = array()) |
||
45 | } |
||
46 | } |
||
47 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.