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 Jan 18, 2024
1 parent a625d97 commit 0205870
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions src/Livewire/PagesData.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ public function addoEmbed($blockId)

public function addBlock($blocktemplatesID, $name, $type, $iconclass = null)
{

$tempBlock = Blocktemplates::where('id', $blocktemplatesID)->first();

$block = $this->page->blocks()->create([
Expand All @@ -183,9 +183,9 @@ public function addBlock($blocktemplatesID, $name, $type, $iconclass = null)

$blockmeta = Block::find($block->id);
$blockmeta->saveMeta([
'layout' => 'popout',
'layout' => 'popout',
'alignment' => 'left',
'slider' => ''
'slider' => '',
]);

if ($type == 'wysiwyg') {
Expand Down Expand Up @@ -288,7 +288,7 @@ public function saveset($id, $set, $status)
if ($set == 'layout') {
$setblock->deleteMeta('layout');
$setblock->saveMeta([
'layout' => $status,
'layout' => $status,
]);
}
if ($set == 'alignment') {
Expand All @@ -300,7 +300,7 @@ public function saveset($id, $set, $status)
if ($set == 'slider') {
$setblock->deleteMeta('slider');
$setblock->saveMeta([
'slider' => $status
'slider' => $status,
]);
}

Expand Down
10 changes: 5 additions & 5 deletions src/Livewire/PostsData.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public function selectitem($action, $itemId, $fieldOrPageName = null, $blockgrou

public function addBlock($blocktemplatesID, $name, $type, $grid = null, $iconclass = null)
{

$tempBlock = Blocktemplates::where('id', $blocktemplatesID)->first();
$block = $this->post->blocks()->create([
'name' => $name,
Expand All @@ -149,9 +149,9 @@ public function addBlock($blocktemplatesID, $name, $type, $grid = null, $iconcla

$blockmeta = Block::find($block->id);
$blockmeta->saveMeta([
'layout' => 'popout',
'layout' => 'popout',
'alignment' => 'left',
'slider' => ''
'slider' => '',
]);

if ($type == 'wysiwyg') {
Expand Down Expand Up @@ -254,7 +254,7 @@ public function saveset($id, $set, $status)

if ($set == 'layout') {
$setblock->saveMeta([
'layout' => $status,
'layout' => $status,
]);
}
if ($set == 'alignment') {
Expand All @@ -264,7 +264,7 @@ public function saveset($id, $set, $status)
}
if ($set == 'slider') {
$setblock->saveMeta([
'slider' => $status
'slider' => $status,
]);
}

Expand Down
2 changes: 1 addition & 1 deletion src/Models/Page.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
class Page extends Model
{
use HasFactory;
use SoftDeletes;
use HasMeta;
use SoftDeletes;

protected $casts = [
'content' => 'array',
Expand Down

0 comments on commit 0205870

Please sign in to comment.