Completed
Push — swp-2190-php8 ( df675e...4ff702 )
by
unknown
52s queued 20s
created
src/SWP/Bundle/ContentBundle/Asset/GoogleAssetUrlGenerator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
      */
26 26
     public function generateUrl(FileInterface $file, string $basePath): string
27 27
     {
28
-        $key = $basePath . '/' . $file->getAssetId() . '.' . $file->getFileExtension();
29
-        return 'https://storage.googleapis.com/' . $this->bucket->name() . '/' . $key;
28
+        $key = $basePath.'/'.$file->getAssetId().'.'.$file->getFileExtension();
29
+        return 'https://storage.googleapis.com/'.$this->bucket->name().'/'.$key;
30 30
     }
31 31
 }
32 32
\ No newline at end of file
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
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
      */
17 17
     public static function createGCSClient(ContainerInterface $container, string $keyFilePath, string $projectId = ''): StorageClient
18 18
     {
19
-        $path = $container->getParameter('kernel.project_dir') . '/config/gcs/' . $keyFilePath;
19
+        $path = $container->getParameter('kernel.project_dir').'/config/gcs/'.$keyFilePath;
20 20
         return new StorageClient([
21 21
             'keyFilePath' => $path,
22 22
         ]);
Please login to merge, or discard this patch.