Passed
Push — master ( 6b8380...9538c8 )
by Dispositif
02:38
created

ExtendedMediawikiFactory   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A newRevisionSaverExtended() 0 5 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\Infrastructure\Mediawiki;
11
12
use App\Infrastructure\ServiceFactory;
13
14
class ExtendedMediawikiFactory
15
{
16
    public static function newRevisionSaverExtended(): ExtendedRevisionSaver
17
    {
18
        $api = ServiceFactory::getMediawikiApi(false); // Mediawiki\Api\MediawikiApi
19
20
        return new ExtendedRevisionSaver($api);
21
    }
22
}
23