chg: [helper:ScopedCSS] Usage of PHP_EOL

pull/5709/head
mokaddem 2020-03-20 09:11:49 +01:00
parent d384cced23
commit 1371af6377
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ App::uses('AppHelper', 'View/Helper');
private function preppendScopedId($css, $seed)
{
$prependSelector = sprintf('[data-scoped="%s"]', $seed);
$cssLines = explode("\n", $css);
$cssLines = explode(PHP_EOL, $css);
foreach ($cssLines as $i => $line) {
if (strlen($line) > 0) {
if ($this->endsWith($line, "{") || $this->endsWith($line, ",")) {