Merge "tests: Clean up use of mt_rand()"
[lhc/web/wiklou.git] / maintenance / mwdocgen.php
index 9fb1314..00a15e5 100644 (file)
@@ -79,18 +79,18 @@ class MWDocGen extends Maintenance {
 
                $this->input = '';
                $inputs = explode( ',', $this->getOption( 'file', '' ) );
-               foreach( $inputs as $input ) {
+               foreach ( $inputs as $input ) {
                        # Doxygen inputs are space separted and double quoted
                        $this->input .= " \"$IP/$input\"";
                }
 
                $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(
                        'vendor',
+                       'node_modules',
                        'images',
                        'static',
                );
@@ -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';