X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fmwdocgen.php;h=dc2eccd080ab125d4c22ee8a359721a7163e1e4c;hb=95b9d82a3a1813ec17fa078710dc2d89338afedb;hp=35fca8e0508e8d836f1b06156352c0e4139dc4e7;hpb=920c06e42c307fcaea47d9b65e09303aded2d1c9;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/mwdocgen.php b/maintenance/mwdocgen.php index 35fca8e050..dc2eccd080 100644 --- a/maintenance/mwdocgen.php +++ b/maintenance/mwdocgen.php @@ -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-' );