ImageFormatter   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A format() 0 3 1
1
<?php
2
3
namespace ChurakovMike\EasyGrid\Formatters;
4
5
/**
6
 * Format row data in html img tag.
7
 *
8
 * Class ImageFormatter.
9
 * @package ChurakovMike\EasyGrid\Formatters
10
 */
11
class ImageFormatter extends BaseFormatter
12
{
13
    /**
14
     * Format value as image.
15
     *
16
     * @param $value
17
     * @return mixed|string
18
     */
19
    public function format($value)
20
    {
21
        return '<img src="' . $value . '"/>';
22
    }
23
}
24