Completed
Push — master ( e61f48...23ee6c )
by Andrii
43:08 queued 14:00
created

ReadmeMarkdownController   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getTemplate() 0 4 1
A getTwig() 0 4 1
A getReadme() 0 4 1
1
<?php
2
/**
3
 * README plugin for HiDev
4
 *
5
 * @link      https://github.com/hiqdev/hidev-readme
6
 * @package   hidev-readme
7
 * @license   BSD-3-Clause
8
 * @copyright Copyright (c) 2015-2017, HiQDev (http://hiqdev.com/)
9
 */
10
11
namespace hidev\readme\controllers;
12
13
/**
14
 * Goal for README.md file generation.
15
 * @author Andrii Vasyliev <[email protected]>
16
 */
17
class ReadmeMarkdownController extends \hidev\controllers\TemplateController
18
{
19
    /**
20
     * {@inheritdoc}
21
     */
22 2
    public function getTemplate()
23
    {
24 2
        return 'readme-md';
25
    }
26
27
    /**
28
     * Twig getter.
29
     * @return \Twig_Environment
30
     */
31
    public function getTwig()
32
    {
33
        return $this->getReadme()->getTwig();
34
    }
35
36
    /**
37
     * Readme goal getter.
38
     * @return ReadmeController
39
     */
40
    public function getReadme()
41
    {
42
        return $this->takeGoal('readme');
43
    }
44
}
45