|
@@ -57,8 +57,8 @@ |
|
|
block discarded – undo |
|
57
|
57
|
public function getAll($limit = self::NOTIFICATIONS_LIMIT, $offset = 0) |
|
58
|
58
|
{ |
|
59
|
59
|
return $this->api->request('GET', '/notifications?' . http_build_query([ |
|
60
|
|
- 'limit' => max(0, min(self::NOTIFICATIONS_LIMIT, filter_var($limit, FILTER_VALIDATE_INT))), |
|
61
|
|
- 'offset' => max(0, min(self::NOTIFICATIONS_LIMIT, filter_var($offset, FILTER_VALIDATE_INT))), |
|
|
60
|
+ 'limit' => max(0, min(self::NOTIFICATIONS_LIMIT, filter_var($limit, FILTER_VALIDATE_INT))), |
|
|
61
|
+ 'offset' => max(0, min(self::NOTIFICATIONS_LIMIT, filter_var($offset, FILTER_VALIDATE_INT))), |
|
62
|
62
|
]), [ |
|
63
|
63
|
'headers' => [ |
|
64
|
64
|
'Authorization' => 'Basic ' . $this->api->getConfig()->getApplicationAuthKey(), |
Please login to merge, or discard this patch.