Permalink
Browse files

Changed "self" calls to "static" ones.

This isn’t php5.2 anymore, and this will make extending the class
easier.
  • Loading branch information...
1 parent d42be25 commit 84165105b76d0451737840028717ca95b6b65df4 @tedivm committed Jan 27, 2014
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/JShrink/Minifier.php
View
8 src/JShrink/Minifier.php
@@ -99,7 +99,7 @@ public static function minify($js, $options = array())
{
try {
ob_start();
- $currentOptions = array_merge(self::$defaultOptions, $options);
+ $currentOptions = array_merge(static::$defaultOptions, $options);
$jshrink = new Minifier();
$jshrink->breakdownScript($js, $currentOptions);
@@ -184,7 +184,7 @@ protected function breakdownScript($js, $currentOptions)
// otherwise we treat the newline like a space
case ' ':
- if(self::isAlphaNumeric($this->b))
+ if(static::isAlphaNumeric($this->b))
echo $this->a;
$this->saveString();
@@ -198,15 +198,15 @@ protected function breakdownScript($js, $currentOptions)
$this->saveString();
break;
} else {
- if (self::isAlphaNumeric($this->a)) {
+ if (static::isAlphaNumeric($this->a)) {
echo $this->a;
$this->saveString();
}
}
break;
case ' ':
- if(!self::isAlphaNumeric($this->a))
+ if(!static::isAlphaNumeric($this->a))
break;
default:

0 comments on commit 8416510

Please sign in to comment.