@@ -15,7 +15,7 @@ discard block |
||
| 15 | 15 | |
| 16 | 16 | if (! function_exists('array_get')) |
| 17 | 17 | { |
| 18 | - /* |
|
| 18 | + /* |
|
| 19 | 19 | * |
| 20 | 20 | * @param array $data |
| 21 | 21 | * @param string $key |
@@ -23,12 +23,12 @@ discard block |
||
| 23 | 23 | * |
| 24 | 24 | * @return mixed |
| 25 | 25 | */ |
| 26 | - function array_get($data, $key, $default = false) { |
|
| 27 | - if (!is_array($data)) { |
|
| 28 | - return $default; |
|
| 29 | - } |
|
| 30 | - return isset($data[$key]) ? $data[$key]: $default; |
|
| 31 | - } |
|
| 26 | + function array_get($data, $key, $default = false) { |
|
| 27 | + if (!is_array($data)) { |
|
| 28 | + return $default; |
|
| 29 | + } |
|
| 30 | + return isset($data[$key]) ? $data[$key]: $default; |
|
| 31 | + } |
|
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | if(!function_exists('array_keys_exist')){ |
@@ -57,6 +57,6 @@ discard block |
||
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | function cleanResponse($response){ |
| 60 | - $result = $response->getBody(); |
|
| 61 | - return $result; |
|
| 60 | + $result = $response->getBody(); |
|
| 61 | + return $result; |
|
| 62 | 62 | } |
| 63 | 63 | \ No newline at end of file |