Skip to content
This repository was archived by the owner on Feb 18, 2023. It is now read-only.

Commit ac646b0

Browse files
committed
Fix Styles
1 parent dcf8993 commit ac646b0

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

app/Http/Controllers/Api/Assets/RenderFileController.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111

1212
/**
1313
* Class RenderFileController
14-
*
15-
* @package App\Http\Controllers\Api\Assets
1614
*/
1715
class RenderFileController extends Controller
1816
{
@@ -65,7 +63,7 @@ public function renderFile($model, $width, $height)
6563
*/
6664
public function renderPlaceholder($width, $height)
6765
{
68-
$image = Image::cache(function($image) use ($width, $height){
66+
$image = Image::cache(function ($image) use ($width, $height){
6967
$img = $image->canvas(800, 800, '#FFFFFF');
7068
$this->resize($img, $width, $height);
7169
return $img;
@@ -81,7 +79,7 @@ public function renderPlaceholder($width, $height)
8179
*/
8280
protected function makeFromPath($width, $height, $path)
8381
{
84-
return Image::cache(function($image) use ($path, $width, $height){
82+
return Image::cache(function ($image) use ($path, $width, $height){
8583
$img = $image->make(Storage::get($path));
8684
$this->resize($img, $width, $height);
8785
return $img;

app/Http/Controllers/Api/Assets/UploadFileController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function store(Request $request)
7272
'url' => $request->get('url'),
7373
'user' => $request->user(),
7474
]);
75-
} elseif($request->hasFile('file')) {
75+
} elseif ($request->hasFile('file')) {
7676
$file = $request->file('file')->getRealPath();
7777
$asset = $this->uploadFromDirectFile([
7878
'mime' => $request->file('file')->getClientMimeType(),

app/Transformers/Assets/AssetTransformer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function transform(Asset $model)
2323
'mime' => $model->mime,
2424
'links' => [
2525
'full' => url('api/assets/'.$model->uuid),
26-
'thumb' => url('api/assets/'.$model->uuid.'?width=200&height=200')
26+
'thumb' => url('api/assets/'.$model->uuid.'?width=200&height=200'),
2727
],
2828
'created_at' => $model->created_at->toIso8601String(),
2929
];

0 commit comments

Comments
 (0)