src/Components/ComponentActions.php
Method searchComponents
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
public function searchComponents($search, $by, $limit = 1, $num = 1000, $page = 1)
Avoid too many return
statements within this method. Open
Open
return array_slice($filtered, 0, $limit);