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.

Editable   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 3

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A render() 0 7 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
namespace ZfTable\Decorator\Cell;
10
11
use ZfTable\Decorator\Exception;
12
13
class Editable extends AbstractCellDecorator
14
{
15
16
    /**
17
     * Constructor
18
     *
19
     * @param array $options
20
     * @throws Exception\InvalidArgumentException
21
     */
22
    public function __construct($options = array())
0 ignored issues
show
Unused Code introduced by
The parameter $options is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
23
    {
24
    }
25
26
    /**
27
     * Rendering decorator
28
     *
29
     * @param string $context
30
     * @return string
31
     */
32
    public function render($context)
33
    {
34
        $cell = $this->getCell();
35
        $cell->addClass('editable');
36
        $cell->addAttr('data-column', $cell->getHeader()->getName());
37
        return $context;
38
    }
39
}
40