We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | // check if tx_dlf_metadata.xpath exists anyhow |
65 | 65 | $fieldsInDatabase = $GLOBALS['TYPO3_DB']->admin_get_fields('tx_dlf_metadata'); |
66 | 66 | |
67 | - if (! in_array('xpath', array_keys($fieldsInDatabase))) { |
|
67 | + if (!in_array('xpath', array_keys($fieldsInDatabase))) { |
|
68 | 68 | |
69 | 69 | return $uids; |
70 | 70 | |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | |
142 | 142 | while ($resArray = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($result)) { |
143 | 143 | |
144 | - if($resArray['column_name'] == 'tokenized' |
|
144 | + if ($resArray['column_name'] == 'tokenized' |
|
145 | 145 | || $resArray['column_name'] == 'stored' |
146 | 146 | || $resArray['column_name'] == 'indexed' |
147 | 147 | || $resArray['column_name'] == 'boost' |
@@ -173,7 +173,7 @@ discard block |
||
173 | 173 | // Copy the content of the old tables to the new ones |
174 | 174 | $result = $GLOBALS['TYPO3_DB']->sql_query($sqlQuery); |
175 | 175 | |
176 | - if($result) { |
|
176 | + if ($result) { |
|
177 | 177 | |
178 | 178 | $message = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance( |
179 | 179 | 'TYPO3\\CMS\\Core\\Messaging\\FlashMessage', |
@@ -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 |
@@ -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 |
@@ -9,7 +9,7 @@ |
||
9 | 9 | * LICENSE.txt file that was distributed with this source code. |
10 | 10 | */ |
11 | 11 | |
12 | -if (!defined ('TYPO3_MODE')) { |
|
12 | +if (!defined('TYPO3_MODE')) { |
|
13 | 13 | die ('Access denied.'); |
14 | 14 | } |
15 | 15 |