mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-02 13:29:36 +00:00
Applied rector suggestions
This commit is contained in:
parent
4106bcef5f
commit
20f32c7f12
170 changed files with 808 additions and 761 deletions
|
|
@ -51,7 +51,7 @@ class InfoProviderExtension extends AbstractExtension
|
|||
{
|
||||
try {
|
||||
return $this->providerRegistry->getProviderByKey($key);
|
||||
} catch (\InvalidArgumentException $exception) {
|
||||
} catch (\InvalidArgumentException) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
|
@ -65,7 +65,7 @@ class InfoProviderExtension extends AbstractExtension
|
|||
{
|
||||
try {
|
||||
return $this->providerRegistry->getProviderByKey($key)->getProviderInfo()['name'];
|
||||
} catch (\InvalidArgumentException $exception) {
|
||||
} catch (\InvalidArgumentException) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue