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.
Passed
Branch master (5c2c02)
by Sebastian
02:58
created
plugins/search/class.tx_dlf_search.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -302,13 +302,13 @@  discard block
 block discarded – undo
302 302
 		// Check for plugin configuration.
303 303
 		if (!empty($this->conf['fulltext'])) {
304 304
 
305
-			$output .= ' <input class="tx-dlf-search-fulltext" id="tx-dlf-search-fulltext-no" type="radio" name="' . $this->prefixId . '[fulltext]" value="0" ' . ($isFulltextSearch == 0 ? 'checked="checked"' : '') .' />';
305
+			$output .= ' <input class="tx-dlf-search-fulltext" id="tx-dlf-search-fulltext-no" type="radio" name="'.$this->prefixId.'[fulltext]" value="0" '.($isFulltextSearch == 0 ? 'checked="checked"' : '').' />';
306 306
 
307
-			$output .= ' <label for="tx-dlf-search-fulltext-no">' . $this->pi_getLL('label.inMetadata', '') . '</label>';
307
+			$output .= ' <label for="tx-dlf-search-fulltext-no">'.$this->pi_getLL('label.inMetadata', '').'</label>';
308 308
 
309
-			$output .= ' <input class="tx-dlf-search-fulltext" id="tx-dlf-search-fulltext-yes" type="radio" name="' . $this->prefixId . '[fulltext]" value="1" ' . ($isFulltextSearch == 1 ? 'checked="checked"' : '') .'/>';
309
+			$output .= ' <input class="tx-dlf-search-fulltext" id="tx-dlf-search-fulltext-yes" type="radio" name="'.$this->prefixId.'[fulltext]" value="1" '.($isFulltextSearch == 1 ? 'checked="checked"' : '').'/>';
310 310
 
311
-			$output .= ' <label for="tx-dlf-search-fulltext-yes">' . $this->pi_getLL('label.inFulltext', '') . '</label>';
311
+			$output .= ' <label for="tx-dlf-search-fulltext-yes">'.$this->pi_getLL('label.inFulltext', '').'</label>';
312 312
 
313 313
 		}
314 314
 
@@ -330,9 +330,9 @@  discard block
 block discarded – undo
330 330
 		// Check for plugin configuration.
331 331
 		if (!empty($this->conf['showLogicalPageField'])) {
332 332
 			
333
-			$output .= ' <label for="tx-dlf-search-logical-page">' . $this->pi_getLL('label.logicalPage', '') . ': </label>';
333
+			$output .= ' <label for="tx-dlf-search-logical-page">'.$this->pi_getLL('label.logicalPage', '').': </label>';
334 334
 			
335
-			$output .= ' <input class="tx-dlf-search-logical-page" id="tx-dlf-search-logical-page" type="text" name="' . $this->prefixId . '[logicalPage]" />';
335
+			$output .= ' <input class="tx-dlf-search-logical-page" id="tx-dlf-search-logical-page" type="text" name="'.$this->prefixId.'[logicalPage]" />';
336 336
 			
337 337
 		}
338 338
 
@@ -353,7 +353,7 @@  discard block
 block discarded – undo
353 353
 	 */
