Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
brendt committed Mar 15, 2024
2 parents aae2de5 + 998b606 commit 9065d4c
Show file tree
Hide file tree
Showing 9 changed files with 26 additions and 8 deletions.
4 changes: 3 additions & 1 deletion src/Languages/Blade/BladeLanguage.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Tempest\Highlight\Languages\Blade;

use Tempest\Highlight\Languages\Blade\Injections\BladeKeywordInjection;
Expand All @@ -25,4 +27,4 @@ public function getPatterns(): array
new BladeKeywordPattern(),
];
}
}
}
4 changes: 3 additions & 1 deletion src/Languages/Blade/Injections/BladeKeywordInjection.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Tempest\Highlight\Languages\Blade\Injections;

use Tempest\Highlight\Highlighter;
Expand All @@ -19,4 +21,4 @@ public function parseContent(string $content, Highlighter $highlighter): string
{
return $highlighter->parse($content, 'php');
}
}
}
4 changes: 3 additions & 1 deletion src/Languages/Blade/Injections/BladePhpInjection.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Tempest\Highlight\Languages\Blade\Injections;

use Tempest\Highlight\Highlighter;
Expand All @@ -19,4 +21,4 @@ public function parseContent(string $content, Highlighter $highlighter): string
{
return $highlighter->parse($content, 'php');
}
}
}
4 changes: 3 additions & 1 deletion src/Languages/Blade/Patterns/BladeKeywordPattern.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Tempest\Highlight\Languages\Blade\Patterns;

use Tempest\Highlight\IsPattern;
Expand All @@ -19,4 +21,4 @@ public function getTokenType(): TokenType
{
return TokenType::KEYWORD;
}
}
}
4 changes: 3 additions & 1 deletion src/Languages/BladeLanguage.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Tempest\Highlight\Languages;

use Tempest\Highlight\Languages\Blade\Injections\BladeKeywordInjection;
Expand All @@ -25,4 +27,4 @@ public function getPatterns(): array
new BladeKeywordPattern(),
];
}
}
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
<?php

declare(strict_types=1);

namespace Tempest\Highlight\Tests\Languages\Blade\Injections;

use PHPUnit\Framework\Attributes\Test;
use Tempest\Highlight\Highlighter;
use PHPUnit\Framework\TestCase;
use Tempest\Highlight\Highlighter;
use Tempest\Highlight\Languages\Blade\Injections\BladeKeywordInjection;

class BladeKeywordInjectionTest extends TestCase
Expand Down
4 changes: 3 additions & 1 deletion tests/Languages/Blade/Injections/BladePhpInjectionTest.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
<?php

declare(strict_types=1);

namespace Tempest\Highlight\Tests\Languages\Blade\Injections;

use PHPUnit\Framework\Attributes\Test;
use PHPUnit\Framework\TestCase;
use Tempest\Highlight\Highlighter;
use Tempest\Highlight\Languages\Blade\Injections\BladePhpInjection;
use PHPUnit\Framework\TestCase;

class BladePhpInjectionTest extends TestCase
{
Expand Down
2 changes: 2 additions & 0 deletions tests/Languages/Blade/Patterns/BladeKeywordPatternTest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

namespace Tempest\Highlight\Tests\Languages\Blade\Patterns;

use PHPUnit\Framework\Attributes\Test;
Expand Down
4 changes: 3 additions & 1 deletion tests/Languages/Css/Injections/CssAttributeInjectionTest.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
<?php

declare(strict_types=1);

namespace Tempest\Highlight\Tests\Languages\Css\Injections;

use PHPUnit\Framework\Attributes\Test;
use PHPUnit\Framework\TestCase;
use Tempest\Highlight\Highlighter;
use Tempest\Highlight\Languages\Css\Injections\CssAttributeInjection;
use PHPUnit\Framework\TestCase;

class CssAttributeInjectionTest extends TestCase
{
Expand Down

0 comments on commit 9065d4c

Please sign in to comment.