mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-01-16 15:19:34 +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\Services\InfoProviderSystem\DTOs\SearchResultDTO;
|
||||||
use App\Settings\InfoProviderSystem\BuerklinSettings;
|
use App\Settings\InfoProviderSystem\BuerklinSettings;
|
||||||
use Psr\Cache\CacheItemPoolInterface;
|
use Psr\Cache\CacheItemPoolInterface;
|
||||||
use Symfony\Component\DependencyInjection\Attribute\Autowire;
|
|
||||||
use Symfony\Component\HttpClient\HttpOptions;
|
|
||||||
use Symfony\Contracts\HttpClient\HttpClientInterface;
|
use Symfony\Contracts\HttpClient\HttpClientInterface;
|
||||||
|
|
||||||
class BuerklinProvider implements BatchInfoProviderInterface
|
class BuerklinProvider implements BatchInfoProviderInterface
|
||||||
|
|
@ -404,7 +402,7 @@ class BuerklinProvider implements BatchInfoProviderInterface
|
||||||
}
|
}
|
||||||
|
|
||||||
return array_map(
|
return array_map(
|
||||||
fn($url) => new \App\Services\InfoProviderSystem\DTOs\FileDTO($url),
|
fn($url) => new FileDTO($url),
|
||||||
array_values($byUrl)
|
array_values($byUrl)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
@ -490,9 +488,7 @@ class BuerklinProvider implements BatchInfoProviderInterface
|
||||||
} catch (\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
else
|
|
||||||
{
|
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -510,7 +506,7 @@ class BuerklinProvider implements BatchInfoProviderInterface
|
||||||
return [
|
return [
|
||||||
ProviderCapabilities::BASIC,
|
ProviderCapabilities::BASIC,
|
||||||
ProviderCapabilities::PICTURE,
|
ProviderCapabilities::PICTURE,
|
||||||
//ProviderCapabilities::DATASHEET, // currently not implemented
|
//ProviderCapabilities::DATASHEET, // currently not implemented
|
||||||
ProviderCapabilities::PRICE,
|
ProviderCapabilities::PRICE,
|
||||||
ProviderCapabilities::FOOTPRINT,
|
ProviderCapabilities::FOOTPRINT,
|
||||||
];
|
];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue