Completed
Push — master ( 40e591...8b2a4b )
by Alex
03:04
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
      *
@@ -23,14 +23,14 @@  discard block
 block discarded – undo
23 23
     }
24 24
 }
25 25
 
26
-if (! function_exists('get_key_or_null')) {
26
+if (!function_exists('get_key_or_null')) {
27 27
     function get_key_or_null($response, $key = 'data')
28 28
     {
29 29
         return $response['success'] ? $response[$key] : null;
30 30
     }
31 31
 }
32 32
 
33
-if (! function_exists('standardize_booleans')) {
33
+if (!function_exists('standardize_booleans')) {
34 34
     function standardize_booleans(array $data)
35 35
     {
36 36
         $result = [];
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
     }
51 51
 }
52 52
 
53
-if (! function_exists('unset_null_values')) {
53
+if (!function_exists('unset_null_values')) {
54 54
     function unset_null_values(array $data)
55 55
     {
56 56
         foreach (array_keys($data) as $key) {
@@ -63,14 +63,14 @@  discard block
 block discarded – undo
63 63
     }
64 64
 }
65 65
 
66
-if (! function_exists('standarize_request_body')) {
66
+if (!function_exists('standarize_request_body')) {
67 67
     function standarize_request_body(array $data)
68 68
     {
69 69
         return standardize_booleans(unset_null_values($data));
70 70
     }
71 71
 }
72 72
 
73
-if (! function_exists('get_id_from_variable')) {
73
+if (!function_exists('get_id_from_variable')) {
74 74
     function get_id_from_variable($data)
75 75
     {
76 76
         if (is_object($data)) {
Please login to merge, or discard this patch.