Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
HansSchouten committed Aug 8, 2022
1 parent d47baef commit 325ba19
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/Modules/GrapesJS/Block/BlockRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ public function renderWithSlug(string $blockSlug, $blockData = null, $id = null)
? new ThemeBlock($this->theme, $path, true, $blockSlug)
: new ThemeBlock($this->theme, $blockSlug);


return $this->render($block, $blockData, $id);
}

Expand Down
1 change: 0 additions & 1 deletion src/Theme.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ public function __construct(array $config, string $themeSlug)
protected function attemptBlockRegistration($entry) {
if ($entry->isDir() && ! $entry->isDot()) {
$blockSlug = $entry->getFilename();

$block = new ThemeBlock($this, $blockSlug);

$isActive = true;
Expand Down
2 changes: 2 additions & 0 deletions src/ThemeBlock.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ class ThemeBlock
*
* @param ThemeContract $theme the theme this block belongs to
* @param string $blockSlug
* @param bool $isExtension
* @param string|null $extensionSlug
*/
public function __construct(ThemeContract $theme, string $blockSlug, bool $isExtension = false, string $extensionSlug = null)
{
Expand Down

0 comments on commit 325ba19

Please sign in to comment.