@@ -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 | } |