Skip to content

Commit

Permalink
Merge branch 'livewireV3DotNotation' of github.com:enflow/livewire-tw…
Browse files Browse the repository at this point in the history
…ig into livewireV3DotNotation
  • Loading branch information
mbardelmeijer committed Sep 27, 2023
2 parents 51785d2 + 7a3f590 commit 55843bd
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 7 deletions.
3 changes: 0 additions & 3 deletions src/LivewireTwigServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@

namespace Enflow\LivewireTwig;

use Illuminate\Foundation\Application;
use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Facades\View;
use Illuminate\Support\Facades\Blade;

class LivewireTwigServiceProvider extends ServiceProvider
{
Expand Down
2 changes: 1 addition & 1 deletion src/Nodes/EntangleNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class EntangleNode extends Node
{
public function compile(Compiler $compiler)
{
$livewire = new NameExpression("__livewire", $this->lineno);
$livewire = new NameExpression('__livewire', $this->lineno);

$compiler
->write('$__livewire = ')->subcompile($livewire)->raw(";\n")
Expand Down
2 changes: 1 addition & 1 deletion src/Nodes/LivewireNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function compile(Compiler $compiler)
$component = $this->getAttribute('component');
$expr = $this->getNode('variables');
$key = $this->getNode('key');
$hasKey = !$key->hasAttribute('value') || $key->getAttribute('value') !== '';
$hasKey = ! $key->hasAttribute('value') || $key->getAttribute('value') !== '';

$compiler
->write('$_name = ')->subcompile($component)->raw(";\n")
Expand Down
2 changes: 1 addition & 1 deletion src/Nodes/ThisNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class ThisNode extends Node
{
public function compile(Compiler $compiler)
{
$livewire = new NameExpression("__livewire", $this->lineno);
$livewire = new NameExpression('__livewire', $this->lineno);

$compiler
->write('$_instance = ')->subcompile($livewire)->raw(";\n")
Expand Down
2 changes: 1 addition & 1 deletion tests/RenderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,4 +142,4 @@ public function render()
{
return view('components.persist');
}
}
}

0 comments on commit 55843bd

Please sign in to comment.