@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | public static function getListIblock(): array |
| 46 | 46 | { |
| 47 | 47 | if (!is_null(static::$iblockList)) { |
| 48 | - return (array)static::$iblockList; |
|
| 48 | + return (array) static::$iblockList; |
|
| 49 | 49 | } |
| 50 | 50 | |
| 51 | 51 | $iblockTableClass = static::getIBlockTableClass(); |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | static::$iblockList[$iblock['CODE'] . '_' . $iblock['IBLOCK_TYPE_ID']] = $iblock; |
| 67 | 67 | } |
| 68 | 68 | |
| 69 | - return (array)static::$iblockList; |
|
| 69 | + return (array) static::$iblockList; |
|
| 70 | 70 | } |
| 71 | 71 | |
| 72 | 72 | /** |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | return null; |
| 94 | 94 | } |
| 95 | 95 | |
| 96 | - return (int)$iblock['ID']; |
|
| 96 | + return (int) $iblock['ID']; |
|
| 97 | 97 | } |
| 98 | 98 | |
| 99 | 99 | public static function getIblock(string $code, $iblockType = null) |
@@ -105,6 +105,6 @@ discard block |
||
| 105 | 105 | return null; |
| 106 | 106 | } |
| 107 | 107 | |
| 108 | - return (array)$iblock; |
|
| 108 | + return (array) $iblock; |
|
| 109 | 109 | } |
| 110 | 110 | } |
@@ -24,8 +24,8 @@ |
||
| 24 | 24 | public static function getList(array $parameters = []) |
| 25 | 25 | { |
| 26 | 26 | initTagCache([ |
| 27 | - 'iblock_code_'.static::$iblockCode, |
|
| 28 | - 'iblock_id_'.static::$iblockId, |
|
| 27 | + 'iblock_code_' . static::$iblockCode, |
|
| 28 | + 'iblock_id_' . static::$iblockId, |
|
| 29 | 29 | ]); |
| 30 | 30 | $parameters['filter']['IBLOCK_ID'] = static::$iblockId; |
| 31 | 31 | } |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | */ |
| 55 | 55 | function loadModule(string $moduleName): bool |
| 56 | 56 | { |
| 57 | - return (bool)Loader::includeModule($moduleName); |
|
| 57 | + return (bool) Loader::includeModule($moduleName); |
|
| 58 | 58 | } |
| 59 | 59 | } |
| 60 | 60 | |
@@ -223,7 +223,7 @@ discard block |
||
| 223 | 223 | function setCacheData(int $minutes, string $key, $initDir = '/', string $baseDir = 'cache', $data) |
| 224 | 224 | { |
| 225 | 225 | cleanCache($key, $initDir, $baseDir); |
| 226 | - cache($minutes, $key, $initDir, $baseDir, function () use ($data) { |
|
| 226 | + cache($minutes, $key, $initDir, $baseDir, function() use ($data) { |
|
| 227 | 227 | return $data; |
| 228 | 228 | }); |
| 229 | 229 | } |
@@ -249,7 +249,7 @@ discard block |
||
| 249 | 249 | |
| 250 | 250 | $tpl->AddEditAction($elementId, $link, $description); |
| 251 | 251 | |
| 252 | - return (string)$tpl->GetEditAreaId($elementId); |
|
| 252 | + return (string) $tpl->GetEditAreaId($elementId); |
|
| 253 | 253 | } |
| 254 | 254 | } |
| 255 | 255 | |
@@ -273,7 +273,7 @@ discard block |
||
| 273 | 273 | |
| 274 | 274 | $tpl->AddEditAction($sectionId, $link, $description); |
| 275 | 275 | |
| 276 | - return (string)$tpl->GetEditAreaId($sectionId); |
|
| 276 | + return (string) $tpl->GetEditAreaId($sectionId); |
|
| 277 | 277 | } |
| 278 | 278 | } |
| 279 | 279 | |
@@ -301,7 +301,7 @@ discard block |
||
| 301 | 301 | |
| 302 | 302 | $tpl->AddEditAction($elementId, $link, $description); |
| 303 | 303 | |
| 304 | - return (string)$tpl->GetEditAreaId($elementId); |
|
| 304 | + return (string) $tpl->GetEditAreaId($elementId); |
|
| 305 | 305 | } |
| 306 | 306 | } |
| 307 | 307 | |