@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | /** |
4 | 4 | * @author Vadim Bova <[email protected]> |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | /** |
4 | 4 | * @author Vadim Bova <[email protected]> |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | */ |
75 | 75 | public function setProxy(string $proxy): self |
76 | 76 | { |
77 | - if(strstr($proxy, '@')) { |
|
77 | + if (strstr($proxy, '@')) { |
|
78 | 78 | [$auth, $proxy] = explode('@', $proxy); |
79 | 79 | } |
80 | 80 |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | /** |
4 | 4 | * @author Vadim Bova <[email protected]> |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | */ |
43 | 43 | public final function send(string $url, array $data = null): ResponseInterface |
44 | 44 | { |
45 | - if($data !== null) { |
|
45 | + if ($data !== null) { |
|
46 | 46 | $data = $data ? http_build_query($data, '', '&') : null; |
47 | 47 | } |
48 | 48 | $options = $this->prepare($url, $data); |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | |
57 | 57 | curl_close($handle); |
58 | 58 | |
59 | - if($error !== '') { |
|
59 | + if ($error !== '') { |
|
60 | 60 | throw new Exception('Request failed with error: "'.$error.'"'); |
61 | 61 | } |
62 | 62 |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | /** |
4 | 4 | * @author Vadim Bova <[email protected]> |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | /** |
4 | 4 | * @author Vadim Bova <[email protected]> |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | /** |
4 | 4 | * @author Vadim Bova <[email protected]> |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | /** |
4 | 4 | * @author Vadim Bova <[email protected]> |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | /** |
4 | 4 | * @author Vadim Bova <[email protected]> |
@@ -1,4 +1,4 @@ |
||
1 | -<?php declare(strict_types=1); |
|
1 | +<?php declare(strict_types = 1); |
|
2 | 2 | |
3 | 3 | /** |
4 | 4 | * @author Vadim Bova <[email protected]> |