Skip to content

Commit f87ef6a

Browse files
author
Яценко Андрей
committed
fix: typo
1 parent 0074062 commit f87ef6a

File tree

2 files changed

+10
-71
lines changed

2 files changed

+10
-71
lines changed

src/Report/Csv/Reporter.php

Lines changed: 0 additions & 61 deletions
This file was deleted.

src/Report/Html/Reporter.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,21 @@ class Reporter
88
{
99
/** @var array */
1010
private $config;
11-
11+
1212
/**
1313
* @param array $config
1414
*/
1515
public function __construct(array $config)
1616
{
1717
$this->config = $config;
1818
}
19-
20-
19+
20+
2121
public function generate(RouteCoverage $result)
2222
{
2323
$content = '<html><title>Route coverage report</title><link rel="stylesheet" href="css/style.css"><body>';
24-
$content .= '<h2>Covarage ' . $result->getCoveragePercent() . '% </h2>';
25-
24+
$content .= '<h2>Coverage ' . $result->getCoveragePercent() . '% </h2>';
25+
2626
$content .= '<table>';
2727
$content .= '<thead><td>URL</td><td>Methods</td><td>Controller</td><td>Action</td><td>Count</td></thead>';
2828
$content .= '<tbody>';
@@ -34,8 +34,8 @@ public function generate(RouteCoverage $result)
3434
} else {
3535
$class = 'error';
3636
}
37-
38-
37+
38+
3939
$content .= '<tr class="' . $class . '">';
4040
$content .= '<td>' . $route['url'] . ' </td>';
4141
$content .= '<td class="methods">' . implode(', ', $route['methods']) . ' </td>';
@@ -45,17 +45,17 @@ public function generate(RouteCoverage $result)
4545
$content .= '</tr>';
4646
}
4747
$content .= '</tbody></table>';
48-
48+
4949
$content .= '</body></html>';
50-
50+
5151
if (!file_exists($this->config['app_path'] . '/../public/route-coverage')) {
5252
mkdir($this->config['app_path'] . '/../public/route-coverage', 0755);
5353
}
5454
if (!file_exists($this->config['app_path'] . '/../public/route-coverage/css')) {
5555
mkdir($this->config['app_path'] . '/../public/route-coverage/css', 0755);
5656
}
5757
copy(__DIR__ . '/../../../template/html/style.css', $this->config['app_path'] . '/../public/route-coverage/css/style.css');
58-
58+
5959
$myFile = $this->config['app_path'] . '/../public/route-coverage/report.html';
6060
$fh = fopen($myFile, 'w');
6161
fwrite($fh, $content);

0 commit comments

Comments
 (0)