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 — master ( 7cfef6...69fd9e )
by Steevan
02:13
created

SimpleObjectHydrator::createEntity()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 7
nc 1
nop 2
1
<?php
2
3
namespace steevanb\DoctrineReadOnlyHydrator\Hydrator;
4
5
use Doctrine\ORM\Mapping\ClassMetadata;
6
use steevanb\DoctrineStats\Doctrine\ORM\Event\OverloadedHydratorTrait;
7
8
/**
9
 * Use it with https://github.com/steevanb/doctrine-stats
10
 */
11
class SimpleObjectHydrator extends \ComposerOverloadClass\steevanb\DoctrineReadOnlyHydrator\Hydrator\SimpleObjectHydrator
12
{
13
    use OverloadedHydratorTrait;
14
15
    /**
16
     * @param ClassMetadata $classMetaData
17
     * @param array $data
18
     * @return mixed
19
     * @throws \Exception
20
     */
21
    protected function createEntity(ClassMetadata $classMetaData, array $data)
22
    {
23
        $entity = parent::createEntity($classMetaData, $data);
24
25
        $this->dispatchPostCreateEntityEvent($classMetaData, $data);
26
27
        return $entity;
28
    }
29
}
30