Index   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
c 1
b 0
f 0
dl 0
loc 24
ccs 4
cts 4
cp 1
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A indexAction() 0 3 1
A healthcheckAction() 0 4 1
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