@@ -57,8 +57,8 @@ discard block |
||
57 | 57 | class File extends AbstractLocal implements FileInterface |
58 | 58 | { |
59 | 59 | /** |
60 | - * {@inheritdoc} |
|
61 | - */ |
|
60 | + * {@inheritdoc} |
|
61 | + */ |
|
62 | 62 | public function append(string $content): self |
63 | 63 | { |
64 | 64 | file_put_contents($this->path, $content, FILE_APPEND); |
@@ -67,8 +67,8 @@ discard block |
||
67 | 67 | } |
68 | 68 | |
69 | 69 | /** |
70 | - * {@inheritdoc} |
|
71 | - */ |
|
70 | + * {@inheritdoc} |
|
71 | + */ |
|
72 | 72 | public function copyTo($directory, int $mode = 0775) |
73 | 73 | { |
74 | 74 | if (is_string($directory)) { |
@@ -83,8 +83,8 @@ discard block |
||
83 | 83 | } |
84 | 84 | |
85 | 85 | /** |
86 | - * {@inheritdoc} |
|
87 | - */ |
|
86 | + * {@inheritdoc} |
|
87 | + */ |
|
88 | 88 | public function create(string $path, string $content = '', int $mode = 0775) |
89 | 89 | { |
90 | 90 | $file = $this->adapter->file($path)->write($content); |
@@ -94,8 +94,8 @@ discard block |
||
94 | 94 | } |
95 | 95 | |
96 | 96 | /** |
97 | - * {@inheritdoc} |
|
98 | - */ |
|
97 | + * {@inheritdoc} |
|
98 | + */ |
|
99 | 99 | public function delete(): self |
100 | 100 | { |
101 | 101 | unlink($this->path); |
@@ -104,16 +104,16 @@ discard block |
||
104 | 104 | } |
105 | 105 | |
106 | 106 | /** |
107 | - * {@inheritdoc} |
|
108 | - */ |
|
107 | + * {@inheritdoc} |
|
108 | + */ |
|
109 | 109 | public function getExtension(): string |
110 | 110 | { |
111 | 111 | return pathinfo($this->path, PATHINFO_EXTENSION); |
112 | 112 | } |
113 | 113 | |
114 | 114 | /** |
115 | - * {@inheritdoc} |
|
116 | - */ |
|
115 | + * {@inheritdoc} |
|
116 | + */ |
|
117 | 117 | public function getMime(): string |
118 | 118 | { |
119 | 119 | $mime = mime_content_type($this->path); |
@@ -125,24 +125,24 @@ discard block |
||
125 | 125 | } |
126 | 126 | |
127 | 127 | /** |
128 | - * {@inheritdoc} |
|
129 | - */ |
|
128 | + * {@inheritdoc} |
|
129 | + */ |
|
130 | 130 | public function getType(): string |
131 | 131 | { |
132 | 132 | return 'file'; |
133 | 133 | } |
134 | 134 | |
135 | 135 | /** |
136 | - * {@inheritdoc} |
|
137 | - */ |
|
136 | + * {@inheritdoc} |
|
137 | + */ |
|
138 | 138 | public function read(): string |
139 | 139 | { |
140 | 140 | return (string) file_get_contents($this->path); |
141 | 141 | } |
142 | 142 | |
143 | 143 | /** |
144 | - * {@inheritdoc} |
|
145 | - */ |
|
144 | + * {@inheritdoc} |
|
145 | + */ |
|
146 | 146 | public function write(string $content): self |
147 | 147 | { |
148 | 148 | file_put_contents($this->path, $content); |
@@ -59,8 +59,8 @@ discard block |
||
59 | 59 | class Directory extends AbstractLocal implements DirectoryInterface |
60 | 60 | { |
61 | 61 | /** |
62 | - * {@inheritdoc} |
|
63 | - */ |
|
62 | + * {@inheritdoc} |
|
63 | + */ |
|
64 | 64 | public function copyTo($directory, int $mode = 0775) |
65 | 65 | { |
66 | 66 | if (!$this->exists()) { |
@@ -94,8 +94,8 @@ discard block |
||
94 | 94 | } |
95 | 95 | |
96 | 96 | /** |
97 | - * {@inheritdoc} |
|
98 | - */ |
|
97 | + * {@inheritdoc} |
|
98 | + */ |
|
99 | 99 | public function create(string $name, int $mode = 0775, bool $recursive = false) |
100 | 100 | { |
101 | 101 | if (!file_exists($this->path . DIRECTORY_SEPARATOR . $name)) { |
@@ -110,8 +110,8 @@ discard block |
||
110 | 110 | } |
111 | 111 | |
112 | 112 | /** |
113 | - * {@inheritdoc} |
|
114 | - */ |
|
113 | + * {@inheritdoc} |
|
114 | + */ |
|
115 | 115 | public function createFile( |
116 | 116 | string $name, |
117 | 117 | string $content = '', |
@@ -126,8 +126,8 @@ discard block |
||
126 | 126 | } |
127 | 127 | |
128 | 128 | /** |
129 | - * {@inheritdoc} |
|
130 | - */ |
|
129 | + * {@inheritdoc} |
|
130 | + */ |
|
131 | 131 | public function delete(): self |
132 | 132 | { |
133 | 133 | if (!$this->exists()) { |
@@ -143,16 +143,16 @@ discard block |
||
143 | 143 | } |
144 | 144 | |
145 | 145 | /** |
146 | - * {@inheritdoc} |
|
147 | - */ |
|
146 | + * {@inheritdoc} |
|
147 | + */ |
|
148 | 148 | public function getType(): string |
149 | 149 | { |
150 | 150 | return 'dir'; |
151 | 151 | } |
152 | 152 | |
153 | 153 | /** |
154 | - * {@inheritdoc} |
|
155 | - */ |
|
154 | + * {@inheritdoc} |
|
155 | + */ |
|
156 | 156 | public function read(int $type = self::ALL): array |
157 | 157 | { |
158 | 158 | $files = [ |
@@ -195,8 +195,8 @@ discard block |
||
195 | 195 | } |
196 | 196 | |
197 | 197 | /** |
198 | - * {@inheritdoc} |
|
199 | - */ |
|
198 | + * {@inheritdoc} |
|
199 | + */ |
|
200 | 200 | public function scan(): array |
201 | 201 | { |
202 | 202 | $list = []; |