Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Code Duplication    Length = 30-30 lines in 4 locations

dlf/plugins/pageview/class.tx_dlf_pageview.php 1 location

@@ 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'])) {

dlf/plugins/toolbox/tools/fulltext/class.tx_dlf_toolsFulltext.php 1 location

@@ 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'])) {

dlf/plugins/toolbox/tools/imagedownload/class.tx_dlf_toolsImagedownload.php 1 location

@@ 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'])) {

dlf/plugins/toolbox/tools/pdf/class.tx_dlf_toolsPdf.php 1 location

@@ 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'])) {