Index::healthcheckAction()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 4
ccs 2
cts 2
cp 1
crap 1
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace LibraryCatalog\Controller\V1;
6
7
use Psr\Http\Message\ResponseInterface;
8
9
class Index extends AbstractController
10
{
11
    /** @var bool */
12
    protected bool $needAuth = false;
13
14
    /**
15
     * @return ResponseInterface
16
     * @throws \DI\DependencyException
17
     * @throws \DI\NotFoundException
18
     */
19 1
    public function indexAction(): ResponseInterface
20
    {
21 1
        return $this->status();
22
    }
23
24
    /**
25
     * @return ResponseInterface
26
     * @throws \DI\DependencyException
27
     * @throws \DI\NotFoundException
28
     */
29 1
    public function healthcheckAction(): ResponseInterface
30
    {
31
        //return $this->systemError('healthcheck');
32 1
        return $this->status();
33
    }
34
}
35