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.
Test Failed
Pull Request — master (#6)
by Fábio Tadeu da
03:22
created

OutboxEntityPersistence::persist()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 4
c 0
b 0
f 0
ccs 0
cts 3
cp 0
rs 10
cc 1
nc 1
nop 1
crap 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Dsantang\DomainEventsDoctrine\OutboxEvents;
6
7
use Doctrine\ORM\EntityManager;
8
9
class OutboxEntityPersistence
10
{
11
    /** @var EntityManager */
12
    private $entityManager;
13
14
    public function __construct(EntityManager $entityManager)
15
    {
16
        $this->entityManager = $entityManager;
17
    }
18
19
    public function persist(OutboxMappedSuperclass $entity) : void
20
    {
21
        $this->entityManager->persist($entity);
22
        $this->entityManager->getUnitOfWork()->computeChangeSets();
23
    }
24
}
25