コード例 #1
0
ファイル: ArchInspec.php プロジェクト: fakeller/archinspec
 /**
  * @return Config
  */
 private function createPhpDAConfig()
 {
     return new Config(['mode' => Config::USAGE_MODE, 'source' => $this->config->getSource(), 'ignore' => $this->config->getPhpDa()['ignore'], 'formatter' => Html::class, 'target' => $this->config->getOutput() . '/analysis.html', 'filePattern' => $this->config->getPhpDa()['filePattern'], 'groupLength' => 2, 'visitor' => [TagCollector::class, SuperglobalCollector::class], 'visitorOptions' => [DeclaredNamespaceCollector::class => ['minDepth' => 2, 'sliceLength' => 20], MetaNamespaceCollector::class => ['minDepth' => 2, 'sliceLength' => 20], UsedNamespaceCollector::class => ['minDepth' => 2, 'sliceLength' => 20], TagCollector::class => ['minDepth' => 2, 'sliceLength' => 20]], 'referenceValidator' => ReferenceValidator::class]);
 }