*/
public function __construct() {
parent::__construct();
- $this->mDescription = 'Build doxygen documentation';
+ $this->addDescription( 'Build doxygen documentation' );
$this->addOption( 'doxygen',
'Path to doxygen',
$this->output = $this->getOption( 'output', "$IP/docs" );
- $this->inputFilter = wfShellWikiCmd(
- $IP . '/maintenance/mwdoc-filter.php' );
+ $this->inputFilter = wfShellWikiCmd( $IP . '/maintenance/mwdoc-filter.php' );
$this->template = $IP . '/maintenance/Doxyfile';
- $this->excludes = array(
+ $this->excludes = [
'vendor',
'node_modules',
'images',
'static',
- );
- $this->excludePatterns = array();
+ ];
+ $this->excludePatterns = [];
if ( $this->hasOption( 'no-extensions' ) ) {
$this->excludePatterns[] = 'extensions';
}
$excludePatterns = implode( ' ', $this->excludePatterns );
$conf = strtr( file_get_contents( $this->template ),
- array(
+ [
'{{OUTPUT_DIRECTORY}}' => $this->output,
'{{STRIP_FROM_PATH}}' => $IP,
'{{CURRENT_VERSION}}' => $this->mwVersion,
'{{HAVE_DOT}}' => $this->doDot ? 'YES' : 'NO',
'{{GENERATE_MAN}}' => $this->doMan ? 'YES' : 'NO',
'{{INPUT_FILTER}}' => $this->inputFilter,
- )
+ ]
);
$tmpFile = tempnam( wfTempDir(), 'MWDocGen-' );