File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ function file_read(string $path): string
1616 return $ contents ;
1717}
1818
19- function html_contains_html_tag (string $ html ): bool
19+ function html_contains_full_html (string $ html ): bool
2020{
2121 return stripos ($ html , '<html ' ) !== false || stripos ($ html , '<!doctype html> ' ) !== false ;
2222}
Original file line number Diff line number Diff line change 77use Symfony \Component \HttpFoundation \Request ;
88use Symfony \Component \HttpFoundation \Response ;
99
10- use function tebe \zack \html_contains_html_tag ;
10+ use function tebe \zack \html_contains_full_html ;
1111use function tebe \zack \html_extract_layout ;
1212use function tebe \zack \html_extract_title ;
1313
@@ -33,7 +33,7 @@ public function __invoke(Request $request): Response
3333 $ outputValue = ob_get_clean ();
3434
3535 if ($ returnValue === 1 && is_string ($ outputValue )) {
36- if (html_contains_html_tag ($ outputValue )) {
36+ if (html_contains_full_html ($ outputValue )) {
3737 return new Response ($ outputValue , 200 );
3838 } else {
3939 $ layout = html_extract_layout ($ outputValue );
You can’t perform that action at this time.
0 commit comments