Skip to content

Commit 22a9986

Browse files
committed
Apply fixes from StyleCI
1 parent 9ddaed3 commit 22a9986

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

src/directives.php

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
<?php
22

3-
use Illuminate\Support\Str;
43
use Appstract\BladeDirectives\Parser;
5-
use Illuminate\Database\Eloquent\Collection;
4+
use Illuminate\Support\Str;
65

76
return [
87

@@ -410,7 +409,7 @@
410409
*/
411410

412411
'count' => function ($expression) {
413-
return '<?php echo ' . count(json_decode($expression)) . '; ?>';
412+
return '<?php echo '.count(json_decode($expression)).'; ?>';
414413
},
415414

416415
/*
@@ -430,14 +429,14 @@
430429
*/
431430

432431
'kebab' => function ($expression) {
433-
return '<?php echo ' . Str::kebab($expression) . '; ?>';
432+
return '<?php echo '.Str::kebab($expression).'; ?>';
434433
},
435434

436435
'snake' => function ($expression) {
437-
return '<?php echo ' . Str::snake($expression) . '; ?>';
436+
return '<?php echo '.Str::snake($expression).'; ?>';
438437
},
439438

440439
'camel' => function ($expression) {
441-
return '<?php echo ' . Str::camel($expression) . '; ?>';
440+
return '<?php echo '.Str::camel($expression).'; ?>';
442441
},
443442
];

tests/CountTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ class CountTest extends TestCase
66
{
77
public function test_count_is_compiled()
88
{
9-
$blade = "@count([1,2,3])";
10-
$expected = "<?php echo 3; ?>";
9+
$blade = '@count([1,2,3])';
10+
$expected = '<?php echo 3; ?>';
1111

1212
$this->assertSame($expected, $this->blade->compileString($blade));
1313
}

0 commit comments

Comments
 (0)