1
0
mirror of https://github.com/mrclay/minify.git synced 2025-08-17 03:24:01 +02:00

avoid unneccessary static calls

This commit is contained in:
Elan Ruusamäe
2015-11-19 17:56:05 +02:00
parent 0a74b9c4a6
commit 35a9ab7d4a

View File

@@ -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 . '".');