1- <?php  declare (strict_types=1 );
1+ <?php 
2+ 
3+ declare (strict_types=1 );
4+ 
5+ /* 
6+  * This file is part of the Docs Builder package. 
7+  * (c) Ryan Weaver <[email protected] > 8+  * For the full copyright and license information, please view the LICENSE 
9+  * file that was distributed with this source code. 
10+  */ 
211
312namespace  SymfonyDocsBuilder \Command ;
413
514use  Doctrine \Common \EventManager ;
615use  Doctrine \RST \Builder ;
7- use  Doctrine \RST \Event \PostNodeRenderEvent ;
816use  Doctrine \RST \Event \PostParseDocumentEvent ;
917use  Doctrine \RST \Event \PreBuildParseEvent ;
1018use  Doctrine \RST \Event \PreBuildRenderEvent ;
1119use  Symfony \Component \Console \Helper \ProgressBar ;
1220use  Symfony \Component \Console \Input \InputInterface ;
1321use  Symfony \Component \Console \Output \OutputInterface ;
14- use  Symfony \Component \Console \Style \SymfonyStyle ;
1522use  Symfony \Component \Filesystem \Filesystem ;
1623use  Symfony \Component \Finder \Finder ;
1724use  SymfonyDocsBuilder \BuildContext ;
18- use  SymfonyDocsBuilder \KernelFactory ;
1925
2026trait  CommandInitializerTrait
2127{
@@ -43,8 +49,6 @@ private function doInitialize(InputInterface $input, OutputInterface $output, st
4349
4450    private  function  initializeProgressBarEventListeners (): void 
4551    {
46- 
47- 
4852        // tries to handle progress bar for "rendering" 
4953        $ this eventManager ->addEventListener (
5054            [PreBuildRenderEvent::PRE_BUILD_RENDER ],
@@ -69,7 +73,7 @@ private function startBuild()
6973
7074    /** 
7175     * Removes all existing html files in the output dir that should not exist 
72-      * because previous build in the same output directory has been executed on another version 
76+      * because previous build in the same output directory has been executed on another version.  
7377     */ 
7478    private  function  sanitizeOutputDirs (Finder $ finder
7579    {
@@ -121,7 +125,7 @@ function ($file) use ($outputDir, $format) {
121125    public  function  preBuildParse (PreBuildParseEvent $ event
122126    {
123127        $ parseQueue$ eventgetParseQueue ();
124-         $ parseCountcount ($ parseQueuegetAllFilesThatRequireParsing ());
128+         $ parseCount\ count$ parseQueuegetAllFilesThatRequireParsing ());
125129        $ this io ->note (sprintf ('Start parsing %d out-of-date rst files ' , $ parseCount
126130        $ this progressBar  = new  ProgressBar ($ this output , $ parseCount
127131    }
0 commit comments