Failed Conditions
Branch newinternal (3df7fe)
by Simon
04:13
created

UpdateTorExitTask   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
c 1
b 0
f 1
lcom 1
cbo 2
dl 0
loc 13
ccs 0
cts 7
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A execute() 0 7 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\ConsoleTasks;
10
11
use Waca\Providers\TorExitProvider;
12
use Waca\Tasks\ConsoleTaskBase;
13
14
class UpdateTorExitTask extends ConsoleTaskBase
15
{
16
	/**
17
	 * @return void
18
	 */
19
	public function execute()
20
	{
21
		TorExitProvider::regenerate(
22
			$this->getDatabase(),
23
			$this->getHttpHelper(),
24
			$this->getSiteConfiguration()->getTorExitPaths());
25
	}
26
}