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.

ConditionPluginManager   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 40
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A validatePlugin() 0 7 2
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\Condition;
10
11
use Zend\ServiceManager\AbstractPluginManager;
12
13
class ConditionPluginManager extends AbstractPluginManager
14
{
15
16
    /**
17
     * Default set of helpers
18
     *
19
     * @var array
20
     */
21
    protected $invokableClasses = array(
22
        'equal' => '\ZfTable\Decorator\Condition\Plugin\Equal',
23
        'notequal' => '\ZfTable\Decorator\Condition\Plugin\NotEqual',
24
        'between' => '\ZfTable\Decorator\Condition\Plugin\Between',
25
        'greaterthan' => '\ZfTable\Decorator\Condition\Plugin\GreaterThan',
26
        'lesserthan' => '\ZfTable\Decorator\Condition\Plugin\LesserThan',
27
28
29
    );
30
31
    /**
32
     * Don't share plugin by default
33
     *
34
     * @var bool
35
     */
36
    protected $shareByDefault = false;
37
38
39
    /**
40
     * See AbstractPluginManager
41
     *
42
     * @throws \DomainException
43
     * @param mixed $plugin
44
     */
45
    public function validatePlugin($plugin)
46
    {
47
        if ($plugin instanceof AbstractCondition) {
48
            return;
49
        }
50
        throw new \DomainException('Invalid Condition Implementation');
51
    }
52
}
53