@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | * |
35 | 35 | * @param string $key |
36 | 36 | * @param string $cipher |
37 | - * @return void |
|
37 | + * @return string |
|
38 | 38 | * |
39 | 39 | * @throws \RuntimeException |
40 | 40 | */ |
@@ -132,6 +132,9 @@ discard block |
||
132 | 132 | return true; |
133 | 133 | } |
134 | 134 | |
135 | + /** |
|
136 | + * @param string $destPath |
|
137 | + */ |
|
135 | 138 | protected function openDestFile($destPath) |
136 | 139 | { |
137 | 140 | if (($fpOut = fopen($destPath, 'w')) === false) { |
@@ -141,6 +144,9 @@ discard block |
||
141 | 144 | return $fpOut; |
142 | 145 | } |
143 | 146 | |
147 | + /** |
|
148 | + * @param string $sourcePath |
|
149 | + */ |
|
144 | 150 | protected function openSourceFile($sourcePath) |
145 | 151 | { |
146 | 152 | if (($fpIn = fopen($sourcePath, 'rb')) === false) { |
@@ -162,6 +162,9 @@ |
||
162 | 162 | return $encrypter->decrypt($sourcePath, "php://output"); |
163 | 163 | } |
164 | 164 | |
165 | + /** |
|
166 | + * @return string |
|
167 | + */ |
|
165 | 168 | protected function getFilePath($file) |
166 | 169 | { |
167 | 170 | if ($this->isS3File()) { |
@@ -2,9 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace SoareCostin\FileVault; |
4 | 4 | |
5 | -use Exception; |
|
6 | -use Illuminate\Support\Str; |
|
7 | 5 | use Illuminate\Support\Facades\Storage; |
6 | +use Illuminate\Support\Str; |
|
8 | 7 | |
9 | 8 | class FileVault |
10 | 9 | { |