Radio   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getColumnConfig() 0 6 1
1
<?php
2
/**
3
 * @package Nnx\DataGrid
4
 * @author Lobanov Aleksandr
5
 */
6
7
namespace Nnx\DataGrid\View\Helper\JqGrid\Column;
8
9
use Nnx\DataGrid\Column\ColumnInterface;
10
11
/**
12
 * Class Radio
13
 * @package Nnx\DataGrid\View\Helper\JqGrid\Column
14
 */
15
class Radio extends Text
16
{
17
    /**
18
     * Возвращает конфигурацию колонки
19
     * @param ColumnInterface $column
20
     * @return array
21
     */
22
    protected function getColumnConfig(ColumnInterface $column)
23
    {
24
        $config = parent::getColumnConfig($column);
0 ignored issues
show
Coding Style introduced by
Equals sign not aligned with surrounding assignments; expected 14 spaces but found 1 space

This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line.

To visualize

$a = "a";
$ab = "ab";
$abc = "abc";

will produce issues in the first and second line, while this second example

$a   = "a";
$ab  = "ab";
$abc = "abc";

will produce no issues.

Loading history...
25
        $config['formatter'] = 'radio';
26
        return $config;
27
    }
28
}
0 ignored issues
show
Coding Style introduced by
As per coding style, files should not end with a newline character.

This check marks files that end in a newline character, i.e. an empy line.

Loading history...
29