Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed Jul 24, 2024
1 parent 6bdca03 commit 8fd4d5e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ class DynamicMarkdownLinkProcessor implements MarkdownPostProcessorContract
public static function postprocess(string $html): string
{
$patterns = [
'/<a href="hyde::route\(\'([^\']+)\'\)"/' => function($matches) {
return '<a href="' . Hyde::route($matches[1]) . '"';
'/<a href="hyde::route\(\'([^\']+)\'\)"/' => function ($matches) {
return '<a href="'.Hyde::route($matches[1]).'"';
},
'/<a href="hyde::relativeLink\(\'([^\']+)\'\)"/' => function($matches) {
return '<a href="' . Hyde::relativeLink($matches[1]) . '"';
'/<a href="hyde::relativeLink\(\'([^\']+)\'\)"/' => function ($matches) {
return '<a href="'.Hyde::relativeLink($matches[1]).'"';
},
'/<img src="hyde::asset\(\'([^\']+)\'\)"/' => function($matches) {
return '<img src="' . Hyde::asset($matches[1]) . '"';
'/<img src="hyde::asset\(\'([^\']+)\'\)"/' => function ($matches) {
return '<img src="'.Hyde::asset($matches[1]).'"';
},
];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,13 @@

namespace Hyde\Framework\Testing\Feature\Services\Markdown;

use Mockery;
use Hyde\Pages\InMemoryPage;
use Hyde\Testing\UnitTestCase;
use Hyde\Support\Models\Route;
use Hyde\Foundation\HydeKernel;
use Hyde\Support\Facades\Render;
use Hyde\Foundation\Facades\Routes;
use Hyde\Support\Models\RenderData;
use Hyde\Markdown\Processing\DynamicMarkdownLinkProcessor;
use Hyde\Hyde;

/**
* @covers \Hyde\Markdown\Processing\DynamicMarkdownLinkProcessor
Expand All @@ -28,7 +25,7 @@ protected function setUp(): void
parent::setUp();

Render::swap(new RenderData());

Routes::addRoute(new Route(new InMemoryPage('home')));
}

Expand Down

0 comments on commit 8fd4d5e

Please sign in to comment.