IndexController   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 50%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 28
c 0
b 0
f 0
ccs 2
cts 4
cp 0.5
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A index() 0 4 1
A status() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Gewaer\Api\Controllers;
6
7
use Canvas\Api\Controllers\IndexController as CanvasIndexController;
8
use Phalcon\Http\Response;
9
10
/**
11
 * Class IndexController.
12
 *
13
 * @package Gewaer\Api\Controllers
14
 *
15
 * @property Redis $redis
16
 * @property Beanstalk $queue
17
 * @property Mysql $db
18
 * @property \Monolog\Logger $log
19
 */
20
class IndexController extends CanvasIndexController
21
{
22
    /**
23
     * Index.
24
     *
25
     * @method GET
26
     * @url /
27
     *
28
     * @return Response
29
     */
30
    public function index($id = null) : Response
31
    {
32
        return $this->response(['Woot Canvas']);
33
    }
34
35
    /**
36
     * Show the status of the diferent services.
37
     *
38
     * @method GET
39
     * @url /status
40
     *
41
     * @return Response
42
     */
43 1
    public function status() : Response
44
    {
45 1
        return parent::status();
46
    }
47
}
48