We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -55,9 +55,9 @@ |
||
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" |
@@ -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)); |
@@ -86,11 +86,11 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
@@ -225,9 +225,9 @@ |
||
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 |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | * LICENSE.txt file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -$EM_CONF[$_EXTKEY] = array( |
|
12 | +$EM_CONF[$_EXTKEY] = array ( |
|
13 | 13 | 'title' => 'Kitodo.Presentation', |
14 | 14 | 'description' => 'Base plugins, modules, services and API of the Digital Library Framework. It is part of the community-based Kitodo Digitization Suite.', |
15 | 15 | 'category' => 'fe', |
@@ -27,14 +27,14 @@ discard block |
||
27 | 27 | 'clearCacheOnLoad' => FALSE, |
28 | 28 | 'lockType' => '', |
29 | 29 | 'version' => '2.1.0', |
30 | - 'constraints' => array( |
|
31 | - 'depends' => array( |
|
30 | + 'constraints' => array ( |
|
31 | + 'depends' => array ( |
|
32 | 32 | 'php' => '5.3.7-', |
33 | 33 | 'typo3' => '6.2.0-7.9.99', |
34 | 34 | ), |
35 | - 'conflicts' => array( |
|
35 | + 'conflicts' => array ( |
|
36 | 36 | ), |
37 | - 'suggests' => array( |
|
37 | + 'suggests' => array ( |
|
38 | 38 | ), |
39 | 39 | ), |
40 | 40 | '_md5_values_when_last_written' => '', |
@@ -1028,7 +1028,7 @@ discard block |
||
1028 | 1028 | |
1029 | 1029 | if ($flashMessage->getTitle() !== '') { |
1030 | 1030 | |
1031 | - $messageContent = sprintf('<h4>%s</h4>', htmlspecialchars($flashMessage->getTitle())) . $messageContent; |
|
1031 | + $messageContent = sprintf('<h4>%s</h4>', htmlspecialchars($flashMessage->getTitle())).$messageContent; |
|
1032 | 1032 | |
1033 | 1033 | } |
1034 | 1034 | |
@@ -1218,7 +1218,7 @@ discard block |
||
1218 | 1218 | // Overlay localized labels if available. |
1219 | 1219 | if ($GLOBALS['TSFE']->sys_language_content > 0) { |
1220 | 1220 | |
1221 | - $resArray = $GLOBALS['TSFE']->sys_page->getRecordOverlay($table, $resArray,$GLOBALS['TSFE']->sys_language_content, $GLOBALS['TSFE']->sys_language_contentOL); |
|
1221 | + $resArray = $GLOBALS['TSFE']->sys_page->getRecordOverlay($table, $resArray, $GLOBALS['TSFE']->sys_language_content, $GLOBALS['TSFE']->sys_language_contentOL); |
|
1222 | 1222 | |
1223 | 1223 | } |
1224 | 1224 |
@@ -105,7 +105,7 @@ |
||
105 | 105 | |
106 | 106 | $this->doc->setModuleTemplate('EXT:'.$this->extKey.'/modules/'.$this->modPath.'template.tmpl'); |
107 | 107 | |
108 | - $this->doc->getPageRenderer()->addCssFile(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($this->extKey) . 'res/backend.css'); |
|
108 | + $this->doc->getPageRenderer()->addCssFile(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($this->extKey).'res/backend.css'); |
|
109 | 109 | |
110 | 110 | $this->doc->backPath = $GLOBALS['BACK_PATH']; |
111 | 111 |
@@ -139,12 +139,12 @@ |
||
139 | 139 | if (preg_match('/^[[:alnum:]]+_[tu][su]i:\(.*\)$/', $query)) { |
140 | 140 | |
141 | 141 | // Get all indexed fields. |
142 | - $fields = array(); |
|
142 | + $fields = array (); |
|
143 | 143 | |
144 | 144 | $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery( |
145 | 145 | 'tx_dlf_metadata.index_name,tx_dlf_metadata.index_tokenized,tx_dlf_metadata.index_stored', |
146 | 146 | 'tx_dlf_metadata', |
147 | - 'tx_dlf_metadata.index_indexed=1 AND tx_dlf_metadata.pid=' . intval($pid) . ' AND (tx_dlf_metadata.sys_language_uid IN (-1,0) OR tx_dlf_metadata.l18n_parent=0)' . tx_dlf_helper::whereClause('tx_dlf_metadata'), |
|
147 | + 'tx_dlf_metadata.index_indexed=1 AND tx_dlf_metadata.pid='.intval($pid).' AND (tx_dlf_metadata.sys_language_uid IN (-1,0) OR tx_dlf_metadata.l18n_parent=0)'.tx_dlf_helper::whereClause('tx_dlf_metadata'), |
|
148 | 148 | '', |
149 | 149 | '', |
150 | 150 | '' |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | $pid = (!empty($this->conf['excludeOther']) ? intval($this->conf['pages']) : 0); |
133 | 133 | |
134 | 134 | // Get instance of tx_dlf_document. |
135 | - $this->doc =& tx_dlf_document::getInstance($this->piVars['id'], $pid); |
|
135 | + $this->doc = & tx_dlf_document::getInstance($this->piVars['id'], $pid); |
|
136 | 136 | |
137 | 137 | if (!$this->doc->ready) { |
138 | 138 | |
@@ -228,7 +228,7 @@ discard block |
||
228 | 228 | |
229 | 229 | foreach ($this->conf['_DEFAULT_PI_VARS.'] as $GPkey => $GPval) { |
230 | 230 | |
231 | - if (strpos($GPkey,'.')) { |
|
231 | + if (strpos($GPkey, '.')) { |
|
232 | 232 | |
233 | 233 | $GPkey = substr($GPkey, 0, -1); |
234 | 234 | |
@@ -246,7 +246,7 @@ discard block |
||
246 | 246 | |
247 | 247 | } |
248 | 248 | |
249 | - $this->piVars = tx_dlf_helper::array_merge_recursive_overrule($this->conf['_DEFAULT_PI_VARS.'], is_array($this->piVars) ? $this->piVars : array()); |
|
249 | + $this->piVars = tx_dlf_helper::array_merge_recursive_overrule($this->conf['_DEFAULT_PI_VARS.'], is_array($this->piVars) ? $this->piVars : array ()); |
|
250 | 250 | |
251 | 251 | } |
252 | 252 |