Skip to content

Commit 644ed04

Browse files
committed
style: nested functions to pipes
1 parent 35bf8a2 commit 644ed04

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/Sniff/SimparaSniff.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,9 @@ private function getAllowedElements(): array
206206
$additional = array_map('trim', explode(',', $extra));
207207
$additional = array_filter($additional, static fn(string $s): bool => $s !== '');
208208

209-
return array_values(array_unique(array_merge(self::SIMPARA_ALLOWED, $additional)));
209+
return array_merge(self::SIMPARA_ALLOWED, $additional)
210+
|> array_unique(...)
211+
|> array_values(...);
210212
}
211213

212214
/**

0 commit comments

Comments
 (0)