@@ -45,7 +45,7 @@ |
||
| 45 | 45 | $except = is_array($keys) ? $keys : [$keys]; |
| 46 | 46 | |
| 47 | 47 | foreach (array_keys($this->toArray()) as $key) { |
| 48 | - if (! in_array($key, $except)) { |
|
| 48 | + if (!in_array($key, $except)) { |
|
| 49 | 49 | $results[$key] = $this->$key; |
| 50 | 50 | } |
| 51 | 51 | } |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | |
| 20 | 20 | public function register() |
| 21 | 21 | { |
| 22 | - $this->app->bind('phpipam', function () { |
|
| 22 | + $this->app->bind('phpipam', function() { |
|
| 23 | 23 | return new PhpIPAM(); |
| 24 | 24 | }); |
| 25 | 25 | |
@@ -62,7 +62,7 @@ |
||
| 62 | 62 | } |
| 63 | 63 | } |
| 64 | 64 | |
| 65 | - if (! $cachedData) { |
|
| 65 | + if (!$cachedData) { |
|
| 66 | 66 | $token = $this->login(); |
| 67 | 67 | } |
| 68 | 68 | |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -if (! function_exists('response_to_collect')) { |
|
| 3 | +if (!function_exists('response_to_collect')) { |
|
| 4 | 4 | /** |
| 5 | 5 | * Return PhpIPAM response content into a collect of the specified class. |
| 6 | 6 | * |
@@ -22,14 +22,14 @@ discard block |
||
| 22 | 22 | } |
| 23 | 23 | } |
| 24 | 24 | |
| 25 | -if (! function_exists('get_id_or_success_status')) { |
|
| 25 | +if (!function_exists('get_id_or_success_status')) { |
|
| 26 | 26 | function get_id_or_success_status($response) |
| 27 | 27 | { |
| 28 | 28 | return $response['success'] ? (int) $response['id'] : $response['success']; |
| 29 | 29 | } |
| 30 | 30 | } |
| 31 | 31 | |
| 32 | -if (! function_exists('standardize_booleans')) { |
|
| 32 | +if (!function_exists('standardize_booleans')) { |
|
| 33 | 33 | function standardize_booleans(array $data) |
| 34 | 34 | { |
| 35 | 35 | $result = []; |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | } |
| 50 | 50 | } |
| 51 | 51 | |
| 52 | -if (! function_exists('unset_null_values')) { |
|
| 52 | +if (!function_exists('unset_null_values')) { |
|
| 53 | 53 | function unset_null_values(array $data) |
| 54 | 54 | { |
| 55 | 55 | foreach (array_keys($data) as $key) { |
@@ -62,14 +62,14 @@ discard block |
||
| 62 | 62 | } |
| 63 | 63 | } |
| 64 | 64 | |
| 65 | -if (! function_exists('standarize_request_body')) { |
|
| 65 | +if (!function_exists('standarize_request_body')) { |
|
| 66 | 66 | function standarize_request_body(array $data) |
| 67 | 67 | { |
| 68 | 68 | return standardize_booleans(unset_null_values($data)); |
| 69 | 69 | } |
| 70 | 70 | } |
| 71 | 71 | |
| 72 | -if (! function_exists('get_id_from_variable')) { |
|
| 72 | +if (!function_exists('get_id_from_variable')) { |
|
| 73 | 73 | function get_id_from_variable($data) |
| 74 | 74 | { |
| 75 | 75 | if (is_object($data)) { |