TextFormatter::format()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

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