Skip to content

Commit

Permalink
Resolved #4, Clean Code
Browse files Browse the repository at this point in the history
  • Loading branch information
dusta committed Dec 5, 2018
1 parent fd3ef35 commit a2dd8be
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ class Image
/**
* Image constructor.
*
* @param $config
* @param $image
* @param bool $default
* @param \Dframe\FileStorage\Storage $storage
Expand Down
5 changes: 5 additions & 0 deletions src/Storage.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ class Storage
* Storage constructor.
*
* @param \Dframe\FileStorage\Drivers\DatabaseDriverInterface $driver
* @param null $config
* @param bool $router
*/
public function __construct($driver = null, $config = null, $router = true)
{
Expand Down Expand Up @@ -133,6 +135,9 @@ public function renderFile($file, $adapter = 'local')
->headers(['Content-type' => $getMimetype]);
}

/**
* @return Drivers\DatabaseDriverInterface|null
*/
public function getDriver()
{
return $this->driver;
Expand Down

0 comments on commit a2dd8be

Please sign in to comment.