TextFormatter   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 3
c 1
b 0
f 0
dl 0
loc 15
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A format() 0 3 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