Passed
Push — master ( c81c92...90dec6 )
by Josh
03:01
created

OnlineMinifier::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
3
/**
4
* @package   s9e\TextFormatter
5
* @copyright Copyright (c) 2010-2020 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
	public function __construct()
25
	{
26
		$this->httpClient = Http::getClient();
27
	}
28
}