From 34f97c4e5eca822b143e4d4413e81910b605dda8 Mon Sep 17 00:00:00 2001 From: bellord13 Date: Wed, 12 Jul 2023 16:26:59 +0300 Subject: [PATCH] fix --- _utils.z/phpstorm.utils.php | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 _utils.z/phpstorm.utils.php diff --git a/_utils.z/phpstorm.utils.php b/_utils.z/phpstorm.utils.php deleted file mode 100644 index bcbb1d1..0000000 --- a/_utils.z/phpstorm.utils.php +++ /dev/null @@ -1,30 +0,0 @@ -service()->templater()->getComponent('kit')->getTemplatePath(); -$templatePath = app()->service()->templater()->getPath() . '/kit/templates'; -$templateSvgPath = $templatePath; - -$GLOBALS['bx_assets_template_list'] = []; - -function scanTemplates($path, $basePath, $recursive = false){ - - $tree = glob($path . '/*.php'); - foreach ((array)$tree as $t) { - $templateName = ltrim(substr($t, strlen($basePath), strlen($t) - strlen($basePath) - 4), "/"); - $GLOBALS['bx_assets_template_list'][] = 'kit:'.$templateName; - } - - if($recursive) { - $treeDir = glob($path . '/*', GLOB_ONLYDIR); - foreach ($treeDir as $dir) { - scanTemplates($dir, $basePath, true); - } - } -} -scanTemplates($templateSvgPath, $templatePath, true); -$str = ''; -foreach ($GLOBALS['bx_assets_template_list'] as $item){ - $str .= "'{$item}'," . PHP_EOL; -} -pre($str, 0); \ No newline at end of file