Showing 10 of 1,214 results.

PHPStan/Larastan Integration | The Validate Command

If you'd like to automatically run Larastan results on the compiled output of Blade templates when running the blade:validate command, you simply need to install it via Composer and ensure the blade.validation.phpstan configuration option is set...

Unpaired Conditions | The Validate Command

Class : UnpairedConditionValidator The unpaired condition validator will emit validation errors if any condition directives ( if , elseif , else , etc.) are not paired with another directive. The following template: 1 @if ( $ this ) 2 3 @elseif (...

Empty Condition Expressions | The Validate Command

Class : EmptyConditionValidator The empty condition expressions validator emits a validation error when conditional directives do not contain an expression. The following template: 1 @if 2 3 @else 4 5 @endif will emit the following validation...

Duplicate Condition Expressions | The Validate Command

Class : DuplicateConditionExpressionsValidator The duplicate condition expressions validator may be used to detect trivial identical expressions. The following template: 1 @if ( $ this == ' that ' ) 2 3 @elseif ( $ this == ' that ' ) 4 5 @else 6 7...

No Directive Arguments | The Validate Command

Class : NoArgumentsValidator The no directive arguments validator emits a validation error when directive's that should not contain arguments have arguments in the template. The following template: 1 @ endphp ( $ args ) will emit the following...

Required Directive Arguments | The Validate Command

Class : RequiredArgumentsValidator The required directive arguments validator emits a validation error when a directive that should contain arguments does not have any arguments in the template. The following template: 1 @extends will emit the...

Inconsistent Directive Casing | The Validate Command

Class : InconsistentDirectiveCasingValidator The inconsistent directive casing validator emits a validation error when a directive's casing within the template does not match the directive's definition. The following template: 1 @ENDPHP will emit...

Requires Open Directive | The Validate Command

Class : RequiresOpenValidator The requires open directive validator emits a validation error when a closing directive is not paired with an opening directive within the template. The following template: 1 @endfor emits the following error message:...

Directive Spacing | The Validate Command

Class : DirectiveSpacingValidator The directive spacing validator emits a validation error when a directive does not have sufficient leading or trailing whitespace. The following template: 1 < span class = " @if @endif " > </ span > produces the...

Filter Search