Completed
Pull Request — master (#692)
by Pierre
39s
created
src/Gaufrette/Adapter/AwsS3.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
     /**
68 68
      * {@inheritdoc}
69 69
      */
70
-    public function read(string $key): string|bool
70
+    public function read(string $key): string | bool
71 71
     {
72 72
         $this->ensureBucketExists();
73 73
         $options = $this->getOptions($key);
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
         $this->ensureBucketExists();
97 97
         $options = $this->getOptions(
98 98
             $targetKey,
99
-            ['CopySource' => $this->bucket . '/' . $this->computePath($sourceKey)]
99
+            ['CopySource' => $this->bucket.'/'.$this->computePath($sourceKey)]
100 100
         );
101 101
 
102 102
         try {
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
     /**
112 112
      * {@inheritdoc}
113 113
      */
114
-    public function write(string $key, mixed $content): int|bool
114
+    public function write(string $key, mixed $content): int | bool
115 115
     {
116 116
         $this->ensureBucketExists();
117 117
         $options = $this->getOptions($key, ['Body' => $content]);
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
     /**
149 149
      * {@inheritdoc}
150 150
      */
151
-    public function mtime(string $key): int|bool
151
+    public function mtime(string $key): int | bool
152 152
     {
153 153
         try {
154 154
             $result = $this->service->headObject($this->getOptions($key));
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
         }
174 174
     }
175 175
 
176
-    public function mimeType(string $key): bool|string
176
+    public function mimeType(string $key): bool | string
177 177
     {
178 178
         try {
179 179
             $result = $this->service->headObject($this->getOptions($key));
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
     {
237 237
         $result = $this->service->listObjects([
238 238
             'Bucket' => $this->bucket,
239
-            'Prefix' => rtrim($this->computePath($key), '/') . '/',
239
+            'Prefix' => rtrim($this->computePath($key), '/').'/',
240 240
             'MaxKeys' => 1,
241 241
         ]);
242 242
         if (isset($result['Contents'])) {
@@ -315,7 +315,7 @@  discard block
 block discarded – undo
315 315
         return ltrim(substr($path, strlen($this->options['directory'])), '/');
316 316
     }
317 317
 
318
-    private function guessContentType(mixed $content): bool|string
318
+    private function guessContentType(mixed $content): bool | string
319 319
     {
320 320
         $fileInfo = new \finfo(FILEINFO_MIME_TYPE);
321 321
 
Please login to merge, or discard this patch.
src/Gaufrette/Stream.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
      *
27 27
      * @param int $count The number of bytes
28 28
      */
29
-    public function read(int $count): string|bool;
29
+    public function read(int $count): string | bool;
30 30
 
31 31
     /**
32 32
      * Writes the specified data.
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
      *
80 80
      * @return array<string, mixed>|false
81 81
      */
82
-    public function stat(): array|bool;
82
+    public function stat(): array | bool;
83 83
 
84 84
     /**
85 85
      * Retrieve the underlying resource.
Please login to merge, or discard this patch.