Skip to content

Commit 2948661

Browse files
committed
formatting
1 parent 2e05aea commit 2948661

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/Blocks/Block.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function __construct()
3333

3434
public function renderer($context = 'front-end'): Renderer
3535
{
36-
if($context === 'editor') {
36+
if ($context === 'editor') {
3737
$this->isInEditor = true;
3838
}
3939

src/Blocks/Renderer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ public function renderToolbar(): string
2727
return '';
2828
}
2929

30-
return new View(paver()->viewPath() . '/block-toolbar.php', [
31-
'block' => $this->block
30+
return new View(paver()->viewPath().'/block-toolbar.php', [
31+
'block' => $this->block,
3232
]);
3333
}
3434

src/Paver.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,16 +94,16 @@ public function api()
9494

9595
public function blocks($encode = false, $withInstance = false): string|array
9696
{
97-
$blocks = array_map(function ($block) use($withInstance) {
97+
$blocks = array_map(function ($block) use ($withInstance) {
9898
$instance = BlockFactory::createById($block);
9999

100100
$data = [
101101
'name' => $instance->name,
102102
'reference' => $instance::$reference,
103-
'icon' => $instance->getIcon()
103+
'icon' => $instance->getIcon(),
104104
];
105105

106-
if($withInstance) {
106+
if ($withInstance) {
107107
$data['instance'] = $instance;
108108
}
109109

0 commit comments

Comments
 (0)