Completed
Pull Request — master (#4)
by
unknown
01:26
created
src/behaviors/FileBind.php 2 patches
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -14,6 +14,9 @@  discard block
 block discarded – undo
14 14
 
15 15
 class FileBind
16 16
 {
17
+    /**
18
+     * @param \yii\base\Component $model
19
+     */
17 20
     public function bind($model, $attribute, $files)
18 21
     {
19 22
         $newFiles = $this->newFiles($model, $attribute, $files);
@@ -212,6 +215,10 @@  discard block
 block discarded – undo
212 215
         return $query->indexBy(key($relation->link))->all();
213 216
     }
214 217
 
218
+    /**
219
+     * @param \yii\base\Component $model
220
+     * @param string $attribute
221
+     */
215 222
     public function file($model, $attribute)
216 223
     {
217 224
         $relation = $model->fileOption($attribute, 'relation');
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,6 @@
 block discarded – undo
9 9
 namespace rkit\filemanager\behaviors;
10 10
 
11 11
 use Yii;
12
-use yii\helpers\ArrayHelper;
13 12
 use yii\db\Query;
14 13
 
15 14
 class FileBind
Please login to merge, or discard this patch.
src/behaviors/FileBehavior.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -134,6 +134,9 @@
 block discarded – undo
134 134
         ]);
135 135
     }
136 136
 
137
+    /**
138
+     * @param string $attribute
139
+     */
137 140
     private function setState($attribute, $file)
138 141
     {
139 142
         $rec = new FileUploadSession();
Please login to merge, or discard this patch.