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.

TableForm::__construct()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 40

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 40
rs 9.28
c 0
b 0
f 0
cc 2
nc 2
nop 1
1
<?php
2
namespace ZfTable\Form;
3
4
use Zend\Form\Form;
5
6
class TableForm extends Form
7
{
8
    public function __construct($columnFields = null)
9
    {
10
        //Create the generic fields for the table
11
        parent::__construct('ZFTable');
12
        $this->setAttribute('method', 'post');
13
        $this->add(array(
14
            'name' => 'zfTableItemPerPage',
15
            'attributes' => array(
16
                'type'  => 'text',
17
            ),
18
        ));
19
        $this->add(array(
20
            'name' => 'zfTableQuickSearch',
21
            'attributes' => array(
22
                'type'  => 'text',
23
            ),
24
        ));
25
        $this->add(array(
26
            'name' => 'zfTableOrder',
27
            'attributes' => array(
28
                'type'  => 'text',
29
            ),
30
        ));
31
        $this->add(array(
32
            'name' => 'zfTableColumn',
33
            'attributes' => array(
34
                'type'  => 'text',
35
            ),
36
        ));
37
38
        //Creates a field for each of the columns in the table
39
        foreach ($columnFields as $fieldName) {
40
            $this->add(array(
41
                'name' => 'zff_' . $fieldName,
42
                'attributes' => array(
43
                    'type'  => 'text',
44
                ),
45
            ));
46
        }
47
    }
48
}
49