Completed
Push — master ( c25f78...a754a4 )
by Emmanuel
04:55
created
src/Support/helpers.php 2 patches
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 
26 26
 if (! function_exists('array_get'))
27 27
 {
28
-  /*
28
+    /*
29 29
    *
30 30
    * @param array  $data
31 31
    * @param string $key
@@ -33,12 +33,12 @@  discard block
 block discarded – undo
33 33
    *
34 34
    * @return mixed
35 35
    */
36
-   function array_get($data, $key, $default = false) {
37
-     if (!is_array($data)) {
38
-         return $default;
39
-     }
40
-     return isset($data[$key]) ? $data[$key]: $default;
41
-   }
36
+    function array_get($data, $key, $default = false) {
37
+        if (!is_array($data)) {
38
+            return $default;
39
+        }
40
+        return isset($data[$key]) ? $data[$key]: $default;
41
+    }
42 42
 }
43 43
 
44 44
 if(!function_exists('array_keys_exist')){
@@ -67,6 +67,6 @@  discard block
 block discarded – undo
67 67
 }
68 68
 
69 69
 function cleanResponse($response){
70
-  $result = $response->getBody();
71
-  return $result;
70
+    $result = $response->getBody();
71
+    return $result;
72 72
 }
73 73
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 
24 24
 use \Exception as phpException;
25 25
 
26
-if (! function_exists('array_get'))
26
+if (!function_exists('array_get'))
27 27
 {
28 28
   /*
29 29
    *
@@ -37,11 +37,11 @@  discard block
 block discarded – undo
37 37
      if (!is_array($data)) {
38 38
          return $default;
39 39
      }
40
-     return isset($data[$key]) ? $data[$key]: $default;
40
+     return isset($data[$key]) ? $data[$key] : $default;
41 41
    }
42 42
 }
43 43
 
44
-if(!function_exists('array_keys_exist')){
44
+if (!function_exists('array_keys_exist')) {
45 45
     /**
46 46
      * Checks if multiple keys exist in an array
47 47
      *
@@ -50,23 +50,23 @@  discard block
 block discarded – undo
50 50
      *
51 51
      * @return bool
52 52
      */
53
-    function array_keys_exist( array $array, $keys ) {
53
+    function array_keys_exist(array $array, $keys) {
54 54
         $count = 0;
55
-        if ( ! is_array( $keys ) ) {
55
+        if (!is_array($keys)) {
56 56
             $keys = func_get_args();
57
-            array_shift( $keys );
57
+            array_shift($keys);
58 58
         }
59
-        foreach ( $keys as $key ) {
60
-            if ( array_key_exists( $key, $array ) ) {
61
-                $count ++;
59
+        foreach ($keys as $key) {
60
+            if (array_key_exists($key, $array)) {
61
+                $count++;
62 62
             }
63 63
         }
64 64
 
65
-        return count( $keys ) === $count;
65
+        return count($keys) === $count;
66 66
     }
67 67
 }
68 68
 
69
-function cleanResponse($response){
69
+function cleanResponse($response) {
70 70
   $result = $response->getBody();
71 71
   return $result;
72 72
 }
73 73
\ No newline at end of file
Please login to merge, or discard this patch.