Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
sugeng-sulistiyawan committed Feb 14, 2020
1 parent bc2a3be commit 534d599
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
5 changes: 3 additions & 2 deletions src/Dropify.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
use yii\widgets\InputWidget;

/**
* @inheritDoc
*
* @author Die Coding (Sugeng Sulistiyawan) <[email protected]>
* @copyright 2020 Die Coding
Expand Down Expand Up @@ -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);
}
}

Expand Down
7 changes: 1 addition & 6 deletions src/DropifyAsset.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
<?php

/**
* @link http://www.diecoding.com/
* @author Die Coding (Sugeng Sulistiyawan) <[email protected]>
* @copyright Copyright (c) 2018
*/

namespace diecoding\dropify;

use yii\web\AssetBundle;

/**
* @inheritDoc
*
* @author Die Coding (Sugeng Sulistiyawan) <[email protected]>
* @copyright 2020 Die Coding
Expand Down

0 comments on commit 534d599

Please sign in to comment.