Completed
Push — master ( 96d01d...469355 )
by Alex
03:08
created
src/helpers.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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)) {
Please login to merge, or discard this patch.