File tree Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Expand file tree Collapse file tree 1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ public function process(PHP_CodeCoverage $coverage, $target)
133133 );
134134
135135 $ this ->addItems ($ root , $ items , $ files );
136- $ classes = $ this ->classes ($ root );
136+ $ this ->renderDashboard ($ root, $ target . ' dashboard.html ' );
137137
138138 $ root ->render (
139139 $ target ,
@@ -144,6 +144,16 @@ public function process(PHP_CodeCoverage $coverage, $target)
144144 $ this ->options ['generator ' ]
145145 );
146146
147+ $ this ->copyFiles ($ target );
148+ }
149+
150+ /**
151+ * @param PHP_CodeCoverage_Report_HTML_Node_Directory $root
152+ * @param string $file
153+ */
154+ protected function renderDashboard (PHP_CodeCoverage_Report_HTML_Node_Directory $ root , $ file )
155+ {
156+ $ classes = $ this ->classes ($ root );
147157 $ template = new Text_Template (
148158 PHP_CodeCoverage_Report_HTML::$ templatePath . 'dashboard.html '
149159 );
@@ -166,9 +176,7 @@ public function process(PHP_CodeCoverage $coverage, $target)
166176 )
167177 );
168178
169- $ template ->renderTo ($ target . 'dashboard.html ' );
170-
171- $ this ->copyFiles ($ target );
179+ $ template ->renderTo ($ file );
172180 }
173181
174182 /**
You can’t perform that action at this time.
0 commit comments