File tree Expand file tree Collapse file tree 1 file changed +13
-11
lines changed Expand file tree Collapse file tree 1 file changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -131,14 +131,22 @@ public function process(PHP_CodeCoverage $coverage, $target)
131131 $ this ->addItems ($ root , $ items , $ files );
132132 $ this ->copyFiles ($ target );
133133
134- $ this ->render ($ root , $ target );
134+ $ root ->render (
135+ $ target ,
136+ $ this ->options ['title ' ],
137+ $ this ->options ['charset ' ],
138+ $ this ->options ['lowUpperBound ' ],
139+ $ this ->options ['highLowerBound ' ]
140+ );
135141 }
136142
137143 /**
138- * @param PHP_CodeCoverage_Report_HTML_Node_Directory $root
139- * @param string $target
144+ * Returns the classes.
145+ *
146+ * @param PHP_CodeCoverage_Report_HTML_Node_Directory $root
147+ * @return array
140148 */
141- protected function render (PHP_CodeCoverage_Report_HTML_Node_Directory $ root, $ target )
149+ protected function classes (PHP_CodeCoverage_Report_HTML_Node_Directory $ root )
142150 {
143151 $ classes = array ();
144152
@@ -148,13 +156,7 @@ protected function render(PHP_CodeCoverage_Report_HTML_Node_Directory $root, $ta
148156
149157 ksort ($ classes );
150158
151- $ root ->render (
152- $ target ,
153- $ this ->options ['title ' ],
154- $ this ->options ['charset ' ],
155- $ this ->options ['lowUpperBound ' ],
156- $ this ->options ['highLowerBound ' ]
157- );
159+ return $ classes ;
158160 }
159161
160162 /**
You can’t perform that action at this time.
0 commit comments