Passed
Push — master ( f64044...30b8bb )
by Churakov
04:07 queued 11s
created

TextFormatter::format()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 1
c 1
b 0
f 1
nc 1
nop 1
dl 0
loc 3
rs 10
1
<?php
2
3
namespace ChurakovMike\EasyGrid\Formatters;
4
5
/**
6
 * Format row data as text.
7
 *
8
 * Class TextFormatter
9
 * @package ChurakovMike\EasyGrid\Formatters
10
 */
11
class TextFormatter extends BaseFormatter
12
{
13
    /**
14
     * Format value as simple text without html tags.
15
     *
16
     * @param $value
17
     * @return mixed
18
     */
19
    public function format($value)
20
    {
21
        return strip_tags($value);
22
    }
23
}
24