@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -if (! function_exists('container')) { |
|
3 | +if (!function_exists('container')) { |
|
4 | 4 | function container() |
5 | 5 | { |
6 | 6 | return \Illuminate\Container\Container::getInstance(); |
@@ -45,7 +45,7 @@ |
||
45 | 45 | public function validateAttribute(string $attribute, $value, array $rules = null): void |
46 | 46 | { |
47 | 47 | if (empty($rules)) { |
48 | - if (property_exists($this, 'rules') && ! empty($this->rules[$attribute])) { |
|
48 | + if (property_exists($this, 'rules') && !empty($this->rules[$attribute])) { |
|
49 | 49 | $rules = $this->rules[$attribute]; |
50 | 50 | } else { |
51 | 51 | $rules = [$attribute => []]; |
@@ -45,7 +45,7 @@ |
||
45 | 45 | */ |
46 | 46 | protected function loadModule(string $moduleId): void |
47 | 47 | { |
48 | - if (! container()->make('\Bitrix\Main\Loader')->includeModule($moduleId)) { |
|
48 | + if (!container()->make('\Bitrix\Main\Loader')->includeModule($moduleId)) { |
|
49 | 49 | throw new \RuntimeException('Module ' . $moduleId . ' could not be loaded'); |
50 | 50 | } |
51 | 51 | } |
@@ -17,7 +17,7 @@ |
||
17 | 17 | */ |
18 | 18 | public static function getItem(string $code): string |
19 | 19 | { |
20 | - if (! array_key_exists($code, static::getItems())) { |
|
20 | + if (!array_key_exists($code, static::getItems())) { |
|
21 | 21 | throw new \InvalidArgumentException('Запрошенный элемент ' . $code . ' отсутствует в словаре ' . __CLASS__); |
22 | 22 | } |
23 | 23 |