Skip to content

Commit e5a8854

Browse files
committed
TASK: Some code cleanup
1 parent 2d25861 commit e5a8854

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

Classes/EelHelper/SuggestionIndexHelper.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,17 @@ protected function prepareInput($input): ?array
7171

7272
if (\is_string($input)) {
7373
return $process($input);
74-
} elseif (\is_array($input)) {
74+
}
75+
76+
if (\is_array($input)) {
7577
$data = [];
7678
foreach (array_map($process, $input) as $values) {
7779
$data = \array_merge($data, $values);
7880
}
7981
return $data;
80-
} else {
81-
throw new Exception('Only string or array are supported as input', 1512733287);
8282
}
83+
84+
throw new Exception('Only string or array are supported as input', 1512733287);
8385
}
8486

8587
/**

0 commit comments

Comments
 (0)