@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | */ |
| 42 | 42 | public function perform($api, $path, array $data = null, $method = null) |
| 43 | 43 | { |
| 44 | - if (! isset($api->email, $api->auth_key) || false === filter_var($api->email, FILTER_VALIDATE_EMAIL)) { |
|
| 44 | + if (!isset($api->email, $api->auth_key) || false === filter_var($api->email, FILTER_VALIDATE_EMAIL)) { |
|
| 45 | 45 | throw new AuthenticationException( |
| 46 | 46 | 'Authentication information must be provided' |
| 47 | 47 | ); |
@@ -53,12 +53,12 @@ discard block |
||
| 53 | 53 | //Removes null entries |
| 54 | 54 | $data = array_filter( |
| 55 | 55 | $data, |
| 56 | - function ($val) { |
|
| 56 | + function($val){ |
|
| 57 | 57 | return null !== $val; |
| 58 | 58 | } |
| 59 | 59 | ); |
| 60 | 60 | |
| 61 | - $url = 'https://api.cloudflare.com/client/v4/' . $path; |
|
| 61 | + $url = 'https://api.cloudflare.com/client/v4/'.$path; |
|
| 62 | 62 | |
| 63 | 63 | $default_curl_options = [ |
| 64 | 64 | CURLOPT_VERBOSE => false, |
@@ -100,7 +100,7 @@ discard block |
||
| 100 | 100 | curl_setopt($ch, CURLOPT_POSTFIELDS, $json_data); |
| 101 | 101 | curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'PATCH'); |
| 102 | 102 | } else { |
| 103 | - $url .= '?' . http_build_query($data); |
|
| 103 | + $url .= '?'.http_build_query($data); |
|
| 104 | 104 | } |
| 105 | 105 | |
| 106 | 106 | curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | } |
| 119 | 119 | |
| 120 | 120 | $response = json_decode($http_result); |
| 121 | - if (! $response) { |
|
| 121 | + if (!$response) { |
|
| 122 | 122 | $response = new \stdClass(); |
| 123 | 123 | $response->success = false; |
| 124 | 124 | } |