Completed
Branch newinternal (104de7)
by Simon
10:16
created

FakeBlacklistHelper   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 15
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A isBlacklisted() 0 5 1
1
<?php
2
3
namespace Waca\Helpers;
4
5
use Waca\Helpers\Interfaces\IBlacklistHelper;
6
7
class FakeBlacklistHelper implements IBlacklistHelper
8
{
9
	/**
10
	 * Returns a value indicating whether the provided username is blacklisted by the on-wiki title blacklist
11
	 *
12
	 * @param string $username
13
	 *
14
	 * @return bool
15
	 */
16
	public function isBlacklisted($username)
17
	{
18
		// Short-circuit
19
		return false;
20
	}
21
}