Skip to content

Commit 8cad094

Browse files
committed
style: break long line
1 parent c873c35 commit 8cad094

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

system/Helpers/array_helper.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,12 @@
2121
function dot_array_search(string $index, array $array)
2222
{
2323
// See https://regex101.com/r/44Ipql/1
24-
$segments = preg_split('/(?<!\\\\)\./', rtrim($index, '* '), 0, PREG_SPLIT_NO_EMPTY);
24+
$segments = preg_split(
25+
'/(?<!\\\\)\./',
26+
rtrim($index, '* '),
27+
0,
28+
PREG_SPLIT_NO_EMPTY
29+
);
2530

2631
$segments = array_map(static function ($key) {
2732
return str_replace('\.', '.', $key);

0 commit comments

Comments
 (0)