repo
stringlengths
7
63
file_url
stringlengths
81
284
file_path
stringlengths
5
200
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:02:33
2026-01-05 05:24:06
truncated
bool
2 classes
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Parser/HtmlFragments/FragmentAttributeParser.php
src/Parser/HtmlFragments/FragmentAttributeParser.php
<?php namespace Stillat\BladeParser\Parser\HtmlFragments; use Stillat\BladeParser\Nodes\Fragments\FragmentParameter; use Stillat\BladeParser\Nodes\Fragments\FragmentParameterType; use Stillat\BladeParser\Nodes\Fragments\HtmlFragment; use Stillat\BladeParser\Support\Utf8StringIterator; class FragmentAttributeParser e...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Parser/HtmlFragments/BaseFragmentParser.php
src/Parser/HtmlFragments/BaseFragmentParser.php
<?php namespace Stillat\BladeParser\Parser\HtmlFragments; use Stillat\BladeParser\Support\Utf8StringIterator; abstract class BaseFragmentParser { protected Utf8StringIterator $string; protected string $buffer = ''; protected int $position = 0; protected ?string $current = null; protected ?str...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Parser/HtmlFragments/FragmentPositionsAnalyzer.php
src/Parser/HtmlFragments/FragmentPositionsAnalyzer.php
<?php namespace Stillat\BladeParser\Parser\HtmlFragments; use Stillat\BladeParser\Nodes\Fragments\FragmentParameterType; use Stillat\BladeParser\Nodes\Fragments\FragmentPosition; use Stillat\BladeParser\Nodes\Fragments\HtmlFragment; class FragmentPositionsAnalyzer { /** * The fragments to be analyzed. ...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Contracts/CustomComponentTagCompiler.php
src/Contracts/CustomComponentTagCompiler.php
<?php namespace Stillat\BladeParser\Contracts; use Stillat\BladeParser\Nodes\Components\ComponentNode; interface CustomComponentTagCompiler { public function compile(ComponentNode $component): ?string; }
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Contracts/PathFormatter.php
src/Contracts/PathFormatter.php
<?php namespace Stillat\BladeParser\Contracts; use Stillat\BladeParser\Document\Document; interface PathFormatter { public function getPath(Document $document): string; }
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Validation/AbstractValidator.php
src/Validation/AbstractValidator.php
<?php namespace Stillat\BladeParser\Validation; use Illuminate\Support\Str; use Stillat\BladeParser\Compiler\CompilerServices\StringUtilities; use Stillat\BladeParser\Nodes\AbstractNode; use Stillat\BladeParser\Nodes\DirectiveNode; abstract class AbstractValidator { public bool $requiresStructures = false; ...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Validation/PhpSyntaxValidationResult.php
src/Validation/PhpSyntaxValidationResult.php
<?php namespace Stillat\BladeParser\Validation; use Stillat\BladeParser\Errors\ErrorFamily; use Stillat\BladeParser\Nodes\AbstractNode; class PhpSyntaxValidationResult { /** * Indicates if any errors were detected. */ public bool $detectedErrors = false; /** * The original node errors wer...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Validation/ValidationResult.php
src/Validation/ValidationResult.php
<?php namespace Stillat\BladeParser\Validation; use Stillat\BladeParser\Errors\BladeError; use Stillat\BladeParser\Errors\ConstructContext; use Stillat\BladeParser\Errors\ErrorFamily; use Stillat\BladeParser\Errors\ErrorType; use Stillat\BladeParser\Nodes\AbstractNode; class ValidationResult { /** * The nod...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Validation/BladeValidator.php
src/Validation/BladeValidator.php
<?php namespace Stillat\BladeParser\Validation; use Illuminate\Support\Collection; use Stillat\BladeParser\Document\Document; use Stillat\BladeParser\Nodes\AbstractNode; class BladeValidator { /** * A list of configured node validators. * * @var AbstractNodeValidator[] */ protected array ...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Validation/ValidatorFactory.php
src/Validation/ValidatorFactory.php
<?php namespace Stillat\BladeParser\Validation; class ValidatorFactory { /** * A factory method that can be used to construct BladeValidator instances. * * @var callable|null */ public static $factory = null; /** * Constructs a new instance of `BladeValidator`. */ public...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Validation/AbstractNodeValidator.php
src/Validation/AbstractNodeValidator.php
<?php namespace Stillat\BladeParser\Validation; use Stillat\BladeParser\Nodes\AbstractNode; abstract class AbstractNodeValidator extends AbstractValidator { /** * Analyzes the provided node and reports any applicable validation errors. * * Implementations may return a single `ValidationResult` ins...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Validation/PhpSyntaxValidator.php
src/Validation/PhpSyntaxValidator.php
<?php namespace Stillat\BladeParser\Validation; use Exception; use Illuminate\Support\Str; use ParseError; use Stillat\BladeParser\Compiler\AppendState; use Stillat\BladeParser\Document\Document; use Stillat\BladeParser\Document\DocumentCompilerOptions; use Stillat\BladeParser\Document\DocumentOptions; use Stillat\Bl...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Validation/AbstractDocumentValidator.php
src/Validation/AbstractDocumentValidator.php
<?php namespace Stillat\BladeParser\Validation; use Stillat\BladeParser\Document\Document; abstract class AbstractDocumentValidator extends AbstractValidator { /** * Analyzes the provided document and reports any applicable validation errors. * * Implementations may return a single `ValidationResu...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Validation/Workspaces/PhpStanWrapper.php
src/Validation/Workspaces/PhpStanWrapper.php
<?php namespace Stillat\BladeParser\Validation\Workspaces; use Exception; use Illuminate\Support\Facades\Log; use Illuminate\Support\Str; use Stillat\BladeParser\Errors\ErrorFamily; use Stillat\BladeParser\Errors\Exceptions\CompilationException; use Stillat\BladeParser\Errors\Exceptions\UnsupportedNodeException; use ...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Validation/Validators/SwitchValidator.php
src/Validation/Validators/SwitchValidator.php
<?php namespace Stillat\BladeParser\Validation\Validators; use Stillat\BladeParser\Nodes\AbstractNode; use Stillat\BladeParser\Nodes\DirectiveNode; use Stillat\BladeParser\Nodes\Structures\CaseStatement; use Stillat\BladeParser\Validation\AbstractNodeValidator; use Stillat\BladeParser\Validation\ValidationResult; cl...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Validation/Validators/ComponentParameterNameSpacingValidator.php
src/Validation/Validators/ComponentParameterNameSpacingValidator.php
<?php namespace Stillat\BladeParser\Validation\Validators; use Stillat\BladeParser\Nodes\AbstractNode; use Stillat\BladeParser\Nodes\Components\ComponentNode; use Stillat\BladeParser\Nodes\Components\ParameterNode; use Stillat\BladeParser\Validation\AbstractNodeValidator; use Stillat\BladeParser\Validation\Validation...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Validation/Validators/DirectiveArgumentSpacingValidator.php
src/Validation/Validators/DirectiveArgumentSpacingValidator.php
<?php namespace Stillat\BladeParser\Validation\Validators; use Illuminate\Support\Str; use InvalidArgumentException; use Stillat\BladeParser\Nodes\AbstractNode; use Stillat\BladeParser\Nodes\DirectiveNode; use Stillat\BladeParser\Validation\AbstractNodeValidator; use Stillat\BladeParser\Validation\ValidationResult; u...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Validation/Validators/DirectiveArgumentsSpanningLinesValidator.php
src/Validation/Validators/DirectiveArgumentsSpanningLinesValidator.php
<?php namespace Stillat\BladeParser\Validation\Validators; use Illuminate\Support\Str; use Stillat\BladeParser\Nodes\AbstractNode; use Stillat\BladeParser\Nodes\DirectiveNode; use Stillat\BladeParser\Validation\AbstractNodeValidator; use Stillat\BladeParser\Validation\ValidationResult; use Stillat\BladeParser\Validat...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Validation/Validators/ComponentShorthandVariableParameterValidator.php
src/Validation/Validators/ComponentShorthandVariableParameterValidator.php
<?php namespace Stillat\BladeParser\Validation\Validators; use Illuminate\Support\Str; use Stillat\BladeParser\Nodes\AbstractNode; use Stillat\BladeParser\Nodes\Components\ComponentNode; use Stillat\BladeParser\Nodes\Components\ParameterNode; use Stillat\BladeParser\Nodes\Components\ParameterType; use Stillat\BladePa...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Validation/Validators/RecursiveIncludeValidator.php
src/Validation/Validators/RecursiveIncludeValidator.php
<?php namespace Stillat\BladeParser\Validation\Validators; use Illuminate\Support\Str; use Stillat\BladeParser\Compiler\CompilerServices\CoreDirectiveRetriever; use Stillat\BladeParser\Nodes\AbstractNode; use Stillat\BladeParser\Nodes\DirectiveNode; use Stillat\BladeParser\Validation\AbstractNodeValidator; use Stilla...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Validation/Validators/EmptyConditionValidator.php
src/Validation/Validators/EmptyConditionValidator.php
<?php namespace Stillat\BladeParser\Validation\Validators; use Stillat\BladeParser\Nodes\AbstractNode; use Stillat\BladeParser\Nodes\DirectiveNode; use Stillat\BladeParser\Parser\BladeKeywords; use Stillat\BladeParser\Validation\AbstractNodeValidator; use Stillat\BladeParser\Validation\ValidationResult; use Stillat\B...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Validation/Validators/DebugDirectiveValidator.php
src/Validation/Validators/DebugDirectiveValidator.php
<?php namespace Stillat\BladeParser\Validation\Validators; use Stillat\BladeParser\Compiler\CompilerServices\CoreDirectiveRetriever; use Stillat\BladeParser\Nodes\AbstractNode; use Stillat\BladeParser\Nodes\DirectiveNode; use Stillat\BladeParser\Validation\AbstractNodeValidator; use Stillat\BladeParser\Validation\Val...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Validation/Validators/ForElseStructureValidator.php
src/Validation/Validators/ForElseStructureValidator.php
<?php namespace Stillat\BladeParser\Validation\Validators; use Stillat\BladeParser\Nodes\AbstractNode; use Stillat\BladeParser\Nodes\DirectiveNode; use Stillat\BladeParser\Validation\AbstractNodeValidator; use Stillat\BladeParser\Validation\ValidationResult; class ForElseStructureValidator extends AbstractNodeValida...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Validation/Validators/DuplicateConditionExpressionsValidator.php
src/Validation/Validators/DuplicateConditionExpressionsValidator.php
<?php namespace Stillat\BladeParser\Validation\Validators; use Stillat\BladeParser\Nodes\AbstractNode; use Stillat\BladeParser\Nodes\DirectiveNode; use Stillat\BladeParser\Nodes\Structures\ConditionalBranch; use Stillat\BladeParser\Validation\AbstractNodeValidator; use Stillat\BladeParser\Validation\ValidationResult;...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Validation/Validators/RequiresOpenValidator.php
src/Validation/Validators/RequiresOpenValidator.php
<?php namespace Stillat\BladeParser\Validation\Validators; use Stillat\BladeParser\Compiler\CompilerServices\CoreDirectiveRetriever; use Stillat\BladeParser\Nodes\AbstractNode; use Stillat\BladeParser\Nodes\DirectiveNode; use Stillat\BladeParser\Validation\AbstractNodeValidator; use Stillat\BladeParser\Validation\Val...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Validation/Validators/DirectiveSpacingValidator.php
src/Validation/Validators/DirectiveSpacingValidator.php
<?php namespace Stillat\BladeParser\Validation\Validators; use Stillat\BladeParser\Nodes\AbstractNode; use Stillat\BladeParser\Nodes\DirectiveNode; use Stillat\BladeParser\Validation\AbstractNodeValidator; use Stillat\BladeParser\Validation\ValidationResult; use Stillat\BladeParser\Validation\Validators\Concerns\CanI...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Validation/Validators/InconsistentDirectiveCasingValidator.php
src/Validation/Validators/InconsistentDirectiveCasingValidator.php
<?php namespace Stillat\BladeParser\Validation\Validators; use Stillat\BladeParser\Compiler\CompilerServices\CoreDirectiveRetriever; use Stillat\BladeParser\Nodes\AbstractNode; use Stillat\BladeParser\Nodes\DirectiveNode; use Stillat\BladeParser\Validation\AbstractNodeValidator; use Stillat\BladeParser\Validation\Val...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Validation/Validators/InconsistentIndentationLevelValidator.php
src/Validation/Validators/InconsistentIndentationLevelValidator.php
<?php namespace Stillat\BladeParser\Validation\Validators; use Stillat\BladeParser\Nodes\AbstractNode; use Stillat\BladeParser\Nodes\DirectiveNode; use Stillat\BladeParser\Validation\AbstractNodeValidator; use Stillat\BladeParser\Validation\ValidationResult; use Stillat\BladeParser\Validation\Validators\Concerns\CanI...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Validation/Validators/NodeCompilationValidator.php
src/Validation/Validators/NodeCompilationValidator.php
<?php namespace Stillat\BladeParser\Validation\Validators; use Stillat\BladeParser\Nodes\AbstractNode; use Stillat\BladeParser\Nodes\DirectiveNode; use Stillat\BladeParser\Nodes\EchoNode; use Stillat\BladeParser\Nodes\PhpBlockNode; use Stillat\BladeParser\Validation\AbstractNodeValidator; use Stillat\BladeParser\Vali...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Validation/Validators/RequiredArgumentsValidator.php
src/Validation/Validators/RequiredArgumentsValidator.php
<?php namespace Stillat\BladeParser\Validation\Validators; use Stillat\BladeParser\Compiler\CompilerServices\CoreDirectiveRetriever; use Stillat\BladeParser\Nodes\AbstractNode; use Stillat\BladeParser\Nodes\DirectiveNode; use Stillat\BladeParser\Validation\AbstractNodeValidator; use Stillat\BladeParser\Validation\Val...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Validation/Validators/NoArgumentsValidator.php
src/Validation/Validators/NoArgumentsValidator.php
<?php namespace Stillat\BladeParser\Validation\Validators; use Stillat\BladeParser\Compiler\CompilerServices\CoreDirectiveRetriever; use Stillat\BladeParser\Nodes\AbstractNode; use Stillat\BladeParser\Nodes\DirectiveNode; use Stillat\BladeParser\Validation\AbstractNodeValidator; use Stillat\BladeParser\Validation\Val...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Validation/Validators/UnpairedConditionValidator.php
src/Validation/Validators/UnpairedConditionValidator.php
<?php namespace Stillat\BladeParser\Validation\Validators; use Stillat\BladeParser\Nodes\AbstractNode; use Stillat\BladeParser\Nodes\DirectiveNode; use Stillat\BladeParser\Validation\AbstractNodeValidator; use Stillat\BladeParser\Validation\ValidationResult; use Stillat\BladeParser\Validation\Validators\Concerns\CanI...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Validation/Validators/Concerns/CanIgnoreDirectives.php
src/Validation/Validators/Concerns/CanIgnoreDirectives.php
<?php namespace Stillat\BladeParser\Validation\Validators\Concerns; use Stillat\BladeParser\Nodes\DirectiveNode; trait CanIgnoreDirectives { /** * A list of directive names that should be ignored. * * @var string[] */ protected array $ignoreDirectives = []; /** * Sets the list o...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Validation/Validators/Concerns/AcceptsCustomDirectives.php
src/Validation/Validators/Concerns/AcceptsCustomDirectives.php
<?php namespace Stillat\BladeParser\Validation\Validators\Concerns; trait AcceptsCustomDirectives { /** * @var string[] */ protected array $customDirectives = []; /** * Sets the custom directive names. * * @param string[] $directives The directive names. */ public fun...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Validation/Validators/Documents/InvalidPhpDocumentValidator.php
src/Validation/Validators/Documents/InvalidPhpDocumentValidator.php
<?php namespace Stillat\BladeParser\Validation\Validators\Documents; use Stillat\BladeParser\Document\Document; use Stillat\BladeParser\Validation\AbstractDocumentValidator; use Stillat\BladeParser\Validation\PhpSyntaxValidator; use Stillat\BladeParser\Validation\ValidationResult; class InvalidPhpDocumentValidator e...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Console/Commands/ValidateBladeCommand.php
src/Console/Commands/ValidateBladeCommand.php
<?php namespace Stillat\BladeParser\Console\Commands; use Illuminate\Console\Command; use Stillat\BladeParser\Document\Document; use Stillat\BladeParser\Errors\BladeError; use Stillat\BladeParser\Errors\ErrorFamily; use Stillat\BladeParser\Providers\ValidatorServiceProvider; use Stillat\BladeParser\Validation\Workspa...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Providers/ValidatorServiceProvider.php
src/Providers/ValidatorServiceProvider.php
<?php namespace Stillat\BladeParser\Providers; use Illuminate\Support\ServiceProvider; use Stillat\BladeParser\Validation\AbstractDocumentValidator; use Stillat\BladeParser\Validation\AbstractNodeValidator; use Stillat\BladeParser\Validation\BladeValidator; use Stillat\BladeParser\Validation\Validators\Concerns\Accep...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Errors/BladeError.php
src/Errors/BladeError.php
<?php namespace Stillat\BladeParser\Errors; use Stillat\BladeParser\Nodes\Position; class BladeError { public Position $position; public ErrorType $type; public ConstructContext $context; public ErrorFamily $family; public string $message = ''; public int $shiftLine = 0; public func...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Errors/ErrorMessagePrinter.php
src/Errors/ErrorMessagePrinter.php
<?php namespace Stillat\BladeParser\Errors; use Illuminate\Support\Str; use Stillat\BladeParser\Nodes\Position; class ErrorMessagePrinter { public static function getErrorCode(BladeError $error): string { $context = Str::padLeft($error->context->value(), 3, '0'); $type = Str::padLeft($error->...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Errors/ErrorFamily.php
src/Errors/ErrorFamily.php
<?php namespace Stillat\BladeParser\Errors; enum ErrorFamily { case Parser; case Validation; case Compiler; public function label(): string { return match ($this) { self::Parser => 'P', self::Validation => 'V', self::Compiler => 'C', }; } }
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Errors/ErrorType.php
src/Errors/ErrorType.php
<?php namespace Stillat\BladeParser\Errors; enum ErrorType { case Unknown; case UnexpectedEndOfInput; case UnexpectedEchoEncountered; case UnexpectedRawEchoEncountered; case UnexpectedTripleEchoEncountered; case UnexpectedCommentEncountered; case UnexpectedComponentTagEncountered; case...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Errors/ConstructContext.php
src/Errors/ConstructContext.php
<?php namespace Stillat\BladeParser\Errors; use Stillat\BladeParser\Nodes\AbstractNode; use Stillat\BladeParser\Nodes\CommentNode; use Stillat\BladeParser\Nodes\Components\ComponentNode; use Stillat\BladeParser\Nodes\DirectiveNode; use Stillat\BladeParser\Nodes\EchoNode; use Stillat\BladeParser\Nodes\EchoType; use St...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Errors/Exceptions/CompilationException.php
src/Errors/Exceptions/CompilationException.php
<?php namespace Stillat\BladeParser\Errors\Exceptions; use Exception; use Stillat\BladeParser\Errors\BladeError; use Stillat\BladeParser\Errors\ErrorMessagePrinter; class CompilationException extends Exception { public ?BladeError $error; public static function fromParserError(BladeError $error): Compilatio...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Errors/Exceptions/UnsupportedNodeException.php
src/Errors/Exceptions/UnsupportedNodeException.php
<?php namespace Stillat\BladeParser\Errors\Exceptions; use Exception; class UnsupportedNodeException extends Exception {}
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Errors/Exceptions/InvalidParameterException.php
src/Errors/Exceptions/InvalidParameterException.php
<?php namespace Stillat\BladeParser\Errors\Exceptions; use InvalidArgumentException; class InvalidParameterException extends InvalidArgumentException {}
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Errors/Exceptions/DuplicateParameterException.php
src/Errors/Exceptions/DuplicateParameterException.php
<?php namespace Stillat\BladeParser\Errors\Exceptions; use InvalidArgumentException; class DuplicateParameterException extends InvalidArgumentException {}
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/src/Errors/Exceptions/InvalidCastException.php
src/Errors/Exceptions/InvalidCastException.php
<?php namespace Stillat\BladeParser\Errors\Exceptions; use Exception; class InvalidCastException extends Exception {}
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/tests/ParserTestCase.php
tests/ParserTestCase.php
<?php namespace Stillat\BladeParser\Tests; use Illuminate\Support\Facades\Blade; use Orchestra\Testbench\TestCase; use Stillat\BladeParser\Compiler\Compiler; use Stillat\BladeParser\Document\Document; use Stillat\BladeParser\Document\DocumentFactory; use Stillat\BladeParser\Errors\ConstructContext; use Stillat\BladeP...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/tests/Pest.php
tests/Pest.php
<?php use Illuminate\Container\Container; use Illuminate\Contracts\View\Factory; use Mockery as m; use Stillat\BladeParser\Compiler\CompilerServices\CoreDirectiveRetriever; use Stillat\BladeParser\Compiler\ComponentNodeCompiler; use Stillat\BladeParser\Compiler\ComponentTagCompiler; use Stillat\BladeParser\Document\Do...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/tests/DocumentSplitter.php
tests/DocumentSplitter.php
<?php namespace Stillat\BladeParser\Tests; use Stillat\BladeParser\Compiler\CompilerServices\StringUtilities; class DocumentSplitter { public static function splitDocumentOnNewLines(string $doc): array { $parts = []; $lines = StringUtilities::breakByNewLine($doc); $template = ''; ...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/tests/TestCase.php
tests/TestCase.php
<?php namespace Tests; use PHPUnit\Framework\TestCase as BaseTestCase; abstract class TestCase extends BaseTestCase { // }
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/tests/bootstrap.php
tests/bootstrap.php
<?php require_once __DIR__.'/../vendor/autoload.php';
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/tests/ScratchTest.php
tests/ScratchTest.php
<?php uses(\Stillat\BladeParser\Tests\ParserTestCase::class); test('stuff', function () {});
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/tests/Workspaces/BasicWorkspaceDetailsTest.php
tests/Workspaces/BasicWorkspaceDetailsTest.php
<?php uses(\Stillat\BladeParser\Tests\ParserTestCase::class); use Stillat\BladeParser\Nodes\DirectiveNode; beforeEach(function () { $this->workspace = $this->getWorkspace('one'); }); afterEach(function () { $this->workspace->cleanUp(); }); test('workspace document count', function () { expect($this->wor...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/tests/Workspaces/WorkspaceProxyTest.php
tests/Workspaces/WorkspaceProxyTest.php
<?php uses(\Stillat\BladeParser\Tests\ParserTestCase::class); use Stillat\BladeParser\Nodes\LiteralNode; beforeEach(function () { $this->workspace = $this->getWorkspace('two'); $this->workspace->resolveStructures(); }); test('find directives by name', function () { expect($this->workspace->findDirectives...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/tests/Reflection/StructureReflectionTest.php
tests/Reflection/StructureReflectionTest.php
<?php uses(\Stillat\BladeParser\Tests\ParserTestCase::class); use Stillat\BladeParser\Nodes\DirectiveNode; use Stillat\BladeParser\Nodes\EchoNode; use Stillat\BladeParser\Nodes\LiteralNode; test('basic false structure tests', function () { $doc = $this->getDocument('@lang("something")'); $directive = $doc->fi...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/tests/Reflection/DirectiveDetailsTest.php
tests/Reflection/DirectiveDetailsTest.php
<?php uses(\Stillat\BladeParser\Tests\ParserTestCase::class); use Stillat\BladeParser\Document\Document; use Stillat\BladeParser\Nodes\DirectiveNode; test('spanned line count', function () { $template = <<<'EOT' @if ($something == 'something') @elseif @if ($something == 'something') @...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/tests/Reflection/BasicReflectionTest.php
tests/Reflection/BasicReflectionTest.php
<?php uses(\Stillat\BladeParser\Tests\ParserTestCase::class); use Illuminate\Support\Collection; use Stillat\BladeParser\Nodes\CommentNode; test('find directive by name', function () { $template = <<<'EOT' @extends('layout') @section ('section_name') @endSection EOT; $document = $this->getDocument($template...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/tests/Reflection/NodeQueriesTest.php
tests/Reflection/NodeQueriesTest.php
<?php uses(\Stillat\BladeParser\Tests\ParserTestCase::class); use Stillat\BladeParser\Nodes\DirectiveNode; use Stillat\BladeParser\Nodes\EchoNode; use Stillat\BladeParser\Nodes\LiteralNode; use Stillat\BladeParser\Nodes\PhpTagNode; test('all not of type', function () { $template = <<<'EOT' Literal One {{ $echo }}...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/tests/Reflection/NodePartitioningTest.php
tests/Reflection/NodePartitioningTest.php
<?php uses(\Stillat\BladeParser\Tests\ParserTestCase::class); use Stillat\BladeParser\Nodes\DirectiveNode; use Stillat\BladeParser\Nodes\LiteralNode; test('node partitioning', function () { $template = <<<'EOT' @switch($i) Leading Node Content @case(1) First case... @break @case(2) ...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/tests/Reflection/NodeCloningTest.php
tests/Reflection/NodeCloningTest.php
<?php uses(\Stillat\BladeParser\Tests\ParserTestCase::class); use Stillat\BladeParser\Nodes\CommentNode; use Stillat\BladeParser\Nodes\Components\ComponentNode; use Stillat\BladeParser\Nodes\Components\ParameterAttribute; use Stillat\BladeParser\Nodes\Components\ParameterNode; use Stillat\BladeParser\Nodes\DirectiveNo...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/tests/Reflection/ChainedClosingDirectivesTest.php
tests/Reflection/ChainedClosingDirectivesTest.php
<?php uses(\Stillat\BladeParser\Tests\ParserTestCase::class); test('chained directives', function () { $template = <<<'EOT' One @if ($that == 'this') Two @elseif ($somethingElse == 'that') Three @else Four @endif Five EOT; $doc = $this->getDocument($template); $doc->resolveStructures(); $...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/tests/Reflection/ComponentReflectionTest.php
tests/Reflection/ComponentReflectionTest.php
<?php uses(\Stillat\BladeParser\Tests\ParserTestCase::class); test('basic component reflection', function () { $template = 'a<x-alert />b<x-alert />c<x-alert-two />'; $document = $this->getDocument($template); expect($document->getLiterals())->toHaveCount(3); expect($document->findComponentsByTagName(...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/tests/Reflection/CommentsTest.php
tests/Reflection/CommentsTest.php
<?php uses(\Stillat\BladeParser\Tests\ParserTestCase::class); test('basic comment details', function () { $template = <<<'EOT' {{-- One --}} {{-- Two --}} EOT; $doc = $this->getDocument($template); $comments = $doc->getComments(); expect($comments)->toHaveCount(2); expect($doc->hasAnyComme...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/tests/Compiler/BladeComponentsTest.php
tests/Compiler/BladeComponentsTest.php
<?php uses(\Stillat\BladeParser\Tests\ParserTestCase::class); use Illuminate\View\Component; use Illuminate\View\ComponentAttributeBag; use Mockery as m; test('components are compiled', function () { expect($this->compiler->compileString('@component(\'foo\', ["foo" => "bar"])'))->toBe('<?php $__env->startComponen...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/tests/Compiler/BladeYieldTest.php
tests/Compiler/BladeYieldTest.php
<?php uses(\Stillat\BladeParser\Tests\ParserTestCase::class); test('yields are compiled', function () { expect($this->compiler->compileString('@yield(\'foo\')'))->toBe('<?php echo $__env->yieldContent(\'foo\'); ?>'); expect($this->compiler->compileString('@yield(\'foo\', \'bar\')'))->toBe('<?php echo $__env->y...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/tests/Compiler/CoreDirectivesWithoutArgumentsTest.php
tests/Compiler/CoreDirectivesWithoutArgumentsTest.php
<?php uses(\Stillat\BladeParser\Tests\ParserTestCase::class); test('core directives can be compiled without arguments and not throw null reference errors', function ($directive) { $this->expectNotToPerformAssertions(); $this->compiler->compileString($directive); })->with(\coreDirectives());
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/tests/Compiler/BladeEchoHandlerTest.php
tests/Compiler/BladeEchoHandlerTest.php
<?php uses(\Stillat\BladeParser\Tests\ParserTestCase::class); use Illuminate\Support\Facades\Blade; use Illuminate\Support\Fluent; use Illuminate\Support\Str; beforeEach(function () { $this->compiler->stringable(function (Fluent $object) { return 'Hello World'; }); }); test('blade handler can interce...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/tests/Compiler/BladeExpressionTest.php
tests/Compiler/BladeExpressionTest.php
<?php uses(\Stillat\BladeParser\Tests\ParserTestCase::class); test('expressions on the same line', function () { expect($this->compiler->compileString('@lang(foo(bar(baz(qux(breeze()))))) space () @lang(foo(bar))'))->toBe('<?php echo app(\'translator\')->get(foo(bar(baz(qux(breeze()))))); ?> space () <?php echo ap...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/tests/Compiler/BladeForStatementsTest.php
tests/Compiler/BladeForStatementsTest.php
<?php uses(\Stillat\BladeParser\Tests\ParserTestCase::class); test('for statements are compiled', function () { $string = '@for ($i = 0; $i < 10; $i++) test @endfor'; $expected = '<?php for($i = 0; $i < 10; $i++): ?> test <?php endfor; ?>'; expect($this->compiler->compileString($string))->toEqual($expected...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/tests/Compiler/BladePropsTest.php
tests/Compiler/BladePropsTest.php
<?php uses(\Stillat\BladeParser\Tests\ParserTestCase::class); use Illuminate\View\ComponentAttributeBag; use Stillat\BladeParser\Compiler\CompilerServices\StringUtilities; test('props are compiled', function () { expect(StringUtilities::normalizeLineEndings($this->compiler->compileString('@props([\'one\' => true,...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/tests/Compiler/BladeIfIssetStatementsTest.php
tests/Compiler/BladeIfIssetStatementsTest.php
<?php uses(\Stillat\BladeParser\Tests\ParserTestCase::class); test('if statements are compiled', function () { $string = '@isset ($test) breeze @endisset'; $expected = '<?php if(isset($test)): ?> breeze <?php endif; ?>'; expect($this->compiler->compileString($string))->toEqual($expected); });
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/tests/Compiler/BladeExtensionsTest.php
tests/Compiler/BladeExtensionsTest.php
<?php uses(\Stillat\BladeParser\Tests\ParserTestCase::class); beforeEach(function () { $this->compiler->extend(function ($value) { return str_replace('foo', 'bar', $value); }); }); test('php documents with extensions are compiled', function () { $document = <<<'EOT' <?php ?> EOT; $result = $t...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/tests/Compiler/BladeCustomTest.php
tests/Compiler/BladeCustomTest.php
<?php uses(\Stillat\BladeParser\Tests\ParserTestCase::class); test('custom php code is correctly handled', function () { expect($this->compiler->compileString("@if(\$test) <?php @show('test'); ?> @endif"))->toBe('<?php if($test): ?> <?php @show(\'test\'); ?> <?php endif; ?>'); }); test('mixing yield and echo', fu...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/tests/Compiler/BladeEchoTest.php
tests/Compiler/BladeEchoTest.php
<?php uses(\Stillat\BladeParser\Tests\ParserTestCase::class); test('echos are compiled', function () { expect($this->compiler->compileString('{!!$name!!}'))->toBe('<?php echo $name; ?>'); expect($this->compiler->compileString('{!! $name !!}'))->toBe('<?php echo $name; ?>'); expect($this->compiler->compileS...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/tests/Compiler/BladeWhileStatementsTest.php
tests/Compiler/BladeWhileStatementsTest.php
<?php uses(\Stillat\BladeParser\Tests\ParserTestCase::class); test('while statements are compiled', function () { $string = '@while ($foo) test @endwhile'; $expected = '<?php while($foo): ?> test <?php endwhile; ?>'; expect($this->compiler->compileString($string))->toEqual($expected); }); test('nested whi...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/tests/Compiler/BladeInjectTest.php
tests/Compiler/BladeInjectTest.php
<?php uses(\Stillat\BladeParser\Tests\ParserTestCase::class); test('dependencies injected as strings are compiled', function () { $string = "Foo @inject('baz', 'SomeNamespace\SomeClass') bar"; $expected = "Foo <?php \$baz = app('SomeNamespace\SomeClass'); ?> bar"; expect($this->compiler->compileString($str...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/tests/Compiler/CompilerDetailsTest.php
tests/Compiler/CompilerDetailsTest.php
<?php uses(\Stillat\BladeParser\Tests\ParserTestCase::class); test('get set echo handlers', function () { $handlers = [ 'test', ]; expect($this->compiler->getEchoHandlers())->toHaveCount(0); $this->compiler->setEchoHandlers($handlers); expect($this->compiler->getEchoHandlers())->toHaveCoun...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/tests/Compiler/BladeEscapedTest.php
tests/Compiler/BladeEscapedTest.php
<?php uses(\Stillat\BladeParser\Tests\ParserTestCase::class); test('escaped with at directives are compiled', function () { expect($this->compiler->compileString('@@foreach'))->toBe('@foreach'); expect($this->compiler->compileString('@@verbatim @@continue @@endverbatim'))->toBe('@verbatim @continue @endverbati...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/tests/Compiler/BladeEnvironmentStatementsTest.php
tests/Compiler/BladeEnvironmentStatementsTest.php
<?php uses(\Stillat\BladeParser\Tests\ParserTestCase::class); test('env statements are compiled', function () { $string = "@env('staging') breeze @else boom @endenv"; $expected = "<?php if(app()->environment('staging')): ?> breeze <?php else: ?> boom <?php endif; ?>"; expect($this->compiler->compileString(...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/tests/Compiler/BladeForeachStatementsTest.php
tests/Compiler/BladeForeachStatementsTest.php
<?php uses(\Stillat\BladeParser\Tests\ParserTestCase::class); use Illuminate\Contracts\View\ViewCompilationException; test('foreach statements are compiled', function () { $string = '@foreach ($this->getUsers() as $user) test @endforeach'; $expected = '<?php $__currentLoopData = $this->getUsers(); $__env->add...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/tests/Compiler/BladeElseStatementsTest.php
tests/Compiler/BladeElseStatementsTest.php
<?php uses(\Stillat\BladeParser\Tests\ParserTestCase::class); test('else statements are compiled', function () { $string = '@if (name(foo(bar))) breeze @else boom @endif'; $expected = '<?php if(name(foo(bar))): ?> breeze <?php else: ?> boom <?php endif; ?>'; expect($this->compiler->compileString($string))-...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/tests/Compiler/BladeCananyStatementsTest.php
tests/Compiler/BladeCananyStatementsTest.php
<?php uses(\Stillat\BladeParser\Tests\ParserTestCase::class); test('canany statements are compiled', function () { $template = <<<'EOT' @canany (['create', 'update'], [$post]) breeze @elsecanany(['delete', 'approve'], [$post]) sneeze @endcan EOT; $expected = <<<'EXPECTED' <?php if (app(\Illuminate\Contracts\A...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/tests/Compiler/BladeIfGuestStatementsTest.php
tests/Compiler/BladeIfGuestStatementsTest.php
<?php uses(\Stillat\BladeParser\Tests\ParserTestCase::class); test('if statements are compiled', function () { $string = '@guest("api") breeze @endguest'; $expected = '<?php if(auth()->guard("api")->guest()): ?> breeze <?php endif; ?>'; expect($this->compiler->compileString($string))->toEqual($expected); }...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/tests/Compiler/TestProfileComponent.php
tests/Compiler/TestProfileComponent.php
<?php namespace Stillat\BladeParser\Tests\Compiler; use Illuminate\View\Component; class TestProfileComponent extends Component { public function __construct($userId = 'foo') { $this->userId = $userId; } public function render() { return 'profile'; } }
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/tests/Compiler/BladeSectionMissingTest.php
tests/Compiler/BladeSectionMissingTest.php
<?php uses(\Stillat\BladeParser\Tests\ParserTestCase::class); test('section missing statements are compiled', function () { $string = '@sectionMissing("section") breeze @endif'; $expected = '<?php if (empty(trim($__env->yieldContent("section")))): ?> breeze <?php endif; ?>'; expect($this->compiler->compile...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/tests/Compiler/BladeAppendTest.php
tests/Compiler/BladeAppendTest.php
<?php uses(\Stillat\BladeParser\Tests\ParserTestCase::class); test('append sections are compiled', function () { expect($this->compiler->compileString('@append'))->toBe('<?php $__env->appendSection(); ?>'); });
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/tests/Compiler/BladeCommentsTest.php
tests/Compiler/BladeCommentsTest.php
<?php uses(\Stillat\BladeParser\Tests\ParserTestCase::class); test('comments are compiled', function () { $template = '{{--this is a comment--}}'; expect($this->compiler->compileString($template))->toBeEmpty(); $template = '{{-- this is a comment --}}'; expect($this->compiler->compileString($template)...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/tests/Compiler/BladeComponentFirstTest.php
tests/Compiler/BladeComponentFirstTest.php
<?php uses(\Stillat\BladeParser\Tests\ParserTestCase::class); test('component firsts are compiled', function () { expect($this->compiler->compileString('@componentFirst(["one", "two"])'))->toBe('<?php $__env->startComponentFirst(["one", "two"]); ?>'); expect($this->compiler->compileString('@componentFirst(["on...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/tests/Compiler/BladeElseIfStatementsTest.php
tests/Compiler/BladeElseIfStatementsTest.php
<?php uses(\Stillat\BladeParser\Tests\ParserTestCase::class); test('else if statements are compiled', function () { $string = '@if(name(foo(bar))) breeze @elseif(boom(breeze)) boom @endif'; $expected = '<?php if(name(foo(bar))): ?> breeze <?php elseif(boom(breeze)): ?> boom <?php endif; ?>'; expect($this->...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/tests/Compiler/BladeLangTest.php
tests/Compiler/BladeLangTest.php
<?php uses(\Stillat\BladeParser\Tests\ParserTestCase::class); test('statement that contains non consecutive parenthesis are compiled', function () { $string = "Foo @lang(function_call('foo(blah)')) bar"; $expected = "Foo <?php echo app('translator')->get(function_call('foo(blah)')); ?> bar"; expect($this->...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/tests/Compiler/BladeJsTest.php
tests/Compiler/BladeJsTest.php
<?php uses(\Stillat\BladeParser\Tests\ParserTestCase::class); test('statement is compiled without any options', function () { $string = '<div x-data="@js($data)"></div>'; $expected = '<div x-data="<?php echo \Illuminate\Support\Js::from($data)->toHtml() ?>"></div>'; expect($this->compiler->compileString($...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/tests/Compiler/BladeElseGuestStatementsTest.php
tests/Compiler/BladeElseGuestStatementsTest.php
<?php uses(\Stillat\BladeParser\Tests\ParserTestCase::class); test('if statements are compiled', function () { $string = '@guest("api") breeze @elseguest("standard") wheeze @endguest'; $expected = '<?php if(auth()->guard("api")->guest()): ?> breeze <?php elseif(auth()->guard("standard")->guest()): ?> wheeze <?...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/tests/Compiler/BladeFragmentTest.php
tests/Compiler/BladeFragmentTest.php
<?php uses(\Stillat\BladeParser\Tests\ParserTestCase::class); test('fragment starts are compiled', function () { expect($this->compiler->compileString('@fragment(\'foo\')'))->toBe('<?php $__env->startFragment(\'foo\'); ?>'); expect($this->compiler->compileString('@fragment(name(foo))'))->toBe('<?php $__env->st...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/tests/Compiler/InputWithSlot.php
tests/Compiler/InputWithSlot.php
<?php namespace Stillat\BladeParser\Tests\Compiler; use Illuminate\View\Component; class InputWithSlot extends Component { public function render() { return 'input'; } }
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/tests/Compiler/BladeCanStatementsTest.php
tests/Compiler/BladeCanStatementsTest.php
<?php uses(\Stillat\BladeParser\Tests\ParserTestCase::class); test('can statements are compiled', function () { $template = <<<'EOT' @can ('update', [$post]) breeze @elsecan('delete', [$post]) sneeze @endcan EOT; $expected = <<<'EXPECTED' <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('up...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/tests/Compiler/BladeIfAuthStatementsTest.php
tests/Compiler/BladeIfAuthStatementsTest.php
<?php uses(\Stillat\BladeParser\Tests\ParserTestCase::class); test('if statements are compiled', function () { $string = '@auth("api") breeze @endauth'; $expected = '<?php if(auth()->guard("api")->check()): ?> breeze <?php endif; ?>'; expect($this->compiler->compileString($string))->toEqual($expected); });...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/tests/Compiler/CustomComponentTagCompilersTest.php
tests/Compiler/CustomComponentTagCompilersTest.php
<?php uses(\Stillat\BladeParser\Tests\ParserTestCase::class); use Stillat\BladeParser\Document\Document; use Stillat\BladeParser\Document\DocumentCompilerOptions; test('custom component tag compilers', function () { $template = <<<'BLADE' <a-custom /> BLADE; $doc = Document::fromText($template, customComponen...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/tests/Compiler/BladePhpStatementsTest.php
tests/Compiler/BladePhpStatementsTest.php
<?php uses(\Stillat\BladeParser\Tests\ParserTestCase::class); test('php statements with expression are compiled', function () { $string = '@php($set = true)'; $expected = '<?php ($set = true); ?>'; expect($this->compiler->compileString($string))->toEqual($expected); }); test('string with parenthesis with ...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false
Stillat/blade-parser
https://github.com/Stillat/blade-parser/blob/d6df786667543d31a0fd45d90c8b78042625c4b4/tests/Compiler/BladePushTest.php
tests/Compiler/BladePushTest.php
<?php uses(\Stillat\BladeParser\Tests\ParserTestCase::class); use Illuminate\Support\Str; test('push is compiled', function () { $string = '@push(\'foo\') test @endpush'; $expected = '<?php $__env->startPush(\'foo\'); ?> test <?php $__env->stopPush(); ?>'; expect($this->compiler->compileString($string))->...
php
MIT
d6df786667543d31a0fd45d90c8b78042625c4b4
2026-01-05T04:28:43.219923Z
false