@@ -505,7 +505,7 @@ discard block |
||
505 | 505 | $data = $converter->convert($data); |
506 | 506 | if ($data !== null && !is_object($data)) { |
507 | 507 | // ensure we get object in final JSON structure in data node |
508 | - $data = (object)$data; |
|
508 | + $data = (object) $data; |
|
509 | 509 | } |
510 | 510 | |
511 | 511 | // get human readable message for API code or use message string (if given instead of API code) |
@@ -527,7 +527,7 @@ discard block |
||
527 | 527 | |
528 | 528 | if ($debug_data !== null) { |
529 | 529 | $debug_key = Config::get(static::CONF_KEY_DEBUG_DEBUG_KEY, self::KEY_DEBUG); |
530 | - $response[ $debug_key ] = $debug_data; |
|
530 | + $response[$debug_key] = $debug_data; |
|
531 | 531 | } |
532 | 532 | |
533 | 533 | return $response; |
@@ -112,7 +112,7 @@ |
||
112 | 112 | |
113 | 113 | $map = static::getMap(); |
114 | 114 | |
115 | - return $map[ $api_code ] ?? null; |
|
115 | + return $map[$api_code] ?? null; |
|
116 | 116 | } |
117 | 117 | |
118 | 118 | /** |
@@ -34,20 +34,20 @@ |
||
34 | 34 | $array = $original; |
35 | 35 | foreach ($merging as $m_key => $m_val) { |
36 | 36 | if (array_key_exists($m_key, $original)) { |
37 | - $orig_type = gettype($original[ $m_key ]); |
|
37 | + $orig_type = gettype($original[$m_key]); |
|
38 | 38 | $m_type = gettype($m_val); |
39 | 39 | if ($orig_type !== $m_type) { |
40 | 40 | throw new \RuntimeException( |
41 | 41 | "Incompatible types. Cannot merge {$m_type} into {$orig_type} (key '{$m_key}')."); |
42 | 42 | } |
43 | 43 | |
44 | - if (is_array($merging[ $m_key ])) { |
|
45 | - $array[ $m_key ] = static::mergeConfig($original[ $m_key ], $m_val); |
|
44 | + if (is_array($merging[$m_key])) { |
|
45 | + $array[$m_key] = static::mergeConfig($original[$m_key], $m_val); |
|
46 | 46 | } else { |
47 | - $array[ $m_key ] = $m_val; |
|
47 | + $array[$m_key] = $m_val; |
|
48 | 48 | } |
49 | 49 | } else { |
50 | - $array[ $m_key ] = $m_val; |
|
50 | + $array[$m_key] = $m_val; |
|
51 | 51 | } |
52 | 52 | } |
53 | 53 |