MarkdownContent   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A extension() 0 3 1
A make() 0 3 1
1
<?php
2
3
namespace Staticka\Content;
4
5
/**
6
 * TODO: Remove this file after v1.0.0.
7
 *
8
 * Markdown Content
9
 *
10
 * @package Staticka
11
 * @author  Rougin Gutib <[email protected]>
12
 */
13
class MarkdownContent extends \Parsedown implements ContentInterface
14
{
15
    /**
16
     * File name extension to be used.
17
     *
18
     * @return string
19
     */
20 6
    public function extension()
21
    {
22 6
        return 'md';
23
    }
24
25
    /**
26
     * Converts the specified code.
27
     *
28
     * @param  string $code
29
     * @return string
30
     */
31 9
    public function make($code)
32
    {
33 9
        return $this->text($code);
34
    }
35
}
36