GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Separatable   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 2
dl 0
loc 32
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A init() 0 4 1
A initFilters() 0 4 1
1
<?php
2
/**
3
 * ZfTable ( Module for Zend Framework 2)
4
 *
5
 * @copyright Copyright (c) 2013 Piotr Duda [email protected]
6
 * @license   MIT License
7
 */
8
9
10
namespace ZfTable\Example\TableExample;
11
12
use ZfTable\AbstractTable;
13
14
class Separatable extends AbstractTable
15
{
16
17
    protected $config = array(
18
        'name' => 'Separatable decorator',
19
        'showPagination' => true,
20
        'showQuickSearch' => false,
21
        'showItemPerPage' => true,
22
    );
23
24
    /**
25
     * @var array Definition of headers
26
     */
27
    protected $headers = array(
28
        'idcustomer' => array('title' => 'Id', 'width' => '50') ,
29
        'name' => array('title' => 'Name' , 'separatable' => true),
30
        'surname' => array('title' => 'Surname' ),
31
        'street' => array('title' => 'Street'),
32
        'city' => array('title' => 'City' , 'separatable' => true),
33
        'active' => array('title' => 'Active' , 'width' => 100 ),
34
    );
35
36
    public function init()
37
    {
38
        $this->getRow()->addDecorator('separatable', array('defaultColumn' => 'city'));
39
    }
40
41
    protected function initFilters($query)
42
    {
43
44
    }
45
}
46