Passed
Push — master ( 42303c...a9e041 )
by Dispositif
02:43
created

LienWebOptimizer   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A doTasks() 0 10 1
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
namespace App\Domain\WikiOptimizer;
11
12
use App\Domain\AbstractTemplateOptimizer;
13
use App\Domain\WikiOptimizer\Handlers\HandlerComposite;
14
use App\Domain\WikiOptimizer\Handlers\WebCleanAuthorsHandler;
15
use App\Domain\WikiOptimizer\Handlers\WebSitePeriodiqueHandler;
16
17
class LienWebOptimizer extends AbstractTemplateOptimizer
18
{
19
    /**
20
     * @var OptiStatus
21
     */
22
    protected $optiStatus;
23
24
    public function doTasks(): self
25
    {
26
        /** @noinspection PhpParamsInspection */
27
        $handler = new HandlerComposite([
28
            new WebSitePeriodiqueHandler($this->optiTemplate, $this->log),
29
            new WebCleanAuthorsHandler($this->optiTemplate),
30
        ]);
31
        $handler->handle();
32
33
        return $this;
34
    }
35
}
36