Skip to content

Commit

Permalink
refactor: Laravel Pint changes
Browse files Browse the repository at this point in the history
  • Loading branch information
secondnetwork authored and github-actions[bot] committed Dec 1, 2023
1 parent 2df0d04 commit 4a5c363
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Helpers/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ function setting($key = null, $default = null)

return $data->data;
}
// return Arr::get(config('settings'), $data );
// return Arr::get(config('settings'), $data );
} else {
$data = Arr::get(app('settings'), $data);

Expand Down
8 changes: 3 additions & 5 deletions src/Livewire/PagesData.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
use Illuminate\Support\Carbon;
use Illuminate\Support\Facades\Storage;
use Illuminate\Support\Str;
use Intervention\Image\Facades\Image;
use Livewire\Attributes\Layout;
use Livewire\Attributes\Locked;
use Livewire\Component;
use Livewire\WithPagination;
use Intervention\Image\Facades\Image;
use Secondnetwork\Kompass\Models\Block;
use Secondnetwork\Kompass\Models\Blockfields;
use Secondnetwork\Kompass\Models\Blocktemplates;
Expand Down Expand Up @@ -165,9 +165,8 @@ public function addoEmbed($blockId)
if ($videoEmbed['type'] == 'youtube') {
$thumbnailName = $videoEmbed['id'].'.jpg';
$thumbnailUrl = 'https://i.ytimg.com/vi/'.$videoEmbed['id'].'/maxresdefault.jpg';

if (Storage::disk('public')->missing('thumbnails-video/'.$thumbnailName))
{

if (Storage::disk('public')->missing('thumbnails-video/'.$thumbnailName)) {
$thumbnailContents = file_get_contents($thumbnailUrl);
if ($thumbnailContents) {
$image = Image::make($thumbnailContents);
Expand All @@ -177,7 +176,6 @@ public function addoEmbed($blockId)
}
}


$this->resetPageComponent();
}

Expand Down

0 comments on commit 4a5c363

Please sign in to comment.