@@ -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 |
@@ -20,7 +20,7 @@ |
||
20 | 20 | */ |
21 | 21 | public function register(): void |
22 | 22 | { |
23 | - if (! empty($this->events)) { |
|
23 | + if (!empty($this->events)) { |
|
24 | 24 | $this->bindEvents(); |
25 | 25 | } |
26 | 26 | } |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | */ |
37 | 37 | protected function initGlobalObjects(): void |
38 | 38 | { |
39 | - container()->singleton('CMain', function () { |
|
39 | + container()->singleton('CMain', function() { |
|
40 | 40 | if (empty($GLOBALS['APPLICATION'])) { |
41 | 41 | throw new \RuntimeException('Bitrix is not initialized'); |
42 | 42 | } |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | return $GLOBALS['APPLICATION']; |
45 | 45 | }); |
46 | 46 | |
47 | - container()->singleton('CUser', function () { |
|
47 | + container()->singleton('CUser', function() { |
|
48 | 48 | if (empty($GLOBALS['USER'])) { |
49 | 49 | throw new \RuntimeException('Bitrix is not initialized'); |
50 | 50 | } |
@@ -52,11 +52,11 @@ discard block |
||
52 | 52 | return $GLOBALS['USER']; |
53 | 53 | }); |
54 | 54 | |
55 | - container()->singleton('\Bitrix\Main\Application', function () { |
|
55 | + container()->singleton('\Bitrix\Main\Application', function() { |
|
56 | 56 | return \Bitrix\Main\Application::getInstance(); |
57 | 57 | }); |
58 | 58 | |
59 | - container()->singleton('\Bitrix\Main\EventManager', function () { |
|
59 | + container()->singleton('\Bitrix\Main\EventManager', function() { |
|
60 | 60 | return \Bitrix\Main\EventManager::getInstance(); |
61 | 61 | }); |
62 | 62 | } |