1
0
mirror of https://github.com/mrclay/minify.git synced 2025-08-16 19:14:01 +02:00

do some trivial codestyle fixes

unix newlines, trailing spaces
This commit is contained in:
Elan Ruusamäe
2016-01-22 00:30:38 +02:00
parent 90bf31f53b
commit 379feaba99
40 changed files with 1424 additions and 1327 deletions

View File

@@ -73,6 +73,7 @@ class Minify_ClosureCompiler
public static function minify($js, $options = array())
{
$min = new static();
return $min->process($js, $options);
}
@@ -123,6 +124,7 @@ class Minify_ClosureCompiler
$this->getCompilerCommandLine(),
$this->getOptionsCommandLine($userOptions)
);
return join(' ', $args) . ' ' . escapeshellarg($tmpFile);
}
@@ -137,6 +139,7 @@ class Minify_ClosureCompiler
self::$javaExecutable,
'-jar', escapeshellarg(self::$jarFile)
);
return $server;
}
@@ -215,6 +218,7 @@ class Minify_ClosureCompiler
throw new Minify_ClosureCompiler_Exception('Could not create temp file in "' . $dir . '".');
}
file_put_contents($tmpFile, $content);
return $tmpFile;
}
@@ -232,6 +236,7 @@ class Minify_ClosureCompiler
if (!in_array($result_code, $expectedCodes)) {
throw new Minify_ClosureCompiler_Exception("Unpexpected return code: $result_code");
}
return $output;
}
}