354 354
 	protected function getFacetsMenuEntry($field, $value, $count, $search, &$state) {
355 355
 
356
-		$entryArray = array();
356
+		$entryArray = array ();
357 357
 
358 358
 		// Translate value.
359 359
 		if ($field == 'owner_faceting') {
@@ -553,7 +553,7 @@  discard block
 block discarded – undo
553 553
 			if ((!empty($this->conf['fulltext']) && !empty($this->piVars['fulltext'])) || preg_match('/fulltext:\((.*)\)/', $this->piVars['query'], $matches)) {
554 554
 
555 555
 				// If the query already is a fulltext query e.g using the facets
556
-				$this->piVars['query'] = empty($matches[1])?$this->piVars['query']:$matches[1];
556
+				$this->piVars['query'] = empty($matches[1]) ? $this->piVars['query'] : $matches[1];
557 557
 
558 558
 				// Search in fulltext field if applicable. query must not be empty!
559 559
 				if (!empty($this->piVars['query'])) {
@@ -576,7 +576,7 @@  discard block
 block discarded – undo
576 576
 			// Add extended search query.
577 577
 			if (!empty($this->piVars['extQuery']) && is_array($this->piVars['extQuery'])) {
578 578
 
579
-				$allowedOperators = array('AND', 'OR', 'NOT');
579
+				$allowedOperators = array ('AND', 'OR', 'NOT');
580 580
 
581 581
 				$allowedFields = \TYPO3\CMS\Core\Utility\GeneralUtility::trimExplode(',', $this->conf['extendedFields'], TRUE);
582 582
 
@@ -679,22 +679,22 @@  discard block
 block discarded – undo
679 679
 			// Clean output buffer.
680 680
 			\TYPO3\CMS\Core\Utility\GeneralUtility::cleanOutputBuffers();
681 681
 
682
-			$additionalParams = array();
682
+			$additionalParams = array ();
683 683
 
684
-			if(!empty($this->piVars['logicalPage'])) {
684
+			if (!empty($this->piVars['logicalPage'])) {
685 685
 
686 686
 				$additionalParams['logicalPage'] = $this->piVars['logicalPage'];
687 687
 
688 688
 			}
689 689
 
690 690
 			// Jump directly to the page view, if there is only one result and it is configured
691
-			if($results->count() == 1 && !empty($this->conf['showSingleResult'])) {
691
+			if ($results->count() == 1 && !empty($this->conf['showSingleResult'])) {
692 692
 
693 693
 				$linkConf['parameter'] = $this->conf['targetPidPageView'];
694 694
 
695 695
 				$additionalParams['id'] = $results->current()['uid'];
696 696
 				$additionalParams['highlight_word'] = preg_replace('/\s\s+/', ';', $results->metadata['searchString']);
697
-				$additionalParams['page'] = count($results[0]['subparts']) == 1?$results[0]['subparts'][0]['page']:1;
697
+				$additionalParams['page'] = count($results[0]['subparts']) == 1 ? $results[0]['subparts'][0]['page'] : 1;
698 698
 
699 699
 			} else {
700 700
 
Please login to merge, or discard this patch.
plugins/audioplayer/class.tx_dlf_audioplayer.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -55,9 +55,9 @@
 block discarded – undo
55 55
 			$(document).ready(function() {
56 56
 				tx_dlf_audioplayer = new dlfAudioPlayer({
57 57
 					audio: {
58
-						mimeType: "' . $this->audio['mimetype'] . '",
59
-						title: "' . $this->audio['label'] . '",
60
-						url:  "' . $this->audio['url'] . '"
58
+						mimeType: "' . $this->audio['mimetype'].'",
59
+						title: "' . $this->audio['label'].'",
60
+						url:  "' . $this->audio['url'].'"
61 61
 					},
62 62
 					parentElId: "tx-dlf-audio",
63 63
 					swfPath: "'.\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey).'lib/jPlayer/jquery.jplayer.swf"
Please login to merge, or discard this patch.
plugins/pageview/class.tx_dlf_geturl_eid.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,11 +63,11 @@
 block discarded – undo
63 63
 		}
64 64
 
65 65
 		// add some self calculated header tags
66
-		header('Last-Modified: ' . gmdate( "D, d M Y H:i:s" ) . 'GMT');
66
+		header('Last-Modified: '.gmdate("D, d M Y H:i:s").'GMT');
67 67
 		header('Cache-Control: max-age=3600, must-revalidate');
68 68
 		header('Content-Length: '.strlen($fetchedData));
69 69
 		$fi = finfo_open(FILEINFO_MIME);
70
-		header('Content-Type: ' . finfo_buffer($fi, $fetchedData));
70
+		header('Content-Type: '.finfo_buffer($fi, $fetchedData));
71 71
 
72 72
 		// take some tags from request header and overwrite in case already set
73 73
 		$fetchedHeader = explode("\n", GeneralUtility::getUrl($url, 2));
Please login to merge, or discard this patch.
plugins/pageview/class.tx_dlf_pageview.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -86,11 +86,11 @@  discard block
 block discarded – undo
86 86
 			window.onload = function() {
87 87
 				if (dlfUtils.exists(dlfViewer)) {
88 88
 					tx_dlf_viewer = new dlfViewer({
89
-						controls: ["' . implode('", "', $this->controls) . '"],
90
-						div: "' . $this->conf['elementId'] . '",
91
-						images: ' . json_encode($this->images) . ',
92
-						fulltexts: '. json_encode($this->fulltexts) . ',
93
-						useInternalProxy: ' . ($this->conf['useInternalProxy'] ? 1 : 0) .'
89
+						controls: ["' . implode('", "', $this->controls).'"],
90
+						div: "' . $this->conf['elementId'].'",
91
+						images: ' . json_encode($this->images).',
92
+						fulltexts: '. json_encode($this->fulltexts).',
93
+						useInternalProxy: ' . ($this->conf['useInternalProxy'] ? 1 : 0).'
94 94
 					})
95 95
 				}
96 96
 			}
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
      */
110 110
     protected function addInteraction() {
111 111
 
112
-        $markerArray = array();
112
+        $markerArray = array ();
113 113
 
114 114
         if ($this->piVars['id']) {
115 115
 
@@ -157,14 +157,14 @@  discard block
 block discarded – undo
157 157
      */
158 158
     protected function addBasketForm() {
159 159
 
160
-        $markerArray = array();
160
+        $markerArray = array ();
161 161
 
162 162
         // Add basket button
163 163
         if ($this->conf['basketButton'] && $this->conf['targetBasket'] && $this->piVars['id']) {
164 164
 
165 165
             $label = $this->pi_getLL('addBasket', '', TRUE);
166 166
 
167
-            $params = array(
167
+            $params = array (
168 168
                 'id' => $this->piVars['id'],
169 169
                 'addToBasket' => true
170 170
             );
@@ -344,9 +344,9 @@  discard block
 block discarded – undo
344 344
 
345 345
 			// Set default values if not set.
346 346
 			// $this->piVars['page'] may be integer or string (physical structure @ID)
347
-			if ( (int)$this->piVars['page'] > 0 || empty($this->piVars['page'])) {
347
+			if ((int) $this->piVars['page'] > 0 || empty($this->piVars['page'])) {
348 348
 
349
-				$this->piVars['page'] = \TYPO3\CMS\Core\Utility\MathUtility::forceIntegerInRange((int)$this->piVars['page'], 1, $this->doc->numPages, 1);
349
+				$this->piVars['page'] = \TYPO3\CMS\Core\Utility\MathUtility::forceIntegerInRange((int) $this->piVars['page'], 1, $this->doc->numPages, 1);
350 350
 
351 351
 			} else {
352 352
 
Please login to merge, or discard this patch.
plugins/oai/class.tx_dlf_oai.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -955,7 +955,7 @@  discard block
 block discarded – undo
955 955
 		$result = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
956 956
 			'tx_dlf_documents.tstamp AS tstamp',
957 957
 			'tx_dlf_documents',
958
-			'tx_dlf_documents.pid=' . intval($this->conf['pages']),
958
+			'tx_dlf_documents.pid='.intval($this->conf['pages']),
959 959
 			'',
960 960
 			'tx_dlf_documents.tstamp ASC',
961 961
 			'1'
@@ -970,8 +970,8 @@  discard block
 block discarded – undo
970 970
 
971 971
 			if (TYPO3_DLOG) {
972 972
 
973
-				\TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_oai->verbIdentify()] No records found with PID "' .
974
-						  $this->conf['pages'] . '"', $this->extKey, SYSLOG_SEVERITY_NOTICE);
973
+				\TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_oai->verbIdentify()] No records found with PID "'.
974
+						  $this->conf['pages'].'"', $this->extKey, SYSLOG_SEVERITY_NOTICE);
975 975
 
976 976
 			}
977 977
 
Please login to merge, or discard this patch.
plugins/pagegrid/class.tx_dlf_pagegrid.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -225,9 +225,9 @@
 block discarded – undo
225 225
 
226 226
 		// Set some variable defaults.
227 227
 		// $this->piVars['page'] may be integer or string (physical structure @ID)
228
-		if ( (int)$this->piVars['page'] > 0 || empty($this->piVars['page'])) {
228
+		if ((int) $this->piVars['page'] > 0 || empty($this->piVars['page'])) {
229 229
 
230
-			$this->piVars['page'] = \TYPO3\CMS\Core\Utility\MathUtility::forceIntegerInRange((int)$this->piVars['page'], 1, $this->doc->numPages, 1);
230
+			$this->piVars['page'] = \TYPO3\CMS\Core\Utility\MathUtility::forceIntegerInRange((int) $this->piVars['page'], 1, $this->doc->numPages, 1);
231 231
 
232 232
 		} else {
233 233
 
Please login to merge, or discard this patch.
plugins/toolbox/tools/pdf/class.tx_dlf_toolsPdf.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -51,9 +51,9 @@  discard block
 block discarded – undo
51 51
 
52 52
 			// Set default values if not set.
53 53
 			// $this->piVars['page'] may be integer or string (physical structure @ID)
54
-			if ( (int)$this->piVars['page'] > 0 || empty($this->piVars['page'])) {
54
+			if ((int) $this->piVars['page'] > 0 || empty($this->piVars['page'])) {
55 55
 
56
-				$this->piVars['page'] = \TYPO3\CMS\Core\Utility\MathUtility::forceIntegerInRange((int)$this->piVars['page'], 1, $this->doc->numPages, 1);
56
+				$this->piVars['page'] = \TYPO3\CMS\Core\Utility\MathUtility::forceIntegerInRange((int) $this->piVars['page'], 1, $this->doc->numPages, 1);
57 57
 
58 58
 			} else {
59 59
 
@@ -118,9 +118,9 @@  discard block
 block discarded – undo
118 118
 		}
119 119
 
120 120
 		if (TYPO3_DLOG && empty($page1Link) && empty($page2Link)) {
121
-			\TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_toolsPdf->getPageLink()] ' .
122
-					  'File not found in fileGrp "' .
123
-					  $this->conf['fileGrpDownload'] . '"',
121
+			\TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_toolsPdf->getPageLink()] '.
122
+					  'File not found in fileGrp "'.
123
+					  $this->conf['fileGrpDownload'].'"',
124 124
 					  $this->extKey,
125 125
 					  SYSLOG_SEVERITY_WARNING);
126 126
 		}
@@ -129,18 +129,18 @@  discard block
 block discarded – undo
129 129
 		if (!empty($page1Link)) {
130 130
 			if ($this->piVars['double']) {
131 131
 				$page1Link = $this->cObj->typoLink($this->pi_getLL('leftPage', ''),
132
-					array('parameter' => $page1Link, 'title' => $this->pi_getLL('leftPage', '')));
132
+					array ('parameter' => $page1Link, 'title' => $this->pi_getLL('leftPage', '')));
133 133
 			} else {
134 134
 				$page1Link = $this->cObj->typoLink($this->pi_getLL('singlePage', ''),
135
-					array('parameter' => $page1Link, 'title' => $this->pi_getLL('singlePage', '')));
135
+					array ('parameter' => $page1Link, 'title' => $this->pi_getLL('singlePage', '')));
136 136
 			}
137 137
 		}
138 138
 		if (!empty($page2Link)) {
139 139
 			$page2Link = $this->cObj->typoLink($this->pi_getLL('rightPage', ''),
140
-				array('parameter' => $page2Link, 'title' => $this->pi_getLL('rightPage', '')));
140
+				array ('parameter' => $page2Link, 'title' => $this->pi_getLL('rightPage', '')));
141 141
 		}
142 142
 
143
-		return $page1Link . $page2Link;
143
+		return $page1Link.$page2Link;
144 144
 	}
145 145
 
146 146
 	/**
Please login to merge, or discard this patch.
plugins/toolbox/tools/fulltext/class.tx_dlf_toolsFulltext.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 
52 52
 			// Set default values if not set.
53 53
 			// $this->piVars['page'] may be integer or string (physical structure @ID)
54
-			if ( (int)$this->piVars['page'] > 0 || empty($this->piVars['page'])) {
54
+			if ((int) $this->piVars['page'] > 0 || empty($this->piVars['page'])) {
55 55
 
56 56
 				$this->piVars['page'] = \TYPO3\CMS\Core\Utility\MathUtility::forceIntegerInRange((int) $this->piVars['page'], 1, $this->doc->numPages, 1);
57 57
 
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 					.$this->pi_getLL('fulltext-on', '', TRUE).';fulltext-off:'
85 85
 					.$this->pi_getLL('fulltext-off', '', TRUE).'">&nbsp;</a>';
86 86
 		} else {
87
-			$markerArray['###FULLTEXT_SELECT###'] = '<span class="no-fulltext">' . $this->pi_getLL('fulltext-not-available', '', TRUE) . '</span>';
87
+			$markerArray['###FULLTEXT_SELECT###'] = '<span class="no-fulltext">'.$this->pi_getLL('fulltext-not-available', '', TRUE).'</span>';
88 88
 		}
89 89
 
90 90
 		$content .= $this->cObj->substituteMarkerArray($this->template, $markerArray);
Please login to merge, or discard this patch.
plugins/toolbox/tools/imagedownload/class.tx_dlf_toolsImagedownload.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -50,9 +50,9 @@  discard block
 block discarded – undo
50 50
 
51 51
 			// Set default values if not set.
52 52
 			// $this->piVars['page'] may be integer or string (physical structure @ID)
53
-			if ( (int)$this->piVars['page'] > 0 || empty($this->piVars['page'])) {
53
+			if ((int) $this->piVars['page'] > 0 || empty($this->piVars['page'])) {
54 54
 
55
-				$this->piVars['page'] = \TYPO3\CMS\Core\Utility\MathUtility::forceIntegerInRange((int)$this->piVars['page'], 1, $this->doc->numPages, 1);
55
+				$this->piVars['page'] = \TYPO3\CMS\Core\Utility\MathUtility::forceIntegerInRange((int) $this->piVars['page'], 1, $this->doc->numPages, 1);
56 56
 
57 57
 			} else {
58 58
 
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
 		}
77 77
 
78 78
 		// Get left or single page download.
79
-		$markerArray['###IMAGE_LEFT###'] =  $this->piVars['double'] == 1 ? $this->getImage($this->piVars['page'], $this->pi_getLL('leftPage', '')) : $this->getImage($this->piVars['page'], $this->pi_getLL('singlePage', ''));
79
+		$markerArray['###IMAGE_LEFT###'] = $this->piVars['double'] == 1 ? $this->getImage($this->piVars['page'], $this->pi_getLL('leftPage', '')) : $this->getImage($this->piVars['page'], $this->pi_getLL('singlePage', ''));
80 80
 
81 81
 		// Get right page download.
82 82
 		$markerArray['###IMAGE_RIGHT###'] = $this->piVars['double'] == 1 ? $this->getImage($this->piVars['page'] + 1, $this->pi_getLL('rightPage', '')) : '';
@@ -123,11 +123,11 @@  discard block
 block discarded – undo
123 123
 				}
124 124
 				$linkConf = array (
125 125
 					'parameter' => $image['url'],
126
-					'title' => $label . ' ' . $mimetypeLabel,
126
+					'title' => $label.' '.$mimetypeLabel,
127 127
 					'additionalParams' => '',
128 128
 				);
129 129
 
130
-				$imageLink = $this->cObj->typoLink($label . ' ' . $mimetypeLabel, $linkConf);
130
+				$imageLink = $this->cObj->typoLink($label.' '.$mimetypeLabel, $linkConf);
131 131
 
132 132
 				break;
133 133
 
Please login to merge, or discard this patch.