We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Conditions | 3 |
| Paths | 3 |
| Total Lines | 28 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 39 | public function main($content, $conf) |
||
| 40 | { |
||
| 41 | $this->init($conf); |
||
| 42 | // Load current document. |
||
| 43 | $this->loadDocument(); |
||
| 44 | // TODO :correct condition for displaying |
||
| 45 | if ( |
||
| 46 | 1 != 1 |
||
|
|
|||
| 47 | ) { |
||
| 48 | // Quit without doing anything if required variables are not set. |
||
| 49 | return $content; |
||
| 50 | } else { |
||
| 51 | // Load template file. |
||
| 52 | $this->getTemplate(); |
||
| 53 | |||
| 54 | // TODO: read XML with link |
||
| 55 | $xml = ''; |
||
| 56 | if ($xml !== false) { |
||
| 57 | // Fill in the template markers. |
||
| 58 | $markerArray = []; |
||
| 59 | // TODO: URL must be a variable taken from XML |
||
| 60 | $markerArray['###URL###'] = 'http://localhost:4200/'; |
||
| 61 | |||
| 62 | $content .= $this->templateService->substituteMarkerArray($this->template, $markerArray); |
||
| 63 | return $this->pi_wrapInBaseClass($content); |
||
| 64 | } |
||
| 65 | |||
| 66 | return $content; |
||
| 67 | } |
||
| 70 |