@@ -32,8 +32,8 @@ discard block |
||
32 | 32 | $this->ruleHelper = $ruleHelper; |
33 | 33 | $this->publicDirectory = $kernetProjectDir; |
34 | 34 | $this->cacheDirectory = $cacheDirectory; |
35 | - $this->ruleCacheDirectory = $this->cacheDirectory . self::RULE_PATH ; |
|
36 | - $this->teamCacheDirectory = $this->cacheDirectory . self::TEAM_PATH ; |
|
35 | + $this->ruleCacheDirectory = $this->cacheDirectory . self::RULE_PATH; |
|
36 | + $this->teamCacheDirectory = $this->cacheDirectory . self::TEAM_PATH; |
|
37 | 37 | $this->filesystem = new Filesystem(); |
38 | 38 | $this->fileTeamUploader = $fileTeamUploader; |
39 | 39 | } |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | if (!$this->filesystem->exists($path)) { |
108 | 108 | $img = $this->imageManager->make($file); |
109 | 109 | $this->filesystem->mkdir($newCacheDirectory); |
110 | - $img->resize($width, $height, function ($constraint) { |
|
110 | + $img->resize($width, $height, function($constraint) { |
|
111 | 111 | $constraint->aspectRatio(); |
112 | 112 | }); |
113 | 113 | $img->save($path); |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | |
35 | 35 | $this->createAssetsDirectoriesConfiguration($container, $config); |
36 | 36 | |
37 | - $locator = new FileLocator(dirname(__DIR__).'/Resources/config'); |
|
37 | + $locator = new FileLocator(dirname(__DIR__) . '/Resources/config'); |
|
38 | 38 | $loader = new YamlFileLoader($container, $locator); |
39 | 39 | $loader->load('services.yaml'); |
40 | 40 | |
@@ -52,14 +52,12 @@ discard block |
||
52 | 52 | { |
53 | 53 | // Upload |
54 | 54 | $uploadDirectory = (!isset($config['obblm.upload_directory'])) ? |
55 | - $uploadDirectory = $container->getParameter('kernel.project_dir') . '/public/obblm/uploads' : |
|
56 | - $config['obblm.upload_directory']; |
|
55 | + $uploadDirectory = $container->getParameter('kernel.project_dir') . '/public/obblm/uploads' : $config['obblm.upload_directory']; |
|
57 | 56 | $container->setParameter('obblm.config.directory.upload', $uploadDirectory); |
58 | 57 | |
59 | 58 | // Image resize cache |
60 | 59 | $uploadDirectory = (!isset($config['obblm.public_cache_directory'])) ? |
61 | - $uploadDirectory = $container->getParameter('kernel.project_dir') . '/public/obblm/cache' : |
|
62 | - $config['obblm.public_cache_directory']; |
|
60 | + $uploadDirectory = $container->getParameter('kernel.project_dir') . '/public/obblm/cache' : $config['obblm.public_cache_directory']; |
|
63 | 61 | $container->setParameter('obblm.config.directory.public.cache', $uploadDirectory); |
64 | 62 | } |
65 | 63 |