Commit c6f8e51d authored by Nicolas Widart's avatar Nicolas Widart

Type hinting the file deletion

parent e51b1ffb
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
use Illuminate\Contracts\Config\Repository; use Illuminate\Contracts\Config\Repository;
use Illuminate\Support\Facades\App; use Illuminate\Support\Facades\App;
use Modules\Media\Entities\File;
class Imagy class Imagy
{ {
...@@ -174,7 +175,7 @@ class Imagy ...@@ -174,7 +175,7 @@ class Imagy
* @param $file * @param $file
* @return bool * @return bool
*/ */
public function deleteAllFor($file) public function deleteAllFor(File $file)
{ {
if (!$this->isImage($file->path)) { if (!$this->isImage($file->path)) {
return $this->finder->delete($file->path); return $this->finder->delete($file->path);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment