Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed Jun 14, 2023
1 parent 9ddaed3 commit 22a9986
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
11 changes: 5 additions & 6 deletions src/directives.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<?php

use Illuminate\Support\Str;
use Appstract\BladeDirectives\Parser;
use Illuminate\Database\Eloquent\Collection;
use Illuminate\Support\Str;

return [

Expand Down Expand Up @@ -410,7 +409,7 @@
*/

'count' => function ($expression) {
return '<?php echo ' . count(json_decode($expression)) . '; ?>';
return '<?php echo '.count(json_decode($expression)).'; ?>';
},

/*
Expand All @@ -430,14 +429,14 @@
*/

'kebab' => function ($expression) {
return '<?php echo ' . Str::kebab($expression) . '; ?>';
return '<?php echo '.Str::kebab($expression).'; ?>';
},

'snake' => function ($expression) {
return '<?php echo ' . Str::snake($expression) . '; ?>';
return '<?php echo '.Str::snake($expression).'; ?>';
},

'camel' => function ($expression) {
return '<?php echo ' . Str::camel($expression) . '; ?>';
return '<?php echo '.Str::camel($expression).'; ?>';
},
];
4 changes: 2 additions & 2 deletions tests/CountTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ class CountTest extends TestCase
{
public function test_count_is_compiled()
{
$blade = "@count([1,2,3])";
$expected = "<?php echo 3; ?>";
$blade = '@count([1,2,3])';
$expected = '<?php echo 3; ?>';

$this->assertSame($expected, $this->blade->compileString($blade));
}
Expand Down

0 comments on commit 22a9986

Please sign in to comment.