mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-01-13 13:49:33 +00:00
Removed unused use directives
This commit is contained in:
parent
87c7402414
commit
5852ef9674
1 changed files with 3 additions and 7 deletions
|
|
@ -32,8 +32,6 @@ use App\Services\InfoProviderSystem\DTOs\PurchaseInfoDTO;
|
|||
use App\Services\InfoProviderSystem\DTOs\SearchResultDTO;
|
||||
use App\Settings\InfoProviderSystem\BuerklinSettings;
|
||||
use Psr\Cache\CacheItemPoolInterface;
|
||||
use Symfony\Component\DependencyInjection\Attribute\Autowire;
|
||||
use Symfony\Component\HttpClient\HttpOptions;
|
||||
use Symfony\Contracts\HttpClient\HttpClientInterface;
|
||||
|
||||
class BuerklinProvider implements BatchInfoProviderInterface
|
||||
|
|
@ -404,7 +402,7 @@ class BuerklinProvider implements BatchInfoProviderInterface
|
|||
}
|
||||
|
||||
return array_map(
|
||||
fn($url) => new \App\Services\InfoProviderSystem\DTOs\FileDTO($url),
|
||||
fn($url) => new FileDTO($url),
|
||||
array_values($byUrl)
|
||||
);
|
||||
}
|
||||
|
|
@ -490,9 +488,7 @@ class BuerklinProvider implements BatchInfoProviderInterface
|
|||
} catch (\Throwable $e) {
|
||||
return [];
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
} else {
|
||||
return [];
|
||||
}
|
||||
}
|
||||
|
|
@ -510,7 +506,7 @@ class BuerklinProvider implements BatchInfoProviderInterface
|
|||
return [
|
||||
ProviderCapabilities::BASIC,
|
||||
ProviderCapabilities::PICTURE,
|
||||
//ProviderCapabilities::DATASHEET, // currently not implemented
|
||||
//ProviderCapabilities::DATASHEET, // currently not implemented
|
||||
ProviderCapabilities::PRICE,
|
||||
ProviderCapabilities::FOOTPRINT,
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue