@@ -359,11 +359,11 @@ discard block |
||
359 | 359 | $data = (new Converter())->convert($data); |
360 | 360 | if ($data !== null && !\is_object($data)) { |
361 | 361 | // ensure we get object in final JSON structure in data node |
362 | - $data = (object)$data; |
|
362 | + $data = (object) $data; |
|
363 | 363 | } |
364 | 364 | |
365 | 365 | if ($data === null && Config::get(RB::CONF_KEY_DATA_ALWAYS_OBJECT, false)) { |
366 | - $data = (object)[]; |
|
366 | + $data = (object) []; |
|
367 | 367 | } |
368 | 368 | |
369 | 369 | // get human readable message for API code or use message string (if given instead of API code) |
@@ -385,7 +385,7 @@ discard block |
||
385 | 385 | |
386 | 386 | if ($debug_data !== null) { |
387 | 387 | $debug_key = Config::get(RB::CONF_KEY_DEBUG_DEBUG_KEY, RB::KEY_DEBUG); |
388 | - $response[ $debug_key ] = $debug_data; |
|
388 | + $response[$debug_key] = $debug_data; |
|
389 | 389 | } |
390 | 390 | |
391 | 391 | return $response; |