Commit 074ec7dd by Carsten Brandt

fixed exclude paths in phpdoc command

fixes #2184
parent 4e966832
......@@ -52,10 +52,18 @@ class PhpDocController extends Controller
}
$except = [
'.git/',
'/apps/',
'/build/',
'/docs/',
'/extensions/apidoc/helpers/PrettyPrinter.php',
'/extensions/codeception/TestCase.php',
'/extensions/codeception/DbTestCase.php',
'/extensions/composer/',
'/extensions/gii/components/DiffRendererHtmlInline.php',
'/extensions/twig/TwigSimpleFileLoader.php',
'/framework/BaseYii.php',
'/framework/Yii.php',
'/tests/',
'/vendor/',
];
......@@ -73,11 +81,10 @@ class PhpDocController extends Controller
},
'only' => ['*.php'],
'except' => array_merge($except, [
'/BaseYii.php',
'/Yii.php',
'/views/',
'/requirements/',
'/gii/generators/',
'views/',
'requirements/',
'gii/generators/',
'vendor/',
]),
];
$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