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.

DebugWritableRepository::addMany()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 11
rs 9.4285
cc 1
eloc 6
nc 1
nop 1
1
<?php
2
3
namespace UCD\Infrastructure\Repository\CharacterRepository;
4
5
use Psr\Log\LoggerInterface;
6
7
use UCD\Unicode\Character\Collection;
8
use UCD\Unicode\Character\WritableRepository;
9
use UCD\Unicode\CodepointAssigned;
10
use UCD\Unicode\Character\Repository;
11
12
class DebugWritableRepository extends DebugRepository implements WritableRepository
13
{
14
    use Repository\Capability\Notify;
15
16
    /**
17
     * @var WritableRepository
18
     */
19
    protected $delegate;
20
21
    /**
22
     * @param WritableRepository $delegate
23
     * @param LoggerInterface $logger
24
     */
25
    public function __construct(WritableRepository $delegate, LoggerInterface $logger)
26
    {
27
        parent::__construct($delegate, $logger);
28
    }
29
30
    /**
31
     * {@inheritDoc}
32
     */
33
    public function addMany(Collection $characters)
34
    {
35
        $function = __FUNCTION__;
36
37
        $characters->traverseWith(function (CodepointAssigned $c) use ($function) {
38
            $this->logMethodCall($function, [(string)$c->getCodepoint()]);
39
        });
40
41
        $this->delegate->addMany($characters);
42
        $this->notify();
43
    }
44
}