@@ -58,8 +58,8 @@ discard block |
||
| 58 | 58 | class File extends AbstractLocal implements FileInterface |
| 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 |
||
| 68 | 68 | } |
| 69 | 69 | |
| 70 | 70 | /** |
| 71 | - * {@inheritdoc} |
|
| 72 | - */ |
|
| 71 | + * {@inheritdoc} |
|
| 72 | + */ |
|
| 73 | 73 | public function copyTo( |
| 74 | 74 | string|DirectoryInterface $directory, |
| 75 | 75 | int $mode = 0775 |
@@ -86,8 +86,8 @@ discard block |
||
| 86 | 86 | } |
| 87 | 87 | |
| 88 | 88 | /** |
| 89 | - * {@inheritdoc} |
|
| 90 | - */ |
|
| 89 | + * {@inheritdoc} |
|
| 90 | + */ |
|
| 91 | 91 | public function create(string $path, string $content = '', int $mode = 0775): FileInterface |
| 92 | 92 | { |
| 93 | 93 | $file = $this->adapter->file($path)->write($content); |
@@ -97,8 +97,8 @@ discard block |
||
| 97 | 97 | } |
| 98 | 98 | |
| 99 | 99 | /** |
| 100 | - * {@inheritdoc} |
|
| 101 | - */ |
|
| 100 | + * {@inheritdoc} |
|
| 101 | + */ |
|
| 102 | 102 | public function delete(): self |
| 103 | 103 | { |
| 104 | 104 | unlink($this->path); |
@@ -107,16 +107,16 @@ discard block |
||
| 107 | 107 | } |
| 108 | 108 | |
| 109 | 109 | /** |
| 110 | - * {@inheritdoc} |
|
| 111 | - */ |
|
| 110 | + * {@inheritdoc} |
|
| 111 | + */ |
|
| 112 | 112 | public function getExtension(): string |
| 113 | 113 | { |
| 114 | 114 | return pathinfo($this->path, PATHINFO_EXTENSION); |
| 115 | 115 | } |
| 116 | 116 | |
| 117 | 117 | /** |
| 118 | - * {@inheritdoc} |
|
| 119 | - */ |
|
| 118 | + * {@inheritdoc} |
|
| 119 | + */ |
|
| 120 | 120 | public function getMime(): string |
| 121 | 121 | { |
| 122 | 122 | $mime = mime_content_type($this->path); |
@@ -128,24 +128,24 @@ discard block |
||
| 128 | 128 | } |
| 129 | 129 | |
| 130 | 130 | /** |
| 131 | - * {@inheritdoc} |
|
| 132 | - */ |
|
| 131 | + * {@inheritdoc} |
|
| 132 | + */ |
|
| 133 | 133 | public function getType(): string |
| 134 | 134 | { |
| 135 | 135 | return 'file'; |
| 136 | 136 | } |
| 137 | 137 | |
| 138 | 138 | /** |
| 139 | - * {@inheritdoc} |
|
| 140 | - */ |
|
| 139 | + * {@inheritdoc} |
|
| 140 | + */ |
|
| 141 | 141 | public function read(): string |
| 142 | 142 | { |
| 143 | 143 | return (string) file_get_contents($this->path); |
| 144 | 144 | } |
| 145 | 145 | |
| 146 | 146 | /** |
| 147 | - * {@inheritdoc} |
|
| 148 | - */ |
|
| 147 | + * {@inheritdoc} |
|
| 148 | + */ |
|
| 149 | 149 | public function write(string $content): self |
| 150 | 150 | { |
| 151 | 151 | file_put_contents($this->path, $content); |
@@ -71,7 +71,7 @@ |
||
| 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)) { |
@@ -55,8 +55,7 @@ |
||
| 55 | 55 | * @class File |
| 56 | 56 | * @package Platine\Filesystem\Adapter\Local |
| 57 | 57 | */ |
| 58 | -class File extends AbstractLocal implements FileInterface |
|
| 59 | -{ |
|
| 58 | +class File extends AbstractLocal implements FileInterface { |
|
| 60 | 59 | /** |
| 61 | 60 | * {@inheritdoc} |
| 62 | 61 | */ |