11<!DOCTYPE html>
22<html lang="en">
33 <head>
4- <meta charset="{charset}">
5- <title>Dashboard for {full_path}</title>
4+ <meta charset="{{ charset} }">
5+ <title>Dashboard for {{ full_path} }</title>
66 <meta name="viewport" content="width=device-width, initial-scale=1.0">
7- <link href="{path_to_root}css/bootstrap.min.css" rel="stylesheet">
8- <link href="{path_to_root}css/nv.d3.css" rel="stylesheet">
9- <link href="{path_to_root}css/style.css" rel="stylesheet">
7+ <link href="{{ path_to_root} }css/bootstrap.min.css" rel="stylesheet">
8+ <link href="{{ path_to_root} }css/nv.d3.css" rel="stylesheet">
9+ <link href="{{ path_to_root} }css/style.css" rel="stylesheet">
1010 <!--[if lt IE 9]>
11- <script src="{path_to_root}js/html5shiv.js"></script>
12- <script src="{path_to_root}js/respond.min.js"></script>
11+ <script src="{{ path_to_root} }js/html5shiv.js"></script>
12+ <script src="{{ path_to_root} }js/respond.min.js"></script>
1313 <![endif]-->
1414 </head>
1515 <body>
1818 <div class="row">
1919 <div class="col-md-12">
2020 <ol class="breadcrumb">
21- {breadcrumbs}
21+ {{ breadcrumbs} }
2222 </ol>
2323 </div>
2424 </div>
5656 </tr>
5757 </thead>
5858 <tbody>
59- {insufficient_coverage_classes}
59+ {{ insufficient_coverage_classes} }
6060 </tbody>
6161 </table>
6262 </div>
7272 </tr>
7373 </thead>
7474 <tbody>
75- {project_risks_classes}
75+ {{ project_risks_classes} }
7676 </tbody>
7777 </table>
7878 </div>
109109 </tr>
110110 </thead>
111111 <tbody>
112- {insufficient_coverage_methods}
112+ {{ insufficient_coverage_methods} }
113113 </tbody>
114114 </table>
115115 </div>
125125 </tr>
126126 </thead>
127127 <tbody>
128- {project_risks_methods}
128+ {{ project_risks_methods} }
129129 </tbody>
130130 </table>
131131 </div>
134134 <footer>
135135 <hr/>
136136 <p>
137- <small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage {version}</a> using <a href="http://www.php.net/" target="_top">PHP {php_version}</a>{generator} at {date}.</small>
137+ <small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage {{ version}} </a> using <a href="http://www.php.net/" target="_top">PHP {{ php_version}} </a>{{ generator}} at {{ date} }.</small>
138138 </p>
139139 </footer>
140140 </div>
141- <script src="{path_to_root}js/jquery.js" type="text/javascript"></script>
142- <script src="{path_to_root}js/bootstrap.min.js" type="text/javascript"></script>
143- <script src="{path_to_root}js/holder.js" type="text/javascript"></script>
144- <script src="{path_to_root}js/d3.min.js" type="text/javascript"></script>
145- <script src="{path_to_root}js/nv.d3.min.js" type="text/javascript"></script>
141+ <script src="{{ path_to_root} }js/jquery.js" type="text/javascript"></script>
142+ <script src="{{ path_to_root} }js/bootstrap.min.js" type="text/javascript"></script>
143+ <script src="{{ path_to_root} }js/holder.js" type="text/javascript"></script>
144+ <script src="{{ path_to_root} }js/d3.min.js" type="text/javascript"></script>
145+ <script src="{{ path_to_root} }js/nv.d3.min.js" type="text/javascript"></script>
146146 <script type="text/javascript">
147- $(document).ready(function() {
148- nv.addGraph(function() {
147+ $(document).ready(function() {{
148+ nv.addGraph(function() {{
149149 var chart = nv.models.multiBarChart();
150150 chart.tooltips(false)
151151 .showControls(false)
@@ -155,15 +155,15 @@ $(document).ready(function() {
155155 .yAxis.tickFormat(d3.format('d'));
156156
157157 d3.select('#classCoverageDistribution svg')
158- .datum(getCoverageDistributionData({class_coverage_distribution}, "Class Coverage"))
158+ .datum(getCoverageDistributionData({{ class_coverage_distribution} }, "Class Coverage"))
159159 .transition().duration(500).call(chart);
160160
161161 nv.utils.windowResize(chart.update);
162162
163163 return chart;
164- });
164+ }} );
165165
166- nv.addGraph(function() {
166+ nv.addGraph(function() {{
167167 var chart = nv.models.multiBarChart();
168168 chart.tooltips(false)
169169 .showControls(false)
@@ -173,15 +173,15 @@ $(document).ready(function() {
173173 .yAxis.tickFormat(d3.format('d'));
174174
175175 d3.select('#methodCoverageDistribution svg')
176- .datum(getCoverageDistributionData({method_coverage_distribution}, "Method Coverage"))
176+ .datum(getCoverageDistributionData({{ method_coverage_distribution} }, "Method Coverage"))
177177 .transition().duration(500).call(chart);
178178
179179 nv.utils.windowResize(chart.update);
180180
181181 return chart;
182- });
182+ }} );
183183
184- function getCoverageDistributionData(data, label) {
184+ function getCoverageDistributionData(data, label) {{
185185 var labels = [
186186 '0%',
187187 '0-10%',
@@ -197,90 +197,90 @@ $(document).ready(function() {
197197 '100%'
198198 ];
199199 var values = [];
200- $.each(labels, function(key) {
201- values.push({x: labels[key], y: data[key]});
202- });
200+ $.each(labels, function(key) {{
201+ values.push({{ x: labels[key], y: data[key]} });
202+ }} );
203203
204204 return [
205- {
205+ {{
206206 key: label,
207207 values: values,
208208 color: "#4572A7"
209- }
209+ }}
210210 ];
211- }
212- nv.addGraph(function() {
211+ }}
212+ nv.addGraph(function() {{
213213 var chart = nv.models.scatterChart()
214214 .showDistX(true)
215215 .showDistY(true)
216216 .showLegend(false)
217217 .forceX([0, 100]);
218218 chart.scatter.onlyCircles(false);
219- chart.tooltipContent(function(key, y, e, graph) {
219+ chart.tooltipContent(function(key, y, e, graph) {{
220220 return '<p>' + graph.point.class + '</p>';
221- });
221+ }} );
222222
223223 chart.xAxis.axisLabel('Code Coverage (in percent)');
224224 chart.yAxis.axisLabel('Cyclomatic Complexity');
225225
226226 d3.select('#classComplexity svg')
227- .datum(getComplexityData({complexity_class}, 'Class Complexity'))
227+ .datum(getComplexityData({{ complexity_class} }, 'Class Complexity'))
228228 .transition()
229229 .duration(500)
230230 .call(chart);
231231
232232 nv.utils.windowResize(chart.update);
233233
234234 return chart;
235- });
235+ }} );
236236
237- nv.addGraph(function() {
237+ nv.addGraph(function() {{
238238 var chart = nv.models.scatterChart()
239239 .showDistX(true)
240240 .showDistY(true)
241241 .showLegend(false)
242242 .forceX([0, 100]);
243243 chart.scatter.onlyCircles(false);
244- chart.tooltipContent(function(key, y, e, graph) {
244+ chart.tooltipContent(function(key, y, e, graph) {{
245245 return '<p>' + graph.point.class + '</p>';
246- });
246+ }} );
247247
248248 chart.xAxis.axisLabel('Code Coverage (in percent)');
249249 chart.yAxis.axisLabel('Method Complexity');
250250
251251 d3.select('#methodComplexity svg')
252- .datum(getComplexityData({complexity_method}, 'Method Complexity'))
252+ .datum(getComplexityData({{ complexity_method} }, 'Method Complexity'))
253253 .transition()
254254 .duration(500)
255255 .call(chart);
256256
257257 nv.utils.windowResize(chart.update);
258258
259259 return chart;
260- });
260+ }} );
261261
262- function getComplexityData(data, label) {
262+ function getComplexityData(data, label) {{
263263 var values = [];
264- $.each(data, function(key) {
264+ $.each(data, function(key) {{
265265 var value = Math.round(data[key][0]*100) / 100;
266- values.push({
266+ values.push({{
267267 x: value,
268268 y: data[key][1],
269269 class: data[key][2],
270270 size: 0.05,
271271 shape: 'diamond'
272- });
273- });
272+ }} );
273+ }} );
274274
275275 return [
276- {
276+ {{
277277 key: label,
278278 values: values,
279279 color: "#4572A7"
280- }
280+ }}
281281 ];
282- }
283- });
282+ }}
283+ }} );
284284 </script>
285285 </body>
286286</html>
0 commit comments