We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| @@ 338-367 (lines=30) @@ | ||
| 335 | // Load current document. |
|
| 336 | $this->loadDocument(); |
|
| 337 | ||
| 338 | if ($this->doc === NULL || $this->doc->numPages < 1) { |
|
| 339 | ||
| 340 | // Quit without doing anything if required variables are not set. |
|
| 341 | return $content; |
|
| 342 | ||
| 343 | } else { |
|
| 344 | ||
| 345 | if (!empty($this->piVars['logicalPage'])) { |
|
| 346 | ||
| 347 | $this->piVars['page'] = $this->doc->getPhysicalPage($this->piVars['logicalPage']); |
|
| 348 | // The logical page parameter should not appear again |
|
| 349 | unset($this->piVars['logicalPage']); |
|
| 350 | ||
| 351 | } |
|
| 352 | ||
| 353 | // Set default values if not set. |
|
| 354 | // $this->piVars['page'] may be integer or string (physical structure @ID) |
|
| 355 | if ( (int)$this->piVars['page'] > 0 || empty($this->piVars['page'])) { |
|
| 356 | ||
| 357 | $this->piVars['page'] = \TYPO3\CMS\Core\Utility\MathUtility::forceIntegerInRange((int)$this->piVars['page'], 1, $this->doc->numPages, 1); |
|
| 358 | ||
| 359 | } else { |
|
| 360 | ||
| 361 | $this->piVars['page'] = array_search($this->piVars['page'], $this->doc->physicalStructure); |
|
| 362 | ||
| 363 | } |
|
| 364 | ||
| 365 | $this->piVars['double'] = \TYPO3\CMS\Core\Utility\MathUtility::forceIntegerInRange($this->piVars['double'], 0, 1, 0); |
|
| 366 | ||
| 367 | } |
|
| 368 | ||
| 369 | // Load template file. |
|
| 370 | if (!empty($this->conf['templateFile'])) { |
|
| @@ 45-74 (lines=30) @@ | ||
| 42 | // Load current document. |
|
| 43 | $this->loadDocument(); |
|
| 44 | ||
| 45 | if ($this->doc === NULL || $this->doc->numPages < 1 || empty($this->conf['fileGrpFulltext'])) { |
|
| 46 | ||
| 47 | // Quit without doing anything if required variables are not set. |
|
| 48 | return $content; |
|
| 49 | ||
| 50 | } else { |
|
| 51 | ||
| 52 | if (!empty($this->piVars['logicalPage'])) { |
|
| 53 | ||
| 54 | $this->piVars['page'] = $this->doc->getPhysicalPage($this->piVars['logicalPage']); |
|
| 55 | // The logical page parameter should not appear again |
|
| 56 | unset($this->piVars['logicalPage']); |
|
| 57 | ||
| 58 | } |
|
| 59 | ||
| 60 | // Set default values if not set. |
|
| 61 | // $this->piVars['page'] may be integer or string (physical structure @ID) |
|
| 62 | if ( (int)$this->piVars['page'] > 0 || empty($this->piVars['page'])) { |
|
| 63 | ||
| 64 | $this->piVars['page'] = \TYPO3\CMS\Core\Utility\MathUtility::forceIntegerInRange((int) $this->piVars['page'], 1, $this->doc->numPages, 1); |
|
| 65 | ||
| 66 | } else { |
|
| 67 | ||
| 68 | $this->piVars['page'] = array_search($this->piVars['page'], $this->doc->physicalStructure); |
|
| 69 | ||
| 70 | } |
|
| 71 | ||
| 72 | $this->piVars['double'] = \TYPO3\CMS\Core\Utility\MathUtility::forceIntegerInRange($this->piVars['double'], 0, 1, 0); |
|
| 73 | ||
| 74 | } |
|
| 75 | ||
| 76 | // Load template file. |
|
| 77 | if (!empty($this->conf['toolTemplateFile'])) { |
|
| @@ 44-73 (lines=30) @@ | ||
| 41 | // Load current document. |
|
| 42 | $this->loadDocument(); |
|
| 43 | ||
| 44 | if ($this->doc === NULL || $this->doc->numPages < 1 || empty($this->conf['fileGrpsImageDownload'])) { |
|
| 45 | ||
| 46 | // Quit without doing anything if required variables are not set. |
|
| 47 | return $content; |
|
| 48 | ||
| 49 | } else { |
|
| 50 | ||
| 51 | if (!empty($this->piVars['logicalPage'])) { |
|
| 52 | ||
| 53 | $this->piVars['page'] = $this->doc->getPhysicalPage($this->piVars['logicalPage']); |
|
| 54 | // The logical page parameter should not appear again |
|
| 55 | unset($this->piVars['logicalPage']); |
|
| 56 | ||
| 57 | } |
|
| 58 | ||
| 59 | // Set default values if not set. |
|
| 60 | // $this->piVars['page'] may be integer or string (physical structure @ID) |
|
| 61 | if ( (int)$this->piVars['page'] > 0 || empty($this->piVars['page'])) { |
|
| 62 | ||
| 63 | $this->piVars['page'] = \TYPO3\CMS\Core\Utility\MathUtility::forceIntegerInRange((int)$this->piVars['page'], 1, $this->doc->numPages, 1); |
|
| 64 | ||
| 65 | } else { |
|
| 66 | ||
| 67 | $this->piVars['page'] = array_search($this->piVars['page'], $this->doc->physicalStructure); |
|
| 68 | ||
| 69 | } |
|
| 70 | ||
| 71 | $this->piVars['double'] = \TYPO3\CMS\Core\Utility\MathUtility::forceIntegerInRange($this->piVars['double'], 0, 1, 0); |
|
| 72 | ||
| 73 | } |
|
| 74 | ||
| 75 | // Load template file. |
|
| 76 | if (!empty($this->conf['toolTemplateFile'])) { |
|
| @@ 45-74 (lines=30) @@ | ||
| 42 | // Load current document. |
|
| 43 | $this->loadDocument(); |
|
| 44 | ||
| 45 | if ($this->doc === NULL || $this->doc->numPages < 1 || empty($this->conf['fileGrpDownload'])) { |
|
| 46 | ||
| 47 | // Quit without doing anything if required variables are not set. |
|
| 48 | return $content; |
|
| 49 | ||
| 50 | } else { |
|
| 51 | ||
| 52 | if (!empty($this->piVars['logicalPage'])) { |
|
| 53 | ||
| 54 | $this->piVars['page'] = $this->doc->getPhysicalPage($this->piVars['logicalPage']); |
|
| 55 | // The logical page parameter should not appear again |
|
| 56 | unset($this->piVars['logicalPage']); |
|
| 57 | ||
| 58 | } |
|
| 59 | ||
| 60 | // Set default values if not set. |
|
| 61 | // $this->piVars['page'] may be integer or string (physical structure @ID) |
|
| 62 | if ( (int)$this->piVars['page'] > 0 || empty($this->piVars['page'])) { |
|
| 63 | ||
| 64 | $this->piVars['page'] = \TYPO3\CMS\Core\Utility\MathUtility::forceIntegerInRange((int)$this->piVars['page'], 1, $this->doc->numPages, 1); |
|
| 65 | ||
| 66 | } else { |
|
| 67 | ||
| 68 | $this->piVars['page'] = array_search($this->piVars['page'], $this->doc->physicalStructure); |
|
| 69 | ||
| 70 | } |
|
| 71 | ||
| 72 | $this->piVars['double'] = \TYPO3\CMS\Core\Utility\MathUtility::forceIntegerInRange($this->piVars['double'], 0, 1, 0); |
|
| 73 | ||
| 74 | } |
|
| 75 | ||
| 76 | // Load template file. |
|
| 77 | if (!empty($this->conf['toolTemplateFile'])) { |
|