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

LienWebOptimizer::doTasks()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

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