1
0
mirror of https://github.com/mrclay/minify.git synced 2025-08-16 02:54:33 +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()
{
self::checkJar(self::$jarFile);
$this->checkJar(self::$jarFile);
$server = array(
self::$javaExecutable,
'-jar', escapeshellarg(self::$jarFile)
@@ -206,7 +206,7 @@ class Minify_ClosureCompiler
*/
protected function dumpFile($dir, $content)
{
self::checkTempdir($dir);
$this->checkTempdir($dir);
$tmpFile = tempnam($dir, 'cc_');
if (!$tmpFile) {
throw new Minify_ClosureCompiler_Exception('Could not create temp file in "' . $dir . '".');