fix(continuous-integration): correction point phpstan
All checks were successful
Cadoles/nineskeletor/pipeline/pr-master This commit looks good
All checks were successful
Cadoles/nineskeletor/pipeline/pr-master This commit looks good
This commit is contained in:
@ -13,12 +13,14 @@ class MinioService
|
||||
{
|
||||
const ERR_UNAVAILABLE = 'Service de gestion de fichiers momentanément indisponible.';
|
||||
const ERR_FILE_NOT_FOUND = 'messages.minio.404';
|
||||
protected $client;
|
||||
protected $listClient;
|
||||
protected $minioBucket;
|
||||
protected $minioRoot;
|
||||
protected $minioPathStyle;
|
||||
protected $minioSecure;
|
||||
|
||||
private $rootPath;
|
||||
private $client;
|
||||
private $listClient;
|
||||
private $minioBucket;
|
||||
private $minioRoot;
|
||||
private $minioPathStyle;
|
||||
private $minioSecure;
|
||||
|
||||
public function __construct($rootPath, $minioUrl, $minioKey, $minioSecret, $minioBucket, $minioRoot, $minioPathstyle, $minioSecure)
|
||||
{
|
||||
@ -48,7 +50,7 @@ class MinioService
|
||||
} catch (S3Exception $e) {
|
||||
switch ($e->getResponse()->getStatusCode()) {
|
||||
case 404:
|
||||
throw new NotFoundHttpException($this->translator->trans(self::ERR_FILE_NOT_FOUND, [], 'messages'));
|
||||
throw new NotFoundHttpException(self::ERR_FILE_NOT_FOUND);
|
||||
break;
|
||||
default:
|
||||
\Sentry\captureException($e);
|
||||
|
Reference in New Issue
Block a user