Commit 074ec7dd by Carsten Brandt

fixed exclude paths in phpdoc command

fixes #2184
parent 4e966832
...@@ -52,10 +52,18 @@ class PhpDocController extends Controller ...@@ -52,10 +52,18 @@ class PhpDocController extends Controller
} }
$except = [ $except = [
'.git/',
'/apps/', '/apps/',
'/build/', '/build/',
'/docs/', '/docs/',
'/extensions/apidoc/helpers/PrettyPrinter.php',
'/extensions/codeception/TestCase.php',
'/extensions/codeception/DbTestCase.php',
'/extensions/composer/', '/extensions/composer/',
'/extensions/gii/components/DiffRendererHtmlInline.php',
'/extensions/twig/TwigSimpleFileLoader.php',
'/framework/BaseYii.php',
'/framework/Yii.php',
'/tests/', '/tests/',
'/vendor/', '/vendor/',
]; ];
...@@ -73,11 +81,10 @@ class PhpDocController extends Controller ...@@ -73,11 +81,10 @@ class PhpDocController extends Controller
}, },
'only' => ['*.php'], 'only' => ['*.php'],
'except' => array_merge($except, [ 'except' => array_merge($except, [
'/BaseYii.php', 'views/',
'/Yii.php', 'requirements/',
'/views/', 'gii/generators/',
'/requirements/', 'vendor/',
'/gii/generators/',
]), ]),
]; ];
$files = FileHelper::findFiles($root, $options); $files = FileHelper::findFiles($root, $options);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment