@@ -205,7 +205,7 @@ |
||
| 205 | 205 | } |
| 206 | 206 | |
| 207 | 207 | //Removes null entries |
| 208 | - $data = array_filter($data, function ($val) { |
|
| 208 | + $data = array_filter($data, function($val){ |
|
| 209 | 209 | return !is_null($val); |
| 210 | 210 | }); |
| 211 | 211 | |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | */ |
| 64 | 64 | public function always_use_https($zone_identifier) |
| 65 | 65 | { |
| 66 | - return $this->get('zones/' . $zone_identifier . '/settings/always_use_https'); |
|
| 66 | + return $this->get('zones/'.$zone_identifier.'/settings/always_use_https'); |
|
| 67 | 67 | } |
| 68 | 68 | |
| 69 | 69 | /** |
@@ -434,7 +434,7 @@ discard block |
||
| 434 | 434 | $data = array( |
| 435 | 435 | 'value' => $value |
| 436 | 436 | ); |
| 437 | - return $this->patch('zones/' . $zone_identifier . '/settings/always_use_https', $data); |
|
| 437 | + return $this->patch('zones/'.$zone_identifier.'/settings/always_use_https', $data); |
|
| 438 | 438 | } |
| 439 | 439 | |
| 440 | 440 | /** |
@@ -98,28 +98,28 @@ |
||
| 98 | 98 | } |
| 99 | 99 | |
| 100 | 100 | /** |
| 101 | - * Get SSL Verification Info for a Zone (permission needed: #ssl:read) |
|
| 102 | - * https://api.cloudflare.com/#ssl-verification-properties |
|
| 103 | - * |
|
| 104 | - * @param string $zone_identifier API item identifier tag |
|
| 105 | - */ |
|
| 106 | - public function free_ssl_status($zone_identifier) |
|
| 107 | - { |
|
| 108 | - return $this->get('zones/'.$zone_identifier.'/ssl/verification'); |
|
| 109 | - } |
|
| 101 | + * Get SSL Verification Info for a Zone (permission needed: #ssl:read) |
|
| 102 | + * https://api.cloudflare.com/#ssl-verification-properties |
|
| 103 | + * |
|
| 104 | + * @param string $zone_identifier API item identifier tag |
|
| 105 | + */ |
|
| 106 | + public function free_ssl_status($zone_identifier) |
|
| 107 | + { |
|
| 108 | + return $this->get('zones/'.$zone_identifier.'/ssl/verification'); |
|
| 109 | + } |
|
| 110 | 110 | |
| 111 | - /** |
|
| 112 | - * Immediately retry SSL verification (permission needed: #ssl:edit) |
|
| 113 | - * https://api.cloudflare.com/#ssl-verification-properties |
|
| 114 | - * |
|
| 115 | - * @param string $zone_identifier API item identifier tag |
|
| 116 | - */ |
|
| 117 | - public function free_ssl_retry($zone_identifier) |
|
| 118 | - { |
|
| 119 | - $data = [ |
|
| 120 | - 'retry' => true |
|
| 121 | - ]; |
|
| 111 | + /** |
|
| 112 | + * Immediately retry SSL verification (permission needed: #ssl:edit) |
|
| 113 | + * https://api.cloudflare.com/#ssl-verification-properties |
|
| 114 | + * |
|
| 115 | + * @param string $zone_identifier API item identifier tag |
|
| 116 | + */ |
|
| 117 | + public function free_ssl_retry($zone_identifier) |
|
| 118 | + { |
|
| 119 | + $data = [ |
|
| 120 | + 'retry' => true |
|
| 121 | + ]; |
|
| 122 | 122 | |
| 123 | - return $this->get('zones/'.$zone_identifier.'/ssl/verification', $data); |
|
| 124 | - } |
|
| 123 | + return $this->get('zones/'.$zone_identifier.'/ssl/verification', $data); |
|
| 124 | + } |
|
| 125 | 125 | } |