Completed
Push — master ( 1bc944...fd08fc )
by Josh
15:52
created

MatthiasMullieMinify   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A minify() 0 6 1
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\Minifiers;
9
10
use MatthiasMullie\Minify;
11
use s9e\TextFormatter\Configurator\JavaScript\Minifier;
12
13
/**
14
* @link http://www.minifier.org/
15
*/
16
class MatthiasMullieMinify extends Minifier
17
{
18
	/**
19
	* Compile given JavaScript source using matthiasmullie/minify
20
	*
21
	* @param  string $src JavaScript source
22
	* @return string      Compiled source
23
	*/
24
	public function minify($src)
25
	{
26
		$minifier = new Minify\JS($src);
27
28
		return $minifier->minify();
29
	}
30
}