@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | if (null === self::$isMbstringAvailable) { |
22 | 22 | self::$isMbstringAvailable = function_exists('mb_detect_encoding'); |
23 | 23 | |
24 | - if (! self::$isMbstringAvailable) { |
|
24 | + if ( ! self::$isMbstringAvailable) { |
|
25 | 25 | trigger_error('It looks like the mbstring extension is not enabled. '. |
26 | 26 | 'UTF-8 strings will not properly be encoded. Ask your system '. |
27 | 27 | 'administrator to enable the mbstring extension.', E_USER_WARNING); |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | */ |
45 | 45 | public static function convertArrayToObject($resp) |
46 | 46 | { |
47 | - if (! is_array($resp)) { |
|
47 | + if ( ! is_array($resp)) { |
|
48 | 48 | $message = 'The response passed must be an array'; |
49 | 49 | |
50 | 50 | throw new InvalidArgumentException($message); |
@@ -72,10 +72,10 @@ discard block |
||
72 | 72 | public static function validateData(array $expectedKeys, array $data) |
73 | 73 | { |
74 | 74 | //check if array keys are empty |
75 | - if (! array_filter($data)) { |
|
75 | + if ( ! array_filter($data)) { |
|
76 | 76 | throw new \Digikraaft\Mono\Exceptions\InvalidArgumentException("Please check that all required keys are present and not null"); |
77 | 77 | } |
78 | - if (! self::in_array_all( |
|
78 | + if ( ! self::in_array_all( |
|
79 | 79 | $expectedKeys, |
80 | 80 | $data |
81 | 81 | )) { |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | { |
21 | 21 | $url = "account/auth"; |
22 | 22 | |
23 | - return static::staticRequest('POST', $url, ['code' => $authCode]); |
|
23 | + return static::staticRequest('POST', $url, [ 'code' => $authCode ]); |
|
24 | 24 | } |
25 | 25 | |
26 | 26 | /** |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | */ |
49 | 49 | public static function fetchStatement(string $accountId, array $filters) |
50 | 50 | { |
51 | - Util::validateData(['period'], $filters); |
|
51 | + Util::validateData([ 'period' ], $filters); |
|
52 | 52 | $url = static::buildQueryString("{$accountId}/statement", $filters); |
53 | 53 | |
54 | 54 | return static::staticRequest('GET', $url); |