Passed
Push — master ( 00b675...b5f4af )
by Gabor
06:20
created

IndexAction::getTemplateName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/**
3
 * WebHemi.
4
 *
5
 * PHP version 7.1
6
 *
7
 * @copyright 2012 - 2017 Gixx-web (http://www.gixx-web.com)
8
 * @license   https://opensource.org/licenses/MIT The MIT License (MIT)
9
 *
10
 * @link      http://www.gixx-web.com
11
 */
12
declare(strict_types = 1);
13
14
namespace WebHemi\Middleware\Action\Admin\About;
15
16
use RuntimeException;
17
use WebHemi\Middleware\Action\AbstractMiddlewareAction;
18
19
/**
20
 * Class IndexAction
21
 */
22
class IndexAction extends AbstractMiddlewareAction
23
{
24
    /**
25
     * Gets template map name or template file path.
26
     *
27
     * @return string
28
     */
29
    public function getTemplateName() : string
30
    {
31
        return '';
32
    }
33
34
    /**
35
     * Gets template data.
36
     *
37
     * @return array
38
     */
39
    public function getTemplateData() : array
40
    {
41
        throw new RuntimeException('Not Implemented', 501);
42
43
        return [];
0 ignored issues
show
Unused Code introduced by
return array(); does not seem to be reachable.

This check looks for unreachable code. It uses sophisticated control flow analysis techniques to find statements which will never be executed.

Unreachable code is most often the result of return, die or exit statements that have been added for debug purposes.

function fx() {
    try {
        doSomething();
        return true;
    }
    catch (\Exception $e) {
        return false;
    }

    return false;
}

In the above example, the last return false will never be executed, because a return statement has already been met in every possible execution path.

Loading history...
44
    }
45
}
46