mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-07-15 22:01:45 +00:00
Revert SonarQube proposed change. Having more than one return is acceptable nowadays
This commit is contained in:
parent
5852ef9674
commit
e49e2d7976
1 changed files with 19 additions and 20 deletions
|
|
@ -465,7 +465,9 @@ class BuerklinProvider implements BatchInfoProviderInterface
|
|||
public function searchByKeyword(string $keyword): array
|
||||
{
|
||||
$keyword = strtoupper(trim($keyword));
|
||||
if (!empty($keyword)) {
|
||||
if ($keyword === '') {
|
||||
return [];
|
||||
}
|
||||
|
||||
$response = $this->makeAPICall('/products/search/', [
|
||||
'pageSize' => 50,
|
||||
|
|
@ -488,9 +490,6 @@ class BuerklinProvider implements BatchInfoProviderInterface
|
|||
} catch (\Throwable $e) {
|
||||
return [];
|
||||
}
|
||||
} else {
|
||||
return [];
|
||||
}
|
||||
}
|
||||
|
||||
public function getDetails(string $id): PartDetailDTO
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue