Passed
Push — master ( c12552...22ad80 )
by Gabor
04:56
created

BinaryAction::getTemplateName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 4
Ratio 100 %

Importance

Changes 0
Metric Value
dl 4
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\Website\Directory;
15
16
use WebHemi\Middleware\Action\AbstractMiddlewareAction;
17
18
/**
19
 * Class BinaryAction.
20
 */
21 View Code Duplication
class BinaryAction extends AbstractMiddlewareAction
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
22
{
23
    /**
24
     * Gets template map name or template file path.
25
     *
26
     * @return string
27
     */
28
    public function getTemplateName() : string
29
    {
30
        return 'website-post-list';
31
    }
32
33
    /**
34
     * Gets template data.
35
     *
36
     * @return array
37
     */
38
    public function getTemplateData() : array
39
    {
40
        $blogPosts = [];
41
        $title = '';
42
        $currentMenu = '';
43
44
        return [
45
            'title' => $title,
46
            'activeMenu' => $currentMenu,
47
            'blogPosts' => $blogPosts,
48
        ];
49
    }
50
}
51