Completed
Push — swp-2195-gcs ( 328722 )
by
unknown
52s
created
src/SWP/Bundle/ContentBundle/Asset/GoogleAssetUrlGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
 
18 18
     public function generateUrl(FileInterface $file, string $basePath): string
19 19
     {
20
-        $key = $basePath . DIRECTORY_SEPARATOR . $file->getAssetId() . '.' . $file->getFileExtension();
20
+        $key = $basePath.DIRECTORY_SEPARATOR.$file->getAssetId().'.'.$file->getFileExtension();
21 21
         $image = $this->bucket->object($key);
22 22
         return $image->signedUrl(new \DateTime('+1 hour'));
23 23
     }
Please login to merge, or discard this patch.
src/SWP/Bundle/ContentBundle/Factory/GCSClientFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
 {
11 11
     public static function createGCSClient(ContainerInterface $container, string $keyFilePath, string $projectId = ''): StorageClient
12 12
     {
13
-        $path = $container->getParameter('kernel.project_dir') . '/config/gcs/' . $keyFilePath;
13
+        $path = $container->getParameter('kernel.project_dir').'/config/gcs/'.$keyFilePath;
14 14
         return new StorageClient([
15 15
             'keyFilePath' => $path,
16 16
         ]);
Please login to merge, or discard this patch.