Passed
Pull Request — master (#807)
by Aleksei
07:00
created
src/Storage/src/Storage/ReadableTrait.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -18,21 +18,21 @@  discard block
 block discarded – undo
18 18
      */
19 19
     abstract public function bucket(string $name = null): BucketInterface;
20 20
 
21
-    public function getContents(string|\Stringable $id): string
21
+    public function getContents(string | \Stringable $id): string
22 22
     {
23 23
         [$name, $pathname] = $this->parseUri($id);
24 24
 
25 25
         return $this->bucket($name)->getContents($pathname);
26 26
     }
27 27
 
28
-    public function getStream(string|\Stringable $id)
28
+    public function getStream(string | \Stringable $id)
29 29
     {
30 30
         [$name, $pathname] = $this->parseUri($id);
31 31
 
32 32
         return $this->bucket($name)->getStream($pathname);
33 33
     }
34 34
 
35
-    public function exists(string|\Stringable $id): bool
35
+    public function exists(string | \Stringable $id): bool
36 36
     {
37 37
         [$name, $pathname] = $this->parseUri($id);
38 38
 
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
     /**
43 43
      * @return int<0, max>
44 44
      */
45
-    public function getLastModified(string|\Stringable $id): int
45
+    public function getLastModified(string | \Stringable $id): int
46 46
     {
47 47
         [$name, $pathname] = $this->parseUri($id);
48 48
 
@@ -52,14 +52,14 @@  discard block
 block discarded – undo
52 52
     /**
53 53
      * @return int<0, max>
54 54
      */
55
-    public function getSize(string|\Stringable $id): int
55
+    public function getSize(string | \Stringable $id): int
56 56
     {
57 57
         [$name, $pathname] = $this->parseUri($id);
58 58
 
59 59
         return $this->bucket($name)->getSize($pathname);
60 60
     }
61 61
 
62
-    public function getMimeType(string|\Stringable $id): string
62
+    public function getMimeType(string | \Stringable $id): string
63 63
     {
64 64
         [$name, $pathname] = $this->parseUri($id);
65 65
 
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
      * @return Visibility::VISIBILITY_*
71 71
      */
72 72
     #[ExpectedValues(valuesFromClass: Visibility::class)]
73
-    public function getVisibility(string|\Stringable $id): string
73
+    public function getVisibility(string | \Stringable $id): string
74 74
     {
75 75
         [$name, $pathname] = $this->parseUri($id);
76 76
 
@@ -80,5 +80,5 @@  discard block
 block discarded – undo
80 80
     /**
81 81
      * {@see Storage::parseUri()}
82 82
      */
83
-    abstract protected function parseUri(string|\Stringable $uri, bool $withScheme = true): array;
83
+    abstract protected function parseUri(string | \Stringable $uri, bool $withScheme = true): array;
84 84
 }
Please login to merge, or discard this patch.