Failed Conditions
Pull Request — master (#9)
by Maximo
03:21
created

TimeZonesController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A index() 0 3 1
1
<?php
0 ignored issues
show
Coding Style introduced by
End of line character is invalid; expected "\n" but found "\r\n"
Loading history...
2
declare(strict_types=1);
3
4
namespace Gewaer\Api\Controllers;
5
6
use Phalcon\Http\Response;
7
use DateTimeZone;
8
9
/**
10
 * Base controller
11
 *
12
 */
13
class TimeZonesController extends BaseController
14
{
15
    /**
16
     * Index
17
     *
18
     * @method GET
19
     * @url /
20
     *
21
     * @return Phalcon\Http\Response
0 ignored issues
show
Bug introduced by
The type Gewaer\Api\Controllers\Phalcon\Http\Response was not found. Did you mean Phalcon\Http\Response? If so, make sure to prefix the type with \.
Loading history...
22
     */
23
    public function index($id = null) : Response
24
    {
25
        return $this->response(DateTimeZone::listIdentifiers());
0 ignored issues
show
Bug Best Practice introduced by
The expression return $this->response(D...one::listIdentifiers()) returns the type Phalcon\Http\Response which is incompatible with the documented return type Gewaer\Api\Controllers\Phalcon\Http\Response.
Loading history...
26
    }
27
}
28