Conditions | 1 |
Paths | 1 |
Total Lines | 19 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
43 | 1 | public function getHtmlForWikiText($wikiText) |
|
44 | { |
||
45 | 1 | $endpoint = $this->configuration->getMediawikiWebServiceEndpoint(); |
|
46 | |||
47 | $parameters = array( |
||
48 | 1 | 'action' => 'parse', |
|
49 | 'pst' => true, |
||
50 | 1 | 'contentmodel' => 'wikitext', |
|
51 | 'disablelimitreport' => true, |
||
52 | 'disabletoc' => true, |
||
53 | 'disableeditsection' => true, |
||
54 | 1 | 'format' => 'php', |
|
55 | 1 | 'text' => $wikiText, |
|
56 | ); |
||
57 | |||
58 | 1 | $apiResult = $this->http->get($endpoint, $parameters); |
|
59 | 1 | $parseResult = unserialize($apiResult); |
|
60 | |||
61 | 1 | return $parseResult['parse']['text']['*']; |
|
62 | } |
||
63 | } |
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:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths