Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Sep 28, 2018
1 parent ec58d1d commit 1dd87c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/BladeXCompiler.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ public function compile(string $viewContents): string
{
return array_reduce(
$this->bladeX->getRegisteredComponents(),
[$this, 'replaceBladeXComponentWithRegularBladeComponent'],
[$this, 'parseComponentHtml'],
$viewContents);
}

protected function replaceBladeXComponentWithRegularBladeComponent(string $viewContents, BladeXComponent $bladeXComponent)
protected function parseComponentHtml(string $viewContents, BladeXComponent $bladeXComponent)
{
$pattern = "/<\s*{$bladeXComponent->name}[^>]*>((.|\n)*?)<\s*\/\s*{$bladeXComponent->name}>/m";

Expand Down

0 comments on commit 1dd87c6

Please sign in to comment.