Conditions | 1 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
56 | public function show() { |
||
57 | |||
58 | $response = new \Venus\lib\Response(); |
||
59 | |||
60 | $response->setContent('<html><body><h1>Hello world!</h1></body></html>'); |
||
61 | $response->setStatusCode(\Venus\lib\Response::HTTP_OK); |
||
62 | $response->headers->set('Content-Type', 'text/html'); |
||
63 | $response->send(); |
||
64 | } |
||
65 | } |
||
66 |
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.