Test Failed
Pull Request — master (#84)
by Maximo
04:28
created

IndexController   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 2
eloc 3
dl 0
loc 26
ccs 0
cts 2
cp 0
c 0
b 0
f 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A index() 0 3 1
A status() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Gewaer\Api\Controllers;
6
7
use Phalcon\Http\Response;
8
use Canvas\Api\Controllers\IndexController as CanvasIndexController;
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
    public function status() : Response
44
    {
45
        return parent::status();
46
    }
47
}
48