We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -230,9 +230,9 @@ |
||
230 | 230 | |
231 | 231 | // Set default values for page if not set. |
232 | 232 | // $this->piVars['page'] may be integer or string (physical structure @ID) |
233 | - if ( (int)$this->piVars['page'] > 0 || empty($this->piVars['page'])) { |
|
233 | + if ((int) $this->piVars['page'] > 0 || empty($this->piVars['page'])) { |
|
234 | 234 | |
235 | - $this->piVars['page'] = \TYPO3\CMS\Core\Utility\MathUtility::forceIntegerInRange((int)$this->piVars['page'], 1, $this->doc->numPages, 1); |
|
235 | + $this->piVars['page'] = \TYPO3\CMS\Core\Utility\MathUtility::forceIntegerInRange((int) $this->piVars['page'], 1, $this->doc->numPages, 1); |
|
236 | 236 | |
237 | 237 | } else { |
238 | 238 |
@@ -213,7 +213,7 @@ |
||
213 | 213 | $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery( |
214 | 214 | 'tx_dlf_metadata.index_name AS index_name,tx_dlf_metadata.is_listed AS is_listed,tx_dlf_metadata.wrap AS wrap', |
215 | 215 | 'tx_dlf_metadata', |
216 | - 'tx_dlf_metadata.pid='.intval($this->conf['pages']).tx_dlf_helper::whereClause('tx_dlf_metadata').' AND (sys_language_uid IN (-1,0) OR (sys_language_uid = ' .$GLOBALS['TSFE']->sys_language_uid. ' AND l18n_parent = 0))', |
|
216 | + 'tx_dlf_metadata.pid='.intval($this->conf['pages']).tx_dlf_helper::whereClause('tx_dlf_metadata').' AND (sys_language_uid IN (-1,0) OR (sys_language_uid = '.$GLOBALS['TSFE']->sys_language_uid.' AND l18n_parent = 0))', |
|
217 | 217 | '', |
218 | 218 | 'tx_dlf_metadata.sorting', |
219 | 219 | '' |
@@ -302,13 +302,13 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
@@ -63,11 +63,11 @@ |
||
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)); |
@@ -955,7 +955,7 @@ discard block |
||
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 |
||
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 |
@@ -233,9 +233,9 @@ |
||
233 | 233 | |
234 | 234 | // Set some variable defaults. |
235 | 235 | // $this->piVars['page'] may be integer or string (physical structure @ID) |
236 | - if ( (int)$this->piVars['page'] > 0 || empty($this->piVars['page'])) { |
|
236 | + if ((int) $this->piVars['page'] > 0 || empty($this->piVars['page'])) { |
|
237 | 237 | |
238 | - $this->piVars['page'] = \TYPO3\CMS\Core\Utility\MathUtility::forceIntegerInRange((int)$this->piVars['page'], 1, $this->doc->numPages, 1); |
|
238 | + $this->piVars['page'] = \TYPO3\CMS\Core\Utility\MathUtility::forceIntegerInRange((int) $this->piVars['page'], 1, $this->doc->numPages, 1); |
|
239 | 239 | |
240 | 240 | } else { |
241 | 241 |
@@ -59,9 +59,9 @@ discard block |
||
59 | 59 | |
60 | 60 | // Set default values if not set. |
61 | 61 | // $this->piVars['page'] may be integer or string (physical structure @ID) |
62 | - if ( (int)$this->piVars['page'] > 0 || empty($this->piVars['page'])) { |
|
62 | + if ((int) $this->piVars['page'] > 0 || empty($this->piVars['page'])) { |
|
63 | 63 | |
64 | - $this->piVars['page'] = \TYPO3\CMS\Core\Utility\MathUtility::forceIntegerInRange((int)$this->piVars['page'], 1, $this->doc->numPages, 1); |
|
64 | + $this->piVars['page'] = \TYPO3\CMS\Core\Utility\MathUtility::forceIntegerInRange((int) $this->piVars['page'], 1, $this->doc->numPages, 1); |
|
65 | 65 | |
66 | 66 | } else { |
67 | 67 | |
@@ -126,9 +126,9 @@ discard block |
||
126 | 126 | } |
127 | 127 | |
128 | 128 | if (TYPO3_DLOG && empty($page1Link) && empty($page2Link)) { |
129 | - \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_toolsPdf->getPageLink()] ' . |
|
130 | - 'File not found in fileGrp "' . |
|
131 | - $this->conf['fileGrpDownload'] . '"', |
|
129 | + \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_toolsPdf->getPageLink()] '. |
|
130 | + 'File not found in fileGrp "'. |
|
131 | + $this->conf['fileGrpDownload'].'"', |
|
132 | 132 | $this->extKey, |
133 | 133 | SYSLOG_SEVERITY_WARNING); |
134 | 134 | } |
@@ -137,18 +137,18 @@ discard block |
||
137 | 137 | if (!empty($page1Link)) { |
138 | 138 | if ($this->piVars['double']) { |
139 | 139 | $page1Link = $this->cObj->typoLink($this->pi_getLL('leftPage', ''), |
140 | - array('parameter' => $page1Link, 'title' => $this->pi_getLL('leftPage', ''))); |
|
140 | + array ('parameter' => $page1Link, 'title' => $this->pi_getLL('leftPage', ''))); |
|
141 | 141 | } else { |
142 | 142 | $page1Link = $this->cObj->typoLink($this->pi_getLL('singlePage', ''), |
143 | - array('parameter' => $page1Link, 'title' => $this->pi_getLL('singlePage', ''))); |
|
143 | + array ('parameter' => $page1Link, 'title' => $this->pi_getLL('singlePage', ''))); |
|
144 | 144 | } |
145 | 145 | } |
146 | 146 | if (!empty($page2Link)) { |
147 | 147 | $page2Link = $this->cObj->typoLink($this->pi_getLL('rightPage', ''), |
148 | - array('parameter' => $page2Link, 'title' => $this->pi_getLL('rightPage', ''))); |
|
148 | + array ('parameter' => $page2Link, 'title' => $this->pi_getLL('rightPage', ''))); |
|
149 | 149 | } |
150 | 150 | |
151 | - return $page1Link . $page2Link; |
|
151 | + return $page1Link.$page2Link; |
|
152 | 152 | } |
153 | 153 | |
154 | 154 | /** |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | |
60 | 60 | // Set default values if not set. |
61 | 61 | // $this->piVars['page'] may be integer or string (physical structure @ID) |
62 | - if ( (int)$this->piVars['page'] > 0 || empty($this->piVars['page'])) { |
|
62 | + if ((int) $this->piVars['page'] > 0 || empty($this->piVars['page'])) { |
|
63 | 63 | |
64 | 64 | $this->piVars['page'] = \TYPO3\CMS\Core\Utility\MathUtility::forceIntegerInRange((int) $this->piVars['page'], 1, $this->doc->numPages, 1); |
65 | 65 | |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | .$this->pi_getLL('fulltext-on', '', TRUE).';fulltext-off:' |
93 | 93 | .$this->pi_getLL('fulltext-off', '', TRUE).'"> </a>'; |
94 | 94 | } else { |
95 | - $markerArray['###FULLTEXT_SELECT###'] = '<span class="no-fulltext">' . $this->pi_getLL('fulltext-not-available', '', TRUE) . '</span>'; |
|
95 | + $markerArray['###FULLTEXT_SELECT###'] = '<span class="no-fulltext">'.$this->pi_getLL('fulltext-not-available', '', TRUE).'</span>'; |
|
96 | 96 | } |
97 | 97 | |
98 | 98 | $content .= $this->cObj->substituteMarkerArray($this->template, $markerArray); |
@@ -58,9 +58,9 @@ discard block |
||
58 | 58 | |
59 | 59 | // Set default values if not set. |
60 | 60 | // $this->piVars['page'] may be integer or string (physical structure @ID) |
61 | - if ( (int)$this->piVars['page'] > 0 || empty($this->piVars['page'])) { |
|
61 | + if ((int) $this->piVars['page'] > 0 || empty($this->piVars['page'])) { |
|
62 | 62 | |
63 | - $this->piVars['page'] = \TYPO3\CMS\Core\Utility\MathUtility::forceIntegerInRange((int)$this->piVars['page'], 1, $this->doc->numPages, 1); |
|
63 | + $this->piVars['page'] = \TYPO3\CMS\Core\Utility\MathUtility::forceIntegerInRange((int) $this->piVars['page'], 1, $this->doc->numPages, 1); |
|
64 | 64 | |
65 | 65 | } else { |
66 | 66 | |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | } |
85 | 85 | |
86 | 86 | // Get left or single page download. |
87 | - $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', '')); |
|
87 | + $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', '')); |
|
88 | 88 | |
89 | 89 | // Get right page download. |
90 | 90 | $markerArray['###IMAGE_RIGHT###'] = $this->piVars['double'] == 1 ? $this->getImage($this->piVars['page'] + 1, $this->pi_getLL('rightPage', '')) : ''; |
@@ -131,11 +131,11 @@ discard block |
||
131 | 131 | } |
132 | 132 | $linkConf = array ( |
133 | 133 | 'parameter' => $image['url'], |
134 | - 'title' => $label . ' ' . $mimetypeLabel, |
|
134 | + 'title' => $label.' '.$mimetypeLabel, |
|
135 | 135 | 'additionalParams' => '', |
136 | 136 | ); |
137 | 137 | |
138 | - $imageLink = $this->cObj->typoLink($label . ' ' . $mimetypeLabel, $linkConf); |
|
138 | + $imageLink = $this->cObj->typoLink($label.' '.$mimetypeLabel, $linkConf); |
|
139 | 139 | |
140 | 140 | break; |
141 | 141 |