Completed
Push — master ( 5550e1...679a13 )
by Costin
01:05
created
src/FileEncrypter.php 1 patch
Doc Comments   +7 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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) {
Please login to merge, or discard this patch.
src/FileVault.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -162,6 +162,9 @@
 block discarded – undo
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()) {
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2,9 +2,8 @@
 block discarded – undo
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
 {
Please login to merge, or discard this patch.