Passed
Push — latest ( fec122...d29a33 )
by Colin
03:43 queued 01:41
created

.ripstech/link-rendering.php (1 issue)

Labels
Severity
1
<?php
2
3
require_once __DIR__.'/../vendor/autoload.php';
4
5
use League\CommonMark\Configuration\Configuration;
6
use League\CommonMark\Extension\CommonMark\Node\Inline\Link;
7
use League\CommonMark\Extension\CommonMark\Renderer\Inline\LinkRenderer;
8
use League\CommonMark\Tests\Unit\FakeHtmlRenderer;
0 ignored issues
show
The type League\CommonMark\Tests\Unit\FakeHtmlRenderer was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
9
10
$renderer = new LinkRenderer();
11
$renderer->setConfiguration(new Configuration([
12
    'allow_unsafe_links' => false,
13
]));
14
15
$inline = new Link($_GET['url'], $_GET['label'], $_GET['title']);
16
$fakeRenderer = new FakeHtmlRenderer();
17
18
echo $renderer->render($inline, $fakeRenderer);
19