MarkdownFormatter::asBody()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace Sugarcrm\UpgradeSpec\Formatter;
4
5
class MarkdownFormatter implements FormatterInterface
6
{
7
    /**
8
     * @param $text
9
     * @param int $level
10
     *
11
     * @return string
12
     */
13
    public function asTitle($text, $level = 1)
14
    {
15
        return str_repeat('#', $level) . ' ' . ucfirst($text);
16
    }
17
18
    /**
19
     * @param $text
20
     *
21
     * @return string
22
     */
23
    public function asBody($text)
24
    {
25
        return $text;
26
    }
27
28
    /**
29
     * @return string
30
     */
31
    public function getDelimiter()
32
    {
33
        return PHP_EOL . PHP_EOL;
34
    }
35
}
36