add RELEASE notes for 28417328 (CSS3 attr() is banned)
[lhc/web/wiklou.git] / maintenance / mwdocgen.php
index b22dd88..dc2eccd 100644 (file)
@@ -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',
@@ -86,15 +86,15 @@ class MWDocGen extends Maintenance {
 
                $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';
                }
@@ -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-' );
@@ -152,15 +152,13 @@ You might want to delete the temporary file:
 ---------------------------------------------------
 
 TEXT
-       );
+               );
 
                if ( $exitcode !== 0 ) {
                        $this->error( "Something went wrong (exit: $exitcode)\n",
                                $exitcode );
                }
-
        }
-
 }
 
 $maintClass = 'MWDocGen';