Passed
Branch master (fd6b1a)
by Dispositif
03:51 queued 01:13
created

MixBnfCopyright   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
eloc 3
c 1
b 0
f 0
dl 0
loc 6
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A handle() 0 4 3
1
<?php
2
/*
3
 * This file is part of dispositif/wikibot application (@github)
4
 * 2019-2023 © Philippe M./Irønie  <[email protected]>
5
 * For the full copyright and MIT license information, view the license file.
6
 */
7
8
declare(strict_types=1);
9
10
11
namespace App\Domain\Transformers\Handlers;
12
13
14
class MixBnfCopyright extends AbstractMixHandler
15
{
16
    public function handle()
17
    {
18
        if ($this->optiStatus->isNotCosmetic() && 'BnF' === $this->book->getDataSource()) {
19
            $this->optiStatus->addSummaryLog('@BnF');
20
        }
21
    }
22
}