Completed
Pull Request — newinternal (#285)
by Simon
03:26
created

FakeBlacklistHelper   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
dl 0
loc 15
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
wmc 1
lcom 0
cbo 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A isBlacklisted() 0 5 1
1
<?php
2
/******************************************************************************
3
 * Wikipedia Account Creation Assistance tool                                 *
4
 *                                                                            *
5
 * All code in this file is released into the public domain by the ACC        *
6
 * Development Team. Please see team.json for a list of contributors.         *
7
 ******************************************************************************/
8
9
namespace Waca\Helpers;
10
11
use Waca\Helpers\Interfaces\IBlacklistHelper;
12
13
class FakeBlacklistHelper implements IBlacklistHelper
14
{
15
    /**
16
     * Returns a value indicating whether the provided username is blacklisted by the on-wiki title blacklist
17
     *
18
     * @param string $username
19
     *
20
     * @return bool
21
     */
22
    public function isBlacklisted($username)
23
    {
24
        // Short-circuit
25
        return false;
26
    }
27
}