Passed
Push — develop ( e263f1...ecda65 )
by nguereza
18:12 queued 16:07
created
src/Adapter/Local/File.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -58,8 +58,8 @@  discard block
 block discarded – undo
58 58
 {
59 59
 
60 60
     /**
61
-    * {@inheritdoc}
62
-    */
61
+     * {@inheritdoc}
62
+     */
63 63
     public function append(string $content): self
64 64
     {
65 65
         file_put_contents($this->path, $content, FILE_APPEND);
@@ -68,8 +68,8 @@  discard block
 block discarded – undo
68 68
     }
69 69
 
70 70
     /**
71
-    * {@inheritdoc}
72
-    */
71
+     * {@inheritdoc}
72
+     */
73 73
     public function copyTo($directory, int $mode = 0775)
74 74
     {
75 75
         if (is_string($directory)) {
@@ -84,8 +84,8 @@  discard block
 block discarded – undo
84 84
     }
85 85
 
86 86
     /**
87
-    * {@inheritdoc}
88
-    */
87
+     * {@inheritdoc}
88
+     */
89 89
     public function create(string $path, string $content = '', int $mode = 0775)
90 90
     {
91 91
         $file = $this->adapter->file($path)->write($content);
@@ -95,8 +95,8 @@  discard block
 block discarded – undo
95 95
     }
96 96
 
97 97
     /**
98
-    * {@inheritdoc}
99
-    */
98
+     * {@inheritdoc}
99
+     */
100 100
     public function delete(): self
101 101
     {
102 102
         unlink($this->path);
@@ -105,16 +105,16 @@  discard block
 block discarded – undo
105 105
     }
106 106
 
107 107
     /**
108
-    * {@inheritdoc}
109
-    */
108
+     * {@inheritdoc}
109
+     */
110 110
     public function getExtension(): string
111 111
     {
112 112
         return pathinfo($this->path, PATHINFO_EXTENSION);
113 113
     }
114 114
 
115 115
     /**
116
-    * {@inheritdoc}
117
-    */
116
+     * {@inheritdoc}
117
+     */
118 118
     public function getMime(): string
119 119
     {
120 120
         $mime = mime_content_type($this->path);
@@ -126,24 +126,24 @@  discard block
 block discarded – undo
126 126
     }
127 127
 
128 128
     /**
129
-    * {@inheritdoc}
130
-    */
129
+     * {@inheritdoc}
130
+     */
131 131
     public function getType(): string
132 132
     {
133 133
         return 'file';
134 134
     }
135 135
 
136 136
     /**
137
-    * {@inheritdoc}
138
-    */
137
+     * {@inheritdoc}
138
+     */
139 139
     public function read(): string
140 140
     {
141 141
         return (string) file_get_contents($this->path);
142 142
     }
143 143
 
144 144
     /**
145
-    * {@inheritdoc}
146
-    */
145
+     * {@inheritdoc}
146
+     */
147 147
     public function write(string $content): self
148 148
     {
149 149
         file_put_contents($this->path, $content);
Please login to merge, or discard this patch.
src/Adapter/Local/AbstractLocal.php 1 patch
Indentation   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -132,8 +132,8 @@  discard block
 block discarded – undo
132 132
     }
133 133
 
134 134
     /**
135
-    * {@inheritdoc}
136
-    */
135
+     * {@inheritdoc}
136
+     */
137 137
     public function moveTo($directory)
138 138
     {
139 139
         $dest = $this->copyTo($directory);
@@ -144,8 +144,8 @@  discard block
 block discarded – undo
144 144
     }
145 145
 
146 146
     /**
147
-    * {@inheritdoc}
148
-    */
147
+     * {@inheritdoc}
148
+     */
149 149
     public function chmod(int $mode)
150 150
     {
151 151
         chmod($this->path, $mode);
@@ -154,24 +154,24 @@  discard block
 block discarded – undo
154 154
     }
155 155
 
156 156
     /**
157
-    * {@inheritdoc}
158
-    */
157
+     * {@inheritdoc}
158
+     */
159 159
     public function exists(): bool
160 160
     {
161 161
         return $this->isExists($this->path);
162 162
     }
163 163
 
164 164
     /**
165
-    * {@inheritdoc}
166
-    */
165
+     * {@inheritdoc}
166
+     */
167 167
     public function getLocation(): string
168 168
     {
169 169
         return dirname($this->path);
170 170
     }
171 171
 
172 172
     /**
173
-    * {@inheritdoc}
174
-    */
173
+     * {@inheritdoc}
174
+     */
175 175
     public function getMtime(): int
176 176
     {
177 177
         $time  = filemtime($this->path);
@@ -179,16 +179,16 @@  discard block
 block discarded – undo
179 179
     }
180 180
 
181 181
     /**
182
-    * {@inheritdoc}
183
-    */
182
+     * {@inheritdoc}
183
+     */
184 184
     public function getName(): string
185 185
     {
186 186
         return basename($this->path);
187 187
     }
188 188
 
189 189
     /**
190
-    * {@inheritdoc}
191
-    */
190
+     * {@inheritdoc}
191
+     */
192 192
     public function getPermission(): string
193 193
     {
194 194
         $permission = fileperms($this->path);
@@ -202,8 +202,8 @@  discard block
 block discarded – undo
202 202
     }
203 203
 
204 204
     /**
205
-    * {@inheritdoc}
206
-    */
205
+     * {@inheritdoc}
206
+     */
207 207
     public function getSize(): int
208 208
     {
209 209
         $size = filesize($this->path);
@@ -211,40 +211,40 @@  discard block
 block discarded – undo
211 211
     }
212 212
 
213 213
     /**
214
-    * {@inheritdoc}
215
-    */
214
+     * {@inheritdoc}
215
+     */
216 216
     public function isDir(): bool
217 217
     {
218 218
         return $this->getType() === 'dir';
219 219
     }
220 220
 
221 221
     /**
222
-    * {@inheritdoc}
223
-    */
222
+     * {@inheritdoc}
223
+     */
224 224
     public function isFile(): bool
225 225
     {
226 226
         return $this->getType() === 'file';
227 227
     }
228 228
 
229 229
     /**
230
-    * {@inheritdoc}
231
-    */
230
+     * {@inheritdoc}
231
+     */
232 232
     public function isReadable(): bool
233 233
     {
234 234
         return is_readable($this->path);
235 235
     }
236 236
 
237 237
     /**
238
-    * {@inheritdoc}
239
-    */
238
+     * {@inheritdoc}
239
+     */
240 240
     public function isWritable(): bool
241 241
     {
242 242
         return is_writable($this->path);
243 243
     }
244 244
 
245 245
     /**
246
-    * {@inheritdoc}
247
-    */
246
+     * {@inheritdoc}
247
+     */
248 248
     public function rename(string $newPath)
249 249
     {
250 250
         $normalizedNewPath = rtrim(Path::normalizePathDS($newPath), '\\/');
@@ -263,8 +263,8 @@  discard block
 block discarded – undo
263 263
     }
264 264
 
265 265
     /**
266
-    * {@inheritdoc}
267
-    */
266
+     * {@inheritdoc}
267
+     */
268 268
     public function touch(int $time)
269 269
     {
270 270
         touch($this->path, $time);
Please login to merge, or discard this patch.
src/Adapter/Local/Directory.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -60,8 +60,8 @@  discard block
 block discarded – undo
60 60
 {
61 61
 
62 62
     /**
63
-    * {@inheritdoc}
64
-    */
63
+     * {@inheritdoc}
64
+     */
65 65
     public function copyTo($directory, int $mode = 0775)
66 66
     {
67 67
         if (!$this->exists()) {
@@ -95,8 +95,8 @@  discard block
 block discarded – undo
95 95
     }
96 96
 
97 97
     /**
98
-    * {@inheritdoc}
99
-    */
98
+     * {@inheritdoc}
99
+     */
100 100
     public function create(string $name, int $mode = 0775, bool $recursive = false)
101 101
     {
102 102
         if (!file_exists($this->path . DIRECTORY_SEPARATOR . $name)) {
@@ -111,8 +111,8 @@  discard block
 block discarded – undo
111 111
     }
112 112
 
113 113
     /**
114
-    * {@inheritdoc}
115
-    */
114
+     * {@inheritdoc}
115
+     */
116 116
     public function createFile(
117 117
         string $name,
118 118
         string $content = '',
@@ -127,8 +127,8 @@  discard block
 block discarded – undo
127 127
     }
128 128
 
129 129
     /**
130
-    * {@inheritdoc}
131
-    */
130
+     * {@inheritdoc}
131
+     */
132 132
     public function delete(): self
133 133
     {
134 134
         if (!$this->exists()) {
@@ -144,16 +144,16 @@  discard block
 block discarded – undo
144 144
     }
145 145
 
146 146
     /**
147
-    * {@inheritdoc}
148
-    */
147
+     * {@inheritdoc}
148
+     */
149 149
     public function getType(): string
150 150
     {
151 151
         return 'dir';
152 152
     }
153 153
 
154 154
     /**
155
-    * {@inheritdoc}
156
-    */
155
+     * {@inheritdoc}
156
+     */
157 157
     public function read(int $type = self::ALL): array
158 158
     {
159 159
         $files = [
@@ -196,8 +196,8 @@  discard block
 block discarded – undo
196 196
     }
197 197
 
198 198
     /**
199
-    * {@inheritdoc}
200
-    */
199
+     * {@inheritdoc}
200
+     */
201 201
     public function scan(): array
202 202
     {
203 203
         $list = [];
Please login to merge, or discard this patch.
src/Adapter/Local/LocalAdapter.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -88,24 +88,24 @@  discard block
 block discarded – undo
88 88
 
89 89
 
90 90
     /**
91
-    * {@inheritdoc}
92
-    */
91
+     * {@inheritdoc}
92
+     */
93 93
     public function directory(string $path = ''): DirectoryInterface
94 94
     {
95 95
         return new Directory($path, $this);
96 96
     }
97 97
 
98 98
     /**
99
-    * {@inheritdoc}
100
-    */
99
+     * {@inheritdoc}
100
+     */
101 101
     public function file(string $path = ''): FileInterface
102 102
     {
103 103
         return new File($path, $this);
104 104
     }
105 105
 
106 106
     /**
107
-    * {@inheritdoc}
108
-    */
107
+     * {@inheritdoc}
108
+     */
109 109
     public function get(string $path)
110 110
     {
111 111
         $absolutePath = $this->getAbsolutePath($path);
@@ -122,8 +122,8 @@  discard block
 block discarded – undo
122 122
     }
123 123
 
124 124
     /**
125
-    * {@inheritdoc}
126
-    */
125
+     * {@inheritdoc}
126
+     */
127 127
     public function getAbsolutePath(string $path): string
128 128
     {
129 129
         $normalizedPath = Path::normalizePathDS($path);
Please login to merge, or discard this patch.