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.
Completed
Push — dev ( 40bda2...5b7120 )
by Андрей
04:01
created

MetadataReaderManager::init()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 6
rs 9.4285
c 1
b 0
f 0
cc 1
eloc 3
nc 1
nop 0
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