From 534d5994cc52aa9486548eb83e93e3afea2ac92f Mon Sep 17 00:00:00 2001 From: Sugeng Sulistiyawan Date: Fri, 14 Feb 2020 16:22:47 +0700 Subject: [PATCH] update --- src/Dropify.php | 5 +++-- src/DropifyAsset.php | 7 +------ 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/src/Dropify.php b/src/Dropify.php index 2c4c2ca..c5d9c38 100644 --- a/src/Dropify.php +++ b/src/Dropify.php @@ -9,6 +9,7 @@ use yii\widgets\InputWidget; /** + * @inheritDoc * * @author Die Coding (Sugeng Sulistiyawan) * @copyright 2020 Die Coding @@ -48,9 +49,9 @@ public function run() $this->registerAsset(); if ($this->hasModel()) { - echo Html::activeFileInput($this->model, $this->attribute, $this->options); + return Html::activeFileInput($this->model, $this->attribute, $this->options); } else { - echo Html::fileInput($this->name, $this->value, $this->options); + return Html::fileInput($this->name, $this->value, $this->options); } } diff --git a/src/DropifyAsset.php b/src/DropifyAsset.php index da3264f..7da7465 100644 --- a/src/DropifyAsset.php +++ b/src/DropifyAsset.php @@ -1,16 +1,11 @@ - * @copyright Copyright (c) 2018 - */ - namespace diecoding\dropify; use yii\web\AssetBundle; /** + * @inheritDoc * * @author Die Coding (Sugeng Sulistiyawan) * @copyright 2020 Die Coding