Update composer dependencies

This commit is contained in:
Kijin Sung 2016-03-22 11:26:00 +09:00
parent 06f5151f8f
commit 365d7cdba9
58 changed files with 1245 additions and 5987 deletions

View file

@ -15,7 +15,7 @@ use Leafo\ScssPhp\Formatter;
use Leafo\ScssPhp\Formatter\OutputBlock;
/**
* SCSS compressed formatter
* Compressed formatter
*
* @author Leaf Corcoran <leafot@gmail.com>
*/
@ -33,18 +33,7 @@ class Compressed extends Formatter
$this->close = '}';
$this->tagSeparator = ',';
$this->assignSeparator = ':';
}
/**
* {@inheritdoc}
*/
public function stripSemicolon(&$lines)
{
if (($count = count($lines))
&& substr($lines[$count - 1], -1) === ';'
) {
$lines[$count - 1] = substr($lines[$count - 1], 0, -1);
}
$this->keepSemicolons = false;
}
/**
@ -70,15 +59,4 @@ class Compressed extends Formatter
echo $this->break;
}
}
/**
* {@inherit}
*/
public function format(OutputBlock $block)
{
return parent::format($block);
// TODO: we need to fix the 2 "compressed" tests where the "close" is applied
return trim(str_replace(';}', '}', parent::format($block)));
}
}