|
@@ -35,7 +35,7 @@ class ImageFactory
|
|
|
* Créer l'image retaillée et l'à stock l'image dans le cache
|
|
* Créer l'image retaillée et l'à stock l'image dans le cache
|
|
|
* @param string $path : chemin de l'image
|
|
* @param string $path : chemin de l'image
|
|
|
* @param string $filter : nom du filtre liip à appliquer
|
|
* @param string $filter : nom du filtre liip à appliquer
|
|
|
- * @param array<string, array<string, array<string, array<int, int>>>> $filtersOptions : options du filtre
|
|
|
|
|
|
|
+ * @param array<string, array<string, array<int, int>>> $filtersOptions : options du filtre
|
|
|
* @return void
|
|
* @return void
|
|
|
*/
|
|
*/
|
|
|
private function createAndStore(string $path, string $filter, array $filtersOptions){
|
|
private function createAndStore(string $path, string $filter, array $filtersOptions){
|
|
@@ -47,10 +47,10 @@ class ImageFactory
|
|
|
/**
|
|
/**
|
|
|
* Définit et retourne le tableau de config servant à cropper
|
|
* Définit et retourne le tableau de config servant à cropper
|
|
|
* @param string|null $config : Configuration du File
|
|
* @param string|null $config : Configuration du File
|
|
|
- * @return array<string, array<string, array<string, array<int, int>>>> | array : tableau de configuration
|
|
|
|
|
|
|
+ * @return array<string, array<string, array<int, int>>> : tableau de configuration
|
|
|
* @see ImageUtilsTest::testGetCroppingConfig()
|
|
* @see ImageUtilsTest::testGetCroppingConfig()
|
|
|
*/
|
|
*/
|
|
|
- protected function getCropFilterOptions(?string $config): array{
|
|
|
|
|
|
|
+ protected function getCropFilterOptions(?string $config): array {
|
|
|
if(!$config)
|
|
if(!$config)
|
|
|
return [];
|
|
return [];
|
|
|
|
|
|
|
@@ -71,4 +71,4 @@ class ImageFactory
|
|
|
|
|
|
|
|
return $crop_filters_options;
|
|
return $crop_filters_options;
|
|
|
}
|
|
}
|
|
|
-}
|
|
|
|
|
|
|
+}
|