Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
100.00% |
11 / 11 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
| Changelog | |
100.00% |
11 / 11 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
| readResponse | |
100.00% |
11 / 11 |
|
100.00% |
1 / 1 |
1 | |||
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * @package Zmsstatistic |
| 5 | * @copyright BerlinOnline Stadtportal GmbH & Co. KG |
| 6 | **/ |
| 7 | |
| 8 | namespace BO\Zmsstatistic; |
| 9 | |
| 10 | use BO\Slim\Render; |
| 11 | use Psr\Http\Message\RequestInterface; |
| 12 | use Psr\Http\Message\ResponseInterface; |
| 13 | use BO\Zmsstatistic\Helper\ChangelogHelper; |
| 14 | |
| 15 | class Changelog extends BaseController |
| 16 | { |
| 17 | protected $withAccess = false; |
| 18 | /** |
| 19 | * @SuppressWarnings(Param) |
| 20 | * @return ResponseInterface |
| 21 | */ |
| 22 | public function readResponse( |
| 23 | RequestInterface $request, |
| 24 | ResponseInterface $response, |
| 25 | array $args |
| 26 | ) { |
| 27 | $changelogHelper = new ChangelogHelper(); |
| 28 | $changelogContent = $changelogHelper->getChangelogHtml(); |
| 29 | |
| 30 | return Render::withHtml( |
| 31 | $response, |
| 32 | 'page/changelog.twig', |
| 33 | array( |
| 34 | 'title' => 'Changelog', |
| 35 | 'menuActive' => 'changelog', |
| 36 | 'changelogContent' => $changelogContent |
| 37 | ) |
| 38 | ); |
| 39 | } |
| 40 | } |