Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
12 / 12
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
Changelog
100.00% covered (success)
100.00%
12 / 12
100.00% covered (success)
100.00%
1 / 1
2
100.00% covered (success)
100.00%
1 / 1
 readResponse
100.00% covered (success)
100.00%
12 / 12
100.00% covered (success)
100.00%
1 / 1
2
1<?php
2
3/**
4 * @package Zmsadmin
5 * @copyright BerlinOnline Stadtportal GmbH & Co. KG
6 **/
7
8namespace BO\Zmsadmin;
9
10class Changelog extends BaseController
11{
12    /**
13     * @SuppressWarnings(Param)
14     * @return String
15     */
16    public function readResponse(
17        \Psr\Http\Message\RequestInterface $request,
18        \Psr\Http\Message\ResponseInterface $response,
19        array $args
20    ) {
21        try {
22            $workstation = \App::$http->readGetResult('/workstation/', ['resolveReferences' => 1])->getEntity();
23        } catch (\Exception $workstationexception) {
24            $workstation = null;
25        }
26        return \BO\Slim\Render::withHtml(
27            $response,
28            'page/changelog.twig',
29            array(
30                'title' => 'Changelog',
31                'menuActive' => 'changelog',
32                'workstation' => $workstation
33            )
34        );
35    }
36}