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.

MetadataReaderManager   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 2
c 2
b 0
f 0
lcom 0
cbo 2
dl 0
loc 15
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A validatePlugin() 0 7 2
1
<?php
2
/**
3
 * @link https://github.com/old-town/workflow-zf2-dispatch
4
 * @author  Malofeykin Andrey  <[email protected]>
5
 */
6
namespace OldTown\Workflow\ZF2\Dispatch\Metadata;
7
8
use Zend\ServiceManager\AbstractPluginManager;
9
10
/**
11
 * Class MetadataReaderManager
12
 *
13
 * @package OldTown\Workflow\ZF2\Dispatch\Metadata
14
 */
15
class MetadataReaderManager extends AbstractPluginManager implements MetadataReaderManagerInterface
16
{
17
    /**
18
     * @param mixed $plugin
19
     *
20
     * @throws Exception\InvalidMetadataReaderException
21
     */
22
    public function validatePlugin($plugin)
23
    {
24
        if (!$plugin instanceof ReaderInterface) {
25
            $errMsg = sprintf('MetadataReader not implement %s', ReaderInterface::class);
26
            throw new Exception\InvalidMetadataReaderException($errMsg);
27
        }
28
    }
29
}
30