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.

Code Duplication    Length = 35-35 lines in 2 locations

src/ZfTable/Decorator/Condition/Plugin/GreaterThan.php 1 location

@@ 13-47 (lines=35) @@
10
11
use ZfTable\Decorator\Condition\AbstractCondition;
12
13
class GreaterThan extends AbstractCondition
14
{
15
16
    /**
17
     * Name of column
18
     * @var string
19
     */
20
    protected $column;
21
22
    /**
23
     * Value
24
     * @var array
25
     */
26
    protected $value;
27
28
    /**
29
     *
30
     * @param array $options
31
     */
32
    public function __construct($options)
33
    {
34
        $this->column = $options['column'];
35
        $this->value = $options['value'];
36
    }
37
38
    /**
39
     * Check if the condition is valid
40
     * @return boolean
41
     */
42
    public function isValid()
43
    {
44
        $row = $this->getActulRow();
45
        return ($row[$this->column] > $this->value) ? true : false;
46
    }
47
}
48

src/ZfTable/Decorator/Condition/Plugin/LesserThan.php 1 location

@@ 13-47 (lines=35) @@
10
11
use ZfTable\Decorator\Condition\AbstractCondition;
12
13
class LesserThan extends AbstractCondition
14
{
15
16
    /**
17
     * Name of column
18
     * @var string
19
     */
20
    protected $column;
21
22
    /**
23
     * Value
24
     * @var array
25
     */
26
    protected $value;
27
28
    /**
29
     *
30
     * @param array $options
31
     */
32
    public function __construct($options)
33
    {
34
        $this->column = $options['column'];
35
        $this->value = $options['value'];
36
    }
37
38
    /**
39
     * Check if the condition is valid
40
     * @return boolean
41
     */
42
    public function isValid()
43
    {
44
        $row = $this->getActulRow();
45
        return ($row[$this->column] < $this->value) ? true : false;
46
    }
47
}
48