Completed
Push — master ( 15e322...e49d6c )
by Josh
18:21 queued 09:22
created

OnlineMinifier::getHttpClient()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 10
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 7
CRAP Score 2

Importance

Changes 3
Bugs 0 Features 1
Metric Value
c 3
b 0
f 1
dl 0
loc 10
ccs 7
cts 7
cp 1
rs 9.4285
cc 2
eloc 5
nc 2
nop 0
crap 2
1
<?php
2
3
/**
4
* @package   s9e\TextFormatter
5
* @copyright Copyright (c) 2010-2016 The s9e Authors
6
* @license   http://www.opensource.org/licenses/mit-license.php The MIT License
7
*/
8
namespace s9e\TextFormatter\Configurator\JavaScript;
9
10
use s9e\TextFormatter\Utils\Http;
11
12
abstract class OnlineMinifier extends Minifier
13
{
14
	/**
15
	* @var \s9e\TextFormatter\Utils\Http\Client Client used to perform HTTP request
16
	*/
17
	public $httpClient;
18
19
	/**
20
	* Constructor
21
	*
22
	* @return void
23
	*/
24 12
	public function __construct()
25
	{
26 12
		$this->httpClient = Http::getClient();
27
	}
28
}