Source of file PHPMessDetectorConfig.php
Size: 1,164 Bytes - Last Modified: 2014-05-08T01:19:22+02:00
/home/theseer/storage/php/phpdox/src/generator/enricher/pmd/PHPMessDetectorConfig.php
1234567891011121314151617181920212223242526272829303132333435363738394041424344 | <?php namespace TheSeer\phpDox\Generator\Enricher { use TheSeer\fDOM\fDOMElement; use TheSeer\phpDox\GeneratorConfig; class PHPMessDetectorConfig { /** * @var GeneratorConfig */ private $generator; /** * @var fDOMElement */ private $context; public function __construct(GeneratorConfig $generator, fDOMElement $ctx) { $this->context = $ctx; $this->generator = $generator; } public function getLogFilePath() { $basedirDefault = dirname($this->context->ownerDocument->baseURI); $path = $basedirDefault . '/build/logs'; if ($this->context->parentNode->hasAttribute('base')) { $path = $this->context->parentNode->getAttribute('base'); } if ($path != '') { $path .= '/'; } $file = $this->context->queryOne('cfg:file'); if ($file && $file->hasAttribute('name')) { $path .= $file->getAttribute('name'); } else { $path .= 'pmd.xml'; } return $path; } } } |