We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -210,13 +210,13 @@ discard block |
||
| 210 | 210 | |
| 211 | 211 | if ($GLOBALS['TYPO3_DB']->sql_num_rows($resultMail) > 0) { |
| 212 | 212 | |
| 213 | - $mails = array(); |
|
| 213 | + $mails = array (); |
|
| 214 | 214 | |
| 215 | 215 | $mailForm = '<select name="tx_dlf[mail_action]">'; |
| 216 | 216 | |
| 217 | 217 | $mailForm .= '<option value="">'.$this->pi_getLL('chooseMail', '', TRUE).'</option>'; |
| 218 | 218 | |
| 219 | - while($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($resultMail)) { |
|
| 219 | + while ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($resultMail)) { |
|
| 220 | 220 | |
| 221 | 221 | $mails[] = $row; |
| 222 | 222 | |
@@ -255,13 +255,13 @@ discard block |
||
| 255 | 255 | |
| 256 | 256 | if ($GLOBALS['TYPO3_DB']->sql_num_rows($resultPrinter) > 0) { |
| 257 | 257 | |
| 258 | - $printers = array(); |
|
| 258 | + $printers = array (); |
|
| 259 | 259 | |
| 260 | 260 | $printForm = '<select name="tx_dlf[print_action]">'; |
| 261 | 261 | |
| 262 | 262 | $printForm .= '<option value="">'.$this->pi_getLL('choosePrinter', '', TRUE).'</option>'; |
| 263 | 263 | |
| 264 | - while($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($resultPrinter)) { |
|
| 264 | + while ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($resultPrinter)) { |
|
| 265 | 265 | |
| 266 | 266 | $printers[] = $row; |
| 267 | 267 | |
@@ -414,7 +414,7 @@ discard block |
||
| 414 | 414 | |
| 415 | 415 | if ($page != NULL || $_piVars['addToBasket'] == 'list') { |
| 416 | 416 | |
| 417 | - $documentItem = array( |
|
| 417 | + $documentItem = array ( |
|
| 418 | 418 | 'id' => intval($_piVars['id']), |
| 419 | 419 | 'startpage' => intval($_piVars['startpage']), |
| 420 | 420 | 'endpage' => intval($_piVars['endpage']), |
@@ -434,12 +434,12 @@ discard block |
||
| 434 | 434 | |
| 435 | 435 | } else { |
| 436 | 436 | |
| 437 | - $items = array(); |
|
| 437 | + $items = array (); |
|
| 438 | 438 | |
| 439 | 439 | } |
| 440 | 440 | |
| 441 | 441 | // get document instance to load further information |
| 442 | - $document = tx_dlf_document::getInstance($documentItem['id'],0); |
|
| 442 | + $document = tx_dlf_document::getInstance($documentItem['id'], 0); |
|
| 443 | 443 | |
| 444 | 444 | // set endpage for toc and subentry based on logid |
| 445 | 445 | if (($_piVars['addToBasket'] == 'subentry') or ($_piVars['addToBasket'] == 'toc')) { |
@@ -523,7 +523,7 @@ discard block |
||
| 523 | 523 | |
| 524 | 524 | } |
| 525 | 525 | |
| 526 | - $update = array('doc_ids' => json_encode($items)); |
|
| 526 | + $update = array ('doc_ids' => json_encode($items)); |
|
| 527 | 527 | |
| 528 | 528 | $GLOBALS['TYPO3_DB']->exec_UPDATEquery('tx_dlf_basket', 'uid='.intval($basketData['uid']), $update); |
| 529 | 529 | |
@@ -531,7 +531,7 @@ discard block |
||
| 531 | 531 | |
| 532 | 532 | } |
| 533 | 533 | |
| 534 | - return array('basketData' => $basketData, 'jsOutput' => $output); |
|
| 534 | + return array ('basketData' => $basketData, 'jsOutput' => $output); |
|
| 535 | 535 | |
| 536 | 536 | } |
| 537 | 537 | |
@@ -581,11 +581,11 @@ discard block |
||
| 581 | 581 | |
| 582 | 582 | if (empty($items)) { |
| 583 | 583 | |
| 584 | - $update = array('doc_ids' => ''); |
|
| 584 | + $update = array ('doc_ids' => ''); |
|
| 585 | 585 | |
| 586 | 586 | } else { |
| 587 | 587 | |
| 588 | - $update = array('doc_ids' => json_encode($items)); |
|
| 588 | + $update = array ('doc_ids' => json_encode($items)); |
|
| 589 | 589 | |
| 590 | 590 | } |
| 591 | 591 | |
@@ -639,7 +639,7 @@ discard block |
||
| 639 | 639 | public function getDocumentData($id, $data) { |
| 640 | 640 | |
| 641 | 641 | // get document instance to load further information |
| 642 | - $document = tx_dlf_document::getInstance($id,0); |
|
| 642 | + $document = tx_dlf_document::getInstance($id, 0); |
|
| 643 | 643 | |
| 644 | 644 | if ($document) { |
| 645 | 645 | |
@@ -714,7 +714,7 @@ discard block |
||
| 714 | 714 | |
| 715 | 715 | } |
| 716 | 716 | |
| 717 | - return array( |
|
| 717 | + return array ( |
|
| 718 | 718 | 'downloadUrl' => $downloadUrl, |
| 719 | 719 | 'downloadLink' => $downloadLink, |
| 720 | 720 | 'pageNums' => $pageNums, |
@@ -800,7 +800,7 @@ discard block |
||
| 800 | 800 | ->setFrom($from) |
| 801 | 801 | |
| 802 | 802 | // Set the To addresses with an associative array |
| 803 | - ->setTo(array($mailData['mail'] => $mailData['name'])) |
|
| 803 | + ->setTo(array ($mailData['mail'] => $mailData['name'])) |
|
| 804 | 804 | |
| 805 | 805 | ->setBody($body, 'text/html') |
| 806 | 806 | |
@@ -808,7 +808,7 @@ discard block |
||
| 808 | 808 | ; |
| 809 | 809 | |
| 810 | 810 | // protocol |
| 811 | - $insertArray = array( |
|
| 811 | + $insertArray = array ( |
|
| 812 | 812 | 'pid' => $this->conf['pages'], |
| 813 | 813 | 'file_name' => $pdfUrl, |
| 814 | 814 | 'count_pages' => $numberOfPages, |
@@ -908,7 +908,7 @@ discard block |
||
| 908 | 908 | } |
| 909 | 909 | |
| 910 | 910 | // protocol |
| 911 | - $insertArray = array( |
|
| 911 | + $insertArray = array ( |
|
| 912 | 912 | 'pid' => $this->conf['pages'], |
| 913 | 913 | 'file_name' => $pdfUrl, |
| 914 | 914 | 'count_pages' => $numberOfPages, |
@@ -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 | ); |
@@ -352,9 +352,9 @@ discard block |
||
| 352 | 352 | |
| 353 | 353 | // Set default values if not set. |
| 354 | 354 | // $this->piVars['page'] may be integer or string (physical structure @ID) |
| 355 | - if ( (int)$this->piVars['page'] > 0 || empty($this->piVars['page'])) { |
|
| 355 | + if ((int) $this->piVars['page'] > 0 || empty($this->piVars['page'])) { |
|
| 356 | 356 | |
| 357 | - $this->piVars['page'] = \TYPO3\CMS\Core\Utility\MathUtility::forceIntegerInRange((int)$this->piVars['page'], 1, $this->doc->numPages, 1); |
|
| 357 | + $this->piVars['page'] = \TYPO3\CMS\Core\Utility\MathUtility::forceIntegerInRange((int) $this->piVars['page'], 1, $this->doc->numPages, 1); |
|
| 358 | 358 | |
| 359 | 359 | } else { |
| 360 | 360 | |
@@ -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 | |