Lint
This commit is contained in:
parent
9c33c8f128
commit
7e8f762885
|
@ -48,7 +48,7 @@ class MediaController
|
||||||
$medias = collect($content)->map(function ($c) use ($collection, $model) {
|
$medias = collect($content)->map(function ($c) use ($collection, $model) {
|
||||||
$pathinfo = pathinfo($c['name']);
|
$pathinfo = pathinfo($c['name']);
|
||||||
$basename = $collection->runCallback('forceFileName', $model, $pathinfo['filename']);
|
$basename = $collection->runCallback('forceFileName', $model, $pathinfo['filename']);
|
||||||
$path = $basename.'.'.$pathinfo['extension'];
|
$path = $basename . '.' . $pathinfo['extension'];
|
||||||
|
|
||||||
$adder = $this->fileAdderFromData($model, $c['content'], $collection)
|
$adder = $this->fileAdderFromData($model, $c['content'], $collection)
|
||||||
->usingName($basename)
|
->usingName($basename)
|
||||||
|
|
Loading…
Reference in New Issue