Passed
Push — develop ( e404da...9d992d )
by nguereza
02:37
created
src/FilesystemInterface.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -85,14 +85,14 @@  discard block
 block discarded – undo
85 85
      * @param int $mode the mode
86 86
      * @return FileInterface|DirectoryInterface
87 87
      */
88
-    public function copyTo(string|DirectoryInterface $directory, int $mode = 0775): FileInterface|DirectoryInterface;
88
+    public function copyTo(string | DirectoryInterface $directory, int $mode = 0775): FileInterface | DirectoryInterface;
89 89
 
90 90
     /**
91 91
      * Move this file system to new path
92 92
      * @param string|DirectoryInterface $directory
93 93
      * @return FileInterface|DirectoryInterface
94 94
      */
95
-    public function moveTo(string|DirectoryInterface $directory): FileInterface|DirectoryInterface;
95
+    public function moveTo(string | DirectoryInterface $directory): FileInterface | DirectoryInterface;
96 96
 
97 97
     /**
98 98
      * Return the original path of this file system
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
      * Delete the file system
163 163
      * @return FileInterface|DirectoryInterface
164 164
      */
165
-    public function delete(): FileInterface|DirectoryInterface;
165
+    public function delete(): FileInterface | DirectoryInterface;
166 166
 
167 167
     /**
168 168
      * Whether the file system is readable
Please login to merge, or discard this patch.
src/Filesystem.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
85 85
      * @param string $path
86 86
      * @return FileInterface|DirectoryInterface|null
87 87
      */
88
-    public function get(string $path): FileInterface|DirectoryInterface|null
88
+    public function get(string $path): FileInterface | DirectoryInterface | null
89 89
     {
90 90
         return $this->adapter->get($path);
91 91
     }
Please login to merge, or discard this patch.
src/Adapter/AdapterInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
      * @param string $path
62 62
      * @return FileInterface|DirectoryInterface|null
63 63
      */
64
-    public function get(string $path): FileInterface|DirectoryInterface|null;
64
+    public function get(string $path): FileInterface | DirectoryInterface | null;
65 65
 
66 66
     /**
67 67
      * Return the instance of file
Please login to merge, or discard this patch.
src/Adapter/Local/AbstractLocal.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
     /**
136 136
     * {@inheritdoc}
137 137
     */
138
-    public function moveTo(string|DirectoryInterface $directory): FileInterface|DirectoryInterface
138
+    public function moveTo(string | DirectoryInterface $directory): FileInterface | DirectoryInterface
139 139
     {
140 140
         $dest = $this->copyTo($directory);
141 141
         $dest->touch($this->getMtime());
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
     */
176 176
     public function getMtime(): int
177 177
     {
178
-        $time  = filemtime($this->path);
178
+        $time = filemtime($this->path);
179 179
         return $time !== false ? $time : -1;
180 180
     }
181 181
 
Please login to merge, or discard this patch.
src/Adapter/Local/Directory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,9 +62,9 @@
 block discarded – undo
62 62
     * {@inheritdoc}
63 63
     */
64 64
     public function copyTo(
65
-        string|DirectoryInterface $directory,
65
+        string | DirectoryInterface $directory,
66 66
         int $mode = 0775
67
-    ): FileInterface|DirectoryInterface {
67
+    ): FileInterface | DirectoryInterface {
68 68
         if (!$this->exists()) {
69 69
             throw new NotFoundException(sprintf(
70 70
                 'Source path [%s] not found',
Please login to merge, or discard this patch.
src/Adapter/Local/LocalAdapter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@
 block discarded – undo
105 105
     /**
106 106
     * {@inheritdoc}
107 107
     */
108
-    public function get(string $path): FileInterface|DirectoryInterface|null
108
+    public function get(string $path): FileInterface | DirectoryInterface | null
109 109
     {
110 110
         $absolutePath = $this->getAbsolutePath($path);
111 111
 
Please login to merge, or discard this patch.
src/Adapter/Local/File.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
     * {@inheritdoc}
72 72
     */
73 73
     public function copyTo(
74
-        string|DirectoryInterface $directory,
74
+        string | DirectoryInterface $directory,
75 75
         int $mode = 0775
76 76
     ): FileInterface {
77 77
         if (is_string($directory)) {
Please login to merge, or discard this patch.