@@ -32,7 +32,7 @@ |
||
32 | 32 | { |
33 | 33 | parent::__construct($reason, $code, $previous); |
34 | 34 | |
35 | - $this->timestamp = (int) $timestamp; |
|
35 | + $this->timestamp = (int)$timestamp; |
|
36 | 36 | } |
37 | 37 | |
38 | 38 | /** |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | $payloadBody['alert'] = $payloadBody['alert']->getAlertBody(); |
111 | 111 | } |
112 | 112 | |
113 | - if (!empty($this->customData)) { |
|
113 | + if ( ! empty($this->customData)) { |
|
114 | 114 | $payloadBody = array_merge($payloadBody, $this->customData); |
115 | 115 | } |
116 | 116 | |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | */ |
147 | 147 | public function setAlert($alert) |
148 | 148 | { |
149 | - if (!is_string($alert) && !$alert instanceof MessageAlert) { |
|
149 | + if ( ! is_string($alert) && ! $alert instanceof MessageAlert) { |
|
150 | 150 | throw new \InvalidArgumentException( |
151 | 151 | sprintf( |
152 | 152 | 'Messages alert must be either string or instance of MessageAlert. Instance of "%s" provided', |
@@ -199,8 +199,8 @@ discard block |
||
199 | 199 | |
200 | 200 | if (is_object($value)) { |
201 | 201 | if (interface_exists('JsonSerializable') |
202 | - && !$value instanceof \stdClass |
|
203 | - && !$value instanceof \JsonSerializable |
|
202 | + && ! $value instanceof \stdClass |
|
203 | + && ! $value instanceof \JsonSerializable |
|
204 | 204 | ) { |
205 | 205 | throw new \InvalidArgumentException(sprintf( |
206 | 206 | 'Object %s::%s must be implements JsonSerializable interface for next serialize data.', |
@@ -249,7 +249,7 @@ discard block |
||
249 | 249 | */ |
250 | 250 | public function setAPSSound($sound) |
251 | 251 | { |
252 | - $this->apsBody['aps']['sound'] = (string) $sound; |
|
252 | + $this->apsBody['aps']['sound'] = (string)$sound; |
|
253 | 253 | |
254 | 254 | return $this; |
255 | 255 | } |
@@ -264,7 +264,7 @@ discard block |
||
264 | 264 | */ |
265 | 265 | public function setAPSBadge($badge) |
266 | 266 | { |
267 | - $this->apsBody['aps']['badge'] = (int) $badge; |
|
267 | + $this->apsBody['aps']['badge'] = (int)$badge; |
|
268 | 268 | |
269 | 269 | return $this; |
270 | 270 | } |
@@ -296,7 +296,7 @@ discard block |
||
296 | 296 | */ |
297 | 297 | public function setAPSCategory($category) |
298 | 298 | { |
299 | - $this->apsBody['aps']['category'] = (string) $category; |
|
299 | + $this->apsBody['aps']['category'] = (string)$category; |
|
300 | 300 | } |
301 | 301 | |
302 | 302 | /** |
@@ -318,7 +318,7 @@ discard block |
||
318 | 318 | */ |
319 | 319 | public function setId($id) |
320 | 320 | { |
321 | - $this->id = (string) $id; |
|
321 | + $this->id = (string)$id; |
|
322 | 322 | |
323 | 323 | return $this; |
324 | 324 | } |
@@ -342,7 +342,7 @@ discard block |
||
342 | 342 | */ |
343 | 343 | public function setExpiry($expiry) |
344 | 344 | { |
345 | - $this->expiry = (int) $expiry; |
|
345 | + $this->expiry = (int)$expiry; |
|
346 | 346 | |
347 | 347 | return $this; |
348 | 348 | } |
@@ -362,7 +362,7 @@ discard block |
||
362 | 362 | */ |
363 | 363 | public function setPriority($priority) |
364 | 364 | { |
365 | - $this->priority = (int) $priority; |
|
365 | + $this->priority = (int)$priority; |
|
366 | 366 | |
367 | 367 | return $this; |
368 | 368 | } |
@@ -386,7 +386,7 @@ discard block |
||
386 | 386 | */ |
387 | 387 | public function setTopic($topic) |
388 | 388 | { |
389 | - $this->topic = (string) $topic; |
|
389 | + $this->topic = (string)$topic; |
|
390 | 390 | |
391 | 391 | return $this; |
392 | 392 | } |
@@ -14,7 +14,7 @@ |
||
14 | 14 | use GuzzleHttp\Client as HttpClient; |
15 | 15 | use GuzzleHttp\Exception\RequestException; |
16 | 16 | |
17 | -if (! defined('CURL_HTTP_VERSION_2_0')) { |
|
17 | +if ( ! defined('CURL_HTTP_VERSION_2_0')) { |
|
18 | 18 | define('CURL_HTTP_VERSION_2_0', 3); |
19 | 19 | } |
20 | 20 |