@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | */ |
| 34 | 34 | protected function initGlobalObjects(): void |
| 35 | 35 | { |
| 36 | - container()->singleton('CMain', function () { |
|
| 36 | + container()->singleton('CMain', function() { |
|
| 37 | 37 | if (empty($GLOBALS['APPLICATION'])) { |
| 38 | 38 | throw new \RuntimeException('Bitrix is not initialized'); |
| 39 | 39 | } |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | return $GLOBALS['APPLICATION']; |
| 42 | 42 | }); |
| 43 | 43 | |
| 44 | - container()->singleton('CUser', function () { |
|
| 44 | + container()->singleton('CUser', function() { |
|
| 45 | 45 | if (empty($GLOBALS['USER'])) { |
| 46 | 46 | throw new \RuntimeException('Bitrix is not initialized'); |
| 47 | 47 | } |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | return $GLOBALS['USER']; |
| 50 | 50 | }); |
| 51 | 51 | |
| 52 | - container()->singleton('\Bitrix\Main\Application', function () { |
|
| 52 | + container()->singleton('\Bitrix\Main\Application', function() { |
|
| 53 | 53 | return \Bitrix\Main\Application::getInstance(); |
| 54 | 54 | }); |
| 55 | 55 | } |
@@ -7,7 +7,7 @@ |
||
| 7 | 7 | } |
| 8 | 8 | } |
| 9 | 9 | |
| 10 | -if (! function_exists('config')) { |
|
| 10 | +if (!function_exists('config')) { |
|
| 11 | 11 | function config(string $key) |
| 12 | 12 | { |
| 13 | 13 | return container()->make(\PrettyBx\Support\Contracts\ConfigurationContract::class)->get($key); |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | { |
| 20 | 20 | $value = $this->getBxConfig()->get($key); |
| 21 | 21 | |
| 22 | - if (! empty($value)) { |
|
| 22 | + if (!empty($value)) { |
|
| 23 | 23 | return $value; |
| 24 | 24 | } |
| 25 | 25 | |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | |
| 28 | 28 | $root = $this->getBxConfig()->get(array_shift($keyPath)); |
| 29 | 29 | |
| 30 | - if (empty($root) || ! is_array($root)) { |
|
| 30 | + if (empty($root) || !is_array($root)) { |
|
| 31 | 31 | return ''; |
| 32 | 32 | } |
| 33 | 33 | |