mirror of
https://github.com/mrclay/minify.git
synced 2025-08-16 19:14:01 +02:00
avoid unneccessary static calls
This commit is contained in:
@@ -131,7 +131,7 @@ class Minify_ClosureCompiler
|
|||||||
*/
|
*/
|
||||||
protected function getCompilerCommandLine()
|
protected function getCompilerCommandLine()
|
||||||
{
|
{
|
||||||
self::checkJar(self::$jarFile);
|
$this->checkJar(self::$jarFile);
|
||||||
$server = array(
|
$server = array(
|
||||||
self::$javaExecutable,
|
self::$javaExecutable,
|
||||||
'-jar', escapeshellarg(self::$jarFile)
|
'-jar', escapeshellarg(self::$jarFile)
|
||||||
@@ -206,7 +206,7 @@ class Minify_ClosureCompiler
|
|||||||
*/
|
*/
|
||||||
protected function dumpFile($dir, $content)
|
protected function dumpFile($dir, $content)
|
||||||
{
|
{
|
||||||
self::checkTempdir($dir);
|
$this->checkTempdir($dir);
|
||||||
$tmpFile = tempnam($dir, 'cc_');
|
$tmpFile = tempnam($dir, 'cc_');
|
||||||
if (!$tmpFile) {
|
if (!$tmpFile) {
|
||||||
throw new Minify_ClosureCompiler_Exception('Could not create temp file in "' . $dir . '".');
|
throw new Minify_ClosureCompiler_Exception('Could not create temp file in "' . $dir . '".');
|
||||||
|
Reference in New Issue
Block a user