-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: 🐛 wrap line length option does not affect formatting
- Loading branch information
Showing
5 changed files
with
104 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
__tests__/fixtures/runtimeConfig/wrapLineLength/.bladeformatterrc.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"wrapLineLength": 40 | ||
} |
42 changes: 42 additions & 0 deletions
42
__tests__/fixtures/runtimeConfig/wrapLineLength/formatted.index.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
@extends('frontend.layouts.app') | ||
@section('head') | ||
@endsection | ||
@section('title') foo | ||
@endsection | ||
@section('content') | ||
<section id="content"> | ||
<div | ||
class="container mod-users-pd-h"> | ||
<div class="pf-user-header"> | ||
<div></div> | ||
<p>@lang('users.index')</p> | ||
</div> | ||
<div class="pf-users-branch"> | ||
<ul | ||
class="pf-users-branch__list"> | ||
@foreach ($tree as $users) | ||
<li> | ||
<img src="{{ asset('img/frontend/icon/branch-arrow.svg') }}" | ||
alt="branch_arrow"> | ||
{{ link_to_route('frontend.users.user.show', $users['name'], $users['_id']) }} | ||
</li> | ||
@endforeach | ||
</ul> | ||
<div | ||
class="pf-users-branch__btn"> | ||
@can('create', | ||
App\Models\User::class) | ||
{!! link_to_route( | ||
'frontend.users.user.create', | ||
__('users.create'), | ||
[], | ||
['class' => 'btn'], | ||
) !!} | ||
@endcan | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
@endsection | ||
@section('footer') | ||
@stop |
32 changes: 32 additions & 0 deletions
32
__tests__/fixtures/runtimeConfig/wrapLineLength/index.blade.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
@extends('frontend.layouts.app') | ||
@section('head') | ||
@endsection | ||
@section('title') foo | ||
@endsection | ||
@section('content') | ||
<section id="content"> | ||
<div class="container mod-users-pd-h"> | ||
<div class="pf-user-header"> | ||
<div></div> | ||
<p>@lang('users.index')</p> | ||
</div> | ||
<div class="pf-users-branch"> | ||
<ul class="pf-users-branch__list"> | ||
@foreach($tree as $users) | ||
<li> | ||
<img src="{{ asset("img/frontend/icon/branch-arrow.svg") }}" alt="branch_arrow"> | ||
{{ link_to_route('frontend.users.user.show',$users["name"],$users['_id']) }} | ||
</li> | ||
@endforeach | ||
</ul> | ||
<div class="pf-users-branch__btn"> | ||
@can('create', App\Models\User::class) | ||
{!! link_to_route('frontend.users.user.create', __('users.create'), [], ['class' => 'btn']) !!} | ||
@endcan | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
@endsection | ||
@section('footer') | ||
@stop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters