@@ -59,8 +59,8 @@ discard block |
||
| 59 | 59 | class File extends AbstractLocal implements FileInterface |
| 60 | 60 | { |
| 61 | 61 | /** |
| 62 | - * {@inheritdoc} |
|
| 63 | - */ |
|
| 62 | + * {@inheritdoc} |
|
| 63 | + */ |
|
| 64 | 64 | public function append(string $content): self |
| 65 | 65 | { |
| 66 | 66 | file_put_contents($this->path, $content, FILE_APPEND); |
@@ -69,8 +69,8 @@ discard block |
||
| 69 | 69 | } |
| 70 | 70 | |
| 71 | 71 | /** |
| 72 | - * {@inheritdoc} |
|
| 73 | - */ |
|
| 72 | + * {@inheritdoc} |
|
| 73 | + */ |
|
| 74 | 74 | public function copyTo( |
| 75 | 75 | string|DirectoryInterface $directory, |
| 76 | 76 | int $mode = 0775 |
@@ -87,8 +87,8 @@ discard block |
||
| 87 | 87 | } |
| 88 | 88 | |
| 89 | 89 | /** |
| 90 | - * {@inheritdoc} |
|
| 91 | - */ |
|
| 90 | + * {@inheritdoc} |
|
| 91 | + */ |
|
| 92 | 92 | public function create(string $path, string $content = '', int $mode = 0775): FileInterface |
| 93 | 93 | { |
| 94 | 94 | $file = $this->adapter->file($path)->write($content); |
@@ -98,8 +98,8 @@ discard block |
||
| 98 | 98 | } |
| 99 | 99 | |
| 100 | 100 | /** |
| 101 | - * {@inheritdoc} |
|
| 102 | - */ |
|
| 101 | + * {@inheritdoc} |
|
| 102 | + */ |
|
| 103 | 103 | public function delete(): self |
| 104 | 104 | { |
| 105 | 105 | unlink($this->path); |
@@ -108,16 +108,16 @@ discard block |
||
| 108 | 108 | } |
| 109 | 109 | |
| 110 | 110 | /** |
| 111 | - * {@inheritdoc} |
|
| 112 | - */ |
|
| 111 | + * {@inheritdoc} |
|
| 112 | + */ |
|
| 113 | 113 | public function getExtension(): string |
| 114 | 114 | { |
| 115 | 115 | return pathinfo($this->path, PATHINFO_EXTENSION); |
| 116 | 116 | } |
| 117 | 117 | |
| 118 | 118 | /** |
| 119 | - * {@inheritdoc} |
|
| 120 | - */ |
|
| 119 | + * {@inheritdoc} |
|
| 120 | + */ |
|
| 121 | 121 | public function getMime(): string |
| 122 | 122 | { |
| 123 | 123 | $mime = mime_content_type($this->path); |
@@ -129,16 +129,16 @@ discard block |
||
| 129 | 129 | } |
| 130 | 130 | |
| 131 | 131 | /** |
| 132 | - * {@inheritdoc} |
|
| 133 | - */ |
|
| 132 | + * {@inheritdoc} |
|
| 133 | + */ |
|
| 134 | 134 | public function getType(): string |
| 135 | 135 | { |
| 136 | 136 | return 'file'; |
| 137 | 137 | } |
| 138 | 138 | |
| 139 | 139 | /** |
| 140 | - * {@inheritdoc} |
|
| 141 | - */ |
|
| 140 | + * {@inheritdoc} |
|
| 141 | + */ |
|
| 142 | 142 | public function checksum(): string |
| 143 | 143 | { |
| 144 | 144 | $res = md5_file($this->path); |
@@ -150,16 +150,16 @@ discard block |
||
| 150 | 150 | } |
| 151 | 151 | |
| 152 | 152 | /** |
| 153 | - * {@inheritdoc} |
|
| 154 | - */ |
|
| 153 | + * {@inheritdoc} |
|
| 154 | + */ |
|
| 155 | 155 | public function read(): string |
| 156 | 156 | { |
| 157 | 157 | return (string) file_get_contents($this->path); |
| 158 | 158 | } |
| 159 | 159 | |
| 160 | 160 | /** |
| 161 | - * {@inheritdoc} |
|
| 162 | - */ |
|
| 161 | + * {@inheritdoc} |
|
| 162 | + */ |
|
| 163 | 163 | public function write(string $content): self |
| 164 | 164 | { |
| 165 | 165 | file_put_contents($this->path, $content); |