X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=maintenance%2Fmwdocgen.php;h=dc2eccd080ab125d4c22ee8a359721a7163e1e4c;hb=85f07327af5f63be616ac5d0213c80f5e5828b5c;hp=00a15e560d76918ff340842259e1561c2ce8d7f8;hpb=f2c242e2e8d86d6d12ae9c160b88c43558306d8f;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/mwdocgen.php b/maintenance/mwdocgen.php index 00a15e560d..dc2eccd080 100644 --- a/maintenance/mwdocgen.php +++ b/maintenance/mwdocgen.php @@ -46,7 +46,7 @@ class MWDocGen extends Maintenance { */ public function __construct() { parent::__construct(); - $this->mDescription = 'Build doxygen documentation'; + $this->addDescription( 'Build doxygen documentation' ); $this->addOption( 'doxygen', 'Path to doxygen', @@ -88,13 +88,13 @@ class MWDocGen extends Maintenance { $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'; } @@ -117,7 +117,7 @@ class MWDocGen extends Maintenance { $excludePatterns = implode( ' ', $this->excludePatterns ); $conf = strtr( file_get_contents( $this->template ), - array( + [ '{{OUTPUT_DIRECTORY}}' => $this->output, '{{STRIP_FROM_PATH}}' => $IP, '{{CURRENT_VERSION}}' => $this->mwVersion, @@ -127,7 +127,7 @@ class MWDocGen extends Maintenance { '{{HAVE_DOT}}' => $this->doDot ? 'YES' : 'NO', '{{GENERATE_MAN}}' => $this->doMan ? 'YES' : 'NO', '{{INPUT_FILTER}}' => $this->inputFilter, - ) + ] ); $tmpFile = tempnam( wfTempDir(), 'MWDocGen-' );