File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -133,15 +133,19 @@ public function process(PHP_CodeCoverage $coverage, $target)
133133 );
134134
135135 $ this ->addItems ($ root , $ items , $ files );
136- $ this ->renderDashboard ($ root , $ target . 'index.dashboard.html ' );
136+
137+ $ this ->renderDashboard (
138+ $ root , $ target . 'index.dashboard.html ' , $ this ->options ['title ' ]
139+ );
137140
138141 foreach ($ root as $ node ) {
139142 if ($ node instanceof PHP_CodeCoverage_Report_HTML_Node_Directory) {
140143 $ this ->renderDashboard (
141144 $ node ,
142145 $ target . PHP_CodeCoverage_Util::getSafeFilename (
143146 $ node ->getId ()
144- ) . '.dashboard.html '
147+ ) . '.dashboard.html ' ,
148+ $ node ->getName (TRUE )
145149 );
146150 }
147151 }
@@ -161,8 +165,9 @@ public function process(PHP_CodeCoverage $coverage, $target)
161165 /**
162166 * @param PHP_CodeCoverage_Report_HTML_Node_Directory $root
163167 * @param string $file
168+ * @param string $title
164169 */
165- protected function renderDashboard (PHP_CodeCoverage_Report_HTML_Node_Directory $ root , $ file )
170+ protected function renderDashboard (PHP_CodeCoverage_Report_HTML_Node_Directory $ root , $ file, $ title )
166171 {
167172 $ classes = $ this ->classes ($ root );
168173 $ template = new Text_Template (
@@ -171,7 +176,7 @@ protected function renderDashboard(PHP_CodeCoverage_Report_HTML_Node_Directory $
171176
172177 $ template ->setVar (
173178 array (
174- 'title ' => $ this -> options [ ' title ' ] ,
179+ 'title ' => $ title ,
175180 'charset ' => $ this ->options ['charset ' ],
176181 'date ' => date (
177182 'D M j G:i:s T Y ' ,
You can’t perform that action at this time.
0 commit comments