File tree Expand file tree Collapse file tree 1 file changed +1
-24
lines changed Expand file tree Collapse file tree 1 file changed +1
-24
lines changed Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ public function process(PHP_CodeCoverage $coverage, $target)
169
169
*/
170
170
protected function renderDashboard(PHP_CodeCoverage_Report_HTML_Node_Directory $root, $file, $title)
171
171
{
172
- $classes = $this->classes($root );
172
+ $classes = $root->getClasses( );
173
173
$template = new Text_Template(
174
174
PHP_CodeCoverage_Report_HTML::$templatePath . 'dashboard.html'
175
175
);
@@ -223,29 +223,6 @@ protected function addItems(PHP_CodeCoverage_Report_HTML_Node_Directory $root, a
223
223
}
224
224
}
225
225
226
- /**
227
- * Returns the classes.
228
- *
229
- * @param PHP_CodeCoverage_Report_HTML_Node_Directory $root
230
- * @return array
231
- */
232
- protected function classes(PHP_CodeCoverage_Report_HTML_Node_Directory $root)
233
- {
234
- $classes = array();
235
-
236
- foreach ($root as $node) {
237
- if ($node instanceof PHP_CodeCoverage_Report_HTML_Node_File) {
238
- $classes = array_merge($classes, $node->getClasses());
239
- }
240
- }
241
-
242
- if (isset($classes['*'])) {
243
- unset($classes['*']);
244
- }
245
-
246
- return $classes;
247
- }
248
-
249
226
/**
250
227
* Returns the data for the Class Complexity chart.
251
228
*
You can’t perform that action at this time.
0 commit comments