Passed
Push — master ( 2d0039...fd6b1a )
by Dispositif
02:43
created

MixBnfCopyright::handle()   A

Complexity

Conditions 3
Paths 2

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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