Skip to content

Commit 8451f91

Browse files
committed
style: break long line
1 parent 43d3f8d commit 8451f91

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

system/View/Parser.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,9 @@ protected function parse(string $template, array $data = [], ?array $options = n
257257
*/
258258
protected function parseSingle(string $key, string $val): array
259259
{
260-
$pattern = '#' . $this->leftDelimiter . '!?\s*' . preg_quote($key, '#') . '(?(?=\s*\|\s*)(\s*\|*\s*([|\w<>=\(\),:.\-\s\+\\\\/]+)*\s*))(\s*)!?' . $this->rightDelimiter . '#ums';
260+
$pattern = '#' . $this->leftDelimiter . '!?\s*' . preg_quote($key, '#')
261+
. '(?(?=\s*\|\s*)(\s*\|*\s*([|\w<>=\(\),:.\-\s\+\\\\/]+)*\s*))(\s*)!?'
262+
. $this->rightDelimiter . '#ums';
261263

262264
return [$pattern => $val];
263265
}

0 commit comments

Comments
 (0)