@@ -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) { |
@@ -3,8 +3,8 @@ |
||
3 | 3 | namespace SoareCostin\FileVault; |
4 | 4 | |
5 | 5 | use Exception; |
6 | -use RuntimeException; |
|
7 | 6 | use Illuminate\Support\Str; |
7 | +use RuntimeException; |
|
8 | 8 | |
9 | 9 | class FileEncrypter |
10 | 10 | { |