Ip   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 6

Importance

Changes 0
Metric Value
dl 0
loc 16
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 6

1 Method

Rating   Name   Duplication   Size   Complexity  
A decorate() 0 9 1
1
<?php
2
3
namespace Boduch\Grid\Decorators;
4
5
use Boduch\Grid\Cell;
6
7
class Ip extends Decorator
8
{
9
    /**
10
     * @param Cell $cell
11
     * @return void
12
     */
13
    public function decorate(Cell $cell)
14
    {
15
        // disable auto escape so we can display <a> html tag in cell
16
        $cell->getColumn()->setAutoescape(false);
17
18
        $cell->setValue(
19
            $cell->getColumn()->getGrid()->getGridHelper()->getHtmlBuilder()->tag('abbr', (string) $cell->getUnescapedValue())
20
        );
21
    }
22
}
23