File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 11<?php
22
3- use Illuminate \Support \Str ;
43use Appstract \BladeDirectives \Parser ;
5- use Illuminate \Database \ Eloquent \ Collection ;
4+ use Illuminate \Support \ Str ;
65
76return [
87
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 /*
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];
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments