mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-07 02:53:10 +09:00
Update composer dependencies
This commit is contained in:
parent
06f5151f8f
commit
365d7cdba9
58 changed files with 1245 additions and 5987 deletions
|
|
@ -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)));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue