File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments