We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | $this->list->save(); |
163 | 163 | |
164 | 164 | // Save document to database and index. |
165 | - $doc =& tx_dlf_document::getInstance($uid, 0, TRUE); |
|
165 | + $doc = & tx_dlf_document::getInstance($uid, 0, TRUE); |
|
166 | 166 | |
167 | 167 | if ($doc->ready) { |
168 | 168 | |
@@ -219,7 +219,7 @@ discard block |
||
219 | 219 | && \TYPO3\CMS\Core\Utility\GeneralUtility::isValidUrl($this->data['id'])) { |
220 | 220 | |
221 | 221 | // Save document to database and index. |
222 | - $doc =& tx_dlf_document::getInstance($this->data['id'], $this->id, TRUE); |
|
222 | + $doc = & tx_dlf_document::getInstance($this->data['id'], $this->id, TRUE); |
|
223 | 223 | |
224 | 224 | if ($doc->ready) { |
225 | 225 |
@@ -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 |
@@ -572,7 +572,7 @@ discard block |
||
572 | 572 | |
573 | 573 | $details['id'] = $attributes['ID']; |
574 | 574 | |
575 | - $details['dmdId'] = (isset($attributes['DMDID']) ? $attributes['DMDID'] : ''); |
|
575 | + $details['dmdId'] = (isset($attributes['DMDID']) ? $attributes['DMDID'] : ''); |
|
576 | 576 | |
577 | 577 | $details['label'] = (isset($attributes['LABEL']) ? $attributes['LABEL'] : ''); |
578 | 578 | |
@@ -921,7 +921,7 @@ discard block |
||
921 | 921 | */ |
922 | 922 | public function getPhysicalPage($logicalPage) { |
923 | 923 | |
924 | - if(!empty( $this->lastSearchedPhysicalPage['logicalPage']) && $this->lastSearchedPhysicalPage['logicalPage'] == $logicalPage) { |
|
924 | + if (!empty($this->lastSearchedPhysicalPage['logicalPage']) && $this->lastSearchedPhysicalPage['logicalPage'] == $logicalPage) { |
|
925 | 925 | |
926 | 926 | return $this->lastSearchedPhysicalPage['physicalPage']; |
927 | 927 | |
@@ -929,9 +929,9 @@ discard block |
||
929 | 929 | |
930 | 930 | $physicalPage = 0; |
931 | 931 | |
932 | - foreach($this->physicalStructureInfo as $page) { |
|
932 | + foreach ($this->physicalStructureInfo as $page) { |
|
933 | 933 | |
934 | - if(strpos($page['orderlabel'], $logicalPage) !== false){ |
|
934 | + if (strpos($page['orderlabel'], $logicalPage) !== false) { |
|
935 | 935 | |
936 | 936 | $this->lastSearchedPhysicalPage['logicalPage'] = $logicalPage; |
937 | 937 | $this->lastSearchedPhysicalPage['physicalPage'] = $physicalPage; |
@@ -1355,7 +1355,7 @@ discard block |
||
1355 | 1355 | |
1356 | 1356 | if (TYPO3_DLOG) { |
1357 | 1357 | |
1358 | - \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_document->save('.$_pid.', '.$_core.')] Could not identify document/structure type ' . $GLOBALS['TYPO3_DB']->fullQuoteStr($metadata['type'][0], 'tx_dlf_structures'), |
|
1358 | + \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_document->save('.$_pid.', '.$_core.')] Could not identify document/structure type '.$GLOBALS['TYPO3_DB']->fullQuoteStr($metadata['type'][0], 'tx_dlf_structures'), |
|
1359 | 1359 | self::$extKey, SYSLOG_SEVERITY_ERROR); |
1360 | 1360 | |
1361 | 1361 | } |
@@ -1526,7 +1526,7 @@ discard block |
||
1526 | 1526 | |
1527 | 1527 | if ($parentLocation != $this->location) { |
1528 | 1528 | |
1529 | - $parentDoc =& tx_dlf_document::getInstance($parentLocation, $pid); |
|
1529 | + $parentDoc = & tx_dlf_document::getInstance($parentLocation, $pid); |
|
1530 | 1530 | |
1531 | 1531 | if ($parentDoc->ready) { |
1532 | 1532 | |
@@ -2440,7 +2440,7 @@ discard block |
||
2440 | 2440 | $hookObjects = tx_dlf_helper::getHookObjects('common/class.tx_dlf_document.php'); |
2441 | 2441 | |
2442 | 2442 | // Apply hooks. |
2443 | - foreach($hookObjects as $hookObj) { |
|
2443 | + foreach ($hookObjects as $hookObj) { |
|
2444 | 2444 | |
2445 | 2445 | if (method_exists($hookObj, 'construct_postProcessRecordId')) { |
2446 | 2446 |
@@ -931,7 +931,7 @@ |
||
931 | 931 | |
932 | 932 | foreach($this->physicalStructureInfo as $page) { |
933 | 933 | |
934 | - if(strpos($page['orderlabel'], $logicalPage) !== false){ |
|
934 | + if(strpos($page['orderlabel'], $logicalPage) !== false) { |
|
935 | 935 | |
936 | 936 | $this->lastSearchedPhysicalPage['logicalPage'] = $logicalPage; |
937 | 937 | $this->lastSearchedPhysicalPage['physicalPage'] = $physicalPage; |
@@ -931,7 +931,7 @@ |
||
931 | 931 | |
932 | 932 | foreach($this->physicalStructureInfo as $page) { |
933 | 933 | |
934 | - if(strpos($page['orderlabel'], $logicalPage) !== false){ |
|
934 | + if(strpos($page['orderlabel'], $logicalPage) !== FALSE){ |
|
935 | 935 | |
936 | 936 | $this->lastSearchedPhysicalPage['logicalPage'] = $logicalPage; |
937 | 937 | $this->lastSearchedPhysicalPage['physicalPage'] = $physicalPage; |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | * |
89 | 89 | * @return integer 0 on success or 1 on failure |
90 | 90 | */ |
91 | - public static function add(tx_dlf_document &$doc, $core = 0) { |
|
91 | + public static function add(tx_dlf_document & $doc, $core = 0) { |
|
92 | 92 | |
93 | 93 | if (in_array($doc->uid, self::$processedDocs)) { |
94 | 94 | |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | // Handle multi-volume documents. |
102 | 102 | if ($doc->parentId) { |
103 | 103 | |
104 | - $parent =& tx_dlf_document::getInstance($doc->parentId, 0, TRUE); |
|
104 | + $parent = & tx_dlf_document::getInstance($doc->parentId, 0, TRUE); |
|
105 | 105 | |
106 | 106 | if ($parent->ready) { |
107 | 107 | |
@@ -535,7 +535,7 @@ discard block |
||
535 | 535 | * |
536 | 536 | * @return integer 0 on success or 1 on failure |
537 | 537 | */ |
538 | - protected static function processLogical(tx_dlf_document &$doc, array $logicalUnit) { |
|
538 | + protected static function processLogical(tx_dlf_document & $doc, array $logicalUnit) { |
|
539 | 539 | |
540 | 540 | $errors = 0; |
541 | 541 | |
@@ -700,7 +700,7 @@ discard block |
||
700 | 700 | * |
701 | 701 | * @return integer 0 on success or 1 on failure |
702 | 702 | */ |
703 | - protected static function processPhysical(tx_dlf_document &$doc, $page, array $physicalUnit) { |
|
703 | + protected static function processPhysical(tx_dlf_document & $doc, $page, array $physicalUnit) { |
|
704 | 704 | |
705 | 705 | $errors = 0; |
706 | 706 |
@@ -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 | '' |
@@ -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 |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | } |
90 | 90 | |
91 | 91 | // Get the document... |
92 | - $doc =& tx_dlf_document::getInstance($this->cli_args['-doc'][0], $this->cli_args['-pid'][0], TRUE); |
|
92 | + $doc = & tx_dlf_document::getInstance($this->cli_args['-doc'][0], $this->cli_args['-pid'][0], TRUE); |
|
93 | 93 | |
94 | 94 | if ($doc->ready) { |
95 | 95 | |
@@ -170,7 +170,7 @@ discard block |
||
170 | 170 | while ($resArray = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($result)) { |
171 | 171 | |
172 | 172 | // Get the document... |
173 | - $doc =& tx_dlf_document::getInstance($resArray['uid'], $this->cli_args['-pid'][0], TRUE); |
|
173 | + $doc = & tx_dlf_document::getInstance($resArray['uid'], $this->cli_args['-pid'][0], TRUE); |
|
174 | 174 | |
175 | 175 | if ($doc->ready) { |
176 | 176 |