File tree Expand file tree Collapse file tree 2 files changed +2
-13
lines changed Expand file tree Collapse file tree 2 files changed +2
-13
lines changed Original file line number Diff line number Diff line change @@ -108,12 +108,7 @@ public function generate()
108108 }
109109
110110 ob_start ();
111- foreach ($ this ->docFiles as $ file ) {
112- $ doc = new DOMDocument ();
113- $ doc ->load ($ file );
114- $ documentation = $ doc ->getElementsByTagName ('documentation ' )->item (0 );
115- $ this ->processSniff ($ documentation );
116- }
111+ parent ::generate ();
117112
118113 $ content = ob_get_contents ();
119114 ob_end_clean ();
Original file line number Diff line number Diff line change 1111
1212namespace PHP_CodeSniffer \Generators ;
1313
14- use DOMDocument ;
1514use DOMNode ;
1615use PHP_CodeSniffer \Config ;
1716
@@ -32,12 +31,7 @@ public function generate()
3231 }
3332
3433 ob_start ();
35- foreach ($ this ->docFiles as $ file ) {
36- $ doc = new DOMDocument ();
37- $ doc ->load ($ file );
38- $ documentation = $ doc ->getElementsByTagName ('documentation ' )->item (0 );
39- $ this ->processSniff ($ documentation );
40- }
34+ parent ::generate ();
4135
4236 $ content = ob_get_contents ();
4337 ob_end_clean ();
You can’t perform that action at this time.
0 commit comments