We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Conditions | 2 |
| Paths | 2 |
| Total Lines | 17 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| 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 | if ($this->doc->metadataArray['LOG_0001']['type'][0] != 'object') { |
||
| 45 | // Quit without doing anything if required variables are not set. |
||
| 46 | return $content; |
||
| 47 | } else { |
||
| 48 | // Load template file. |
||
| 49 | $this->getTemplate(); |
||
| 50 | |||
| 51 | // Fill in the template markers. |
||
| 52 | $markerArray['###URL###'] = $this->doc->getFileLocation($this->doc->physicalStructureInfo[$this->doc->physicalStructure[1]]['files']['DEFAULT']); |
||
| 53 | |||
| 54 | $content .= $this->templateService->substituteMarkerArray($this->template, $markerArray); |
||
| 55 | return $this->pi_wrapInBaseClass($content); |
||
| 56 | } |
||
| 59 |