Passed
Branch oai_solr_new_directory_structu... (24cd44)
by Erik
04:51
created
plugins/search/class.tx_dlf_search.php 1 patch
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
         // Get operator options.
199 199
         $operatorOptions = '';
200 200
 
201
-        foreach (array ('AND', 'OR', 'NOT') as $operator) {
201
+        foreach (array('AND', 'OR', 'NOT') as $operator) {
202 202
 
203 203
             $operatorOptions .= '<option class="tx-dlf-search-operator-option tx-dlf-search-operator-'.$operator.'" value="'.$operator.'">'.$this->pi_getLL($operator, '', TRUE).'</option>';
204 204
 
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
 
218 218
         for ($i = 0; $i < $this->conf['extendedSlotCount']; $i++) {
219 219
 
220
-            $markerArray = array (
220
+            $markerArray = array(
221 221
                 '###EXT_SEARCH_OPERATOR###' => '<select class="tx-dlf-search-operator tx-dlf-search-operator-'.$i.'" name="'.$this->prefixId.'[extOperator]['.$i.']">'.$operatorOptions.'</select>',
222 222
                 '###EXT_SEARCH_FIELDSELECTOR###' => '<select class="tx-dlf-search-field tx-dlf-search-field-'.$i.'" name="'.$this->prefixId.'[extField]['.$i.']">'.$fieldSelectorOptions.'</select>',
223 223
                 '###EXT_SEARCH_FIELDQUERY###' => '<input class="tx-dlf-search-query tx-dlf-search-query-'.$i.'" type="text" name="'.$this->prefixId.'[extQuery]['.$i.']" />'
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
         }
262 262
 
263 263
         // Get facets from plugin configuration.
264
-        $facets = array ();
264
+        $facets = array();
265 265
 
266 266
         foreach (\TYPO3\CMS\Core\Utility\GeneralUtility::trimExplode(',', $this->conf['facets'], TRUE) as $facet) {
267 267
 
@@ -270,7 +270,7 @@  discard block
 block discarded – undo
270 270
         }
271 271
 
272 272
         // Render facets menu.
273
-        $TSconfig = array ();
273
+        $TSconfig = array();
274 274
 
275 275
         $TSconfig['special'] = 'userfunction';
276 276
 
@@ -353,7 +353,7 @@  discard block
 block discarded – undo
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') {
@@ -405,7 +405,7 @@  discard block
 block discarded – undo
405 405
                 //remove ($count) for selected facet in template
406 406
                 $entryArray['count'] = FALSE;
407 407
                 //build link to delete selected facet
408
-                $entryArray['_OVERRIDE_HREF'] = $this->pi_linkTP_keepPIvars_url(array ('query' => $search['query'], 'fq' => $search['params']['fq']));
408
+                $entryArray['_OVERRIDE_HREF'] = $this->pi_linkTP_keepPIvars_url(array('query' => $search['query'], 'fq' => $search['params']['fq']));
409 409
                 $entryArray['title'] = sprintf($this->pi_getLL('resetFacet', ''), $entryArray['title']);
410 410
             }
411 411
 
@@ -418,7 +418,7 @@  discard block
 block discarded – undo
418 418
 
419 419
         }
420 420
 
421
-        $entryArray['_OVERRIDE_HREF'] = $this->pi_linkTP_keepPIvars_url(array ('query' => $search['query'], 'fq' => $search['params']['fq']));
421
+        $entryArray['_OVERRIDE_HREF'] = $this->pi_linkTP_keepPIvars_url(array('query' => $search['query'], 'fq' => $search['params']['fq']));
422 422
 
423 423
         return $entryArray;
424 424
 
@@ -490,13 +490,13 @@  discard block
 block discarded – undo
490 490
             }
491 491
 
492 492
             // Configure @action URL for form.
493
-            $linkConf = array (
493
+            $linkConf = array(
494 494
                 'parameter' => $GLOBALS['TSFE']->id,
495 495
                 'forceAbsoluteUrl' => 1
496 496
             );
497 497
 
498 498
             // Fill markers.
499
-            $markerArray = array (
499
+            $markerArray = array(
500 500
                 '###ACTION_URL###' => $this->cObj->typoLink_URL($linkConf),
501 501
                 '###LABEL_QUERY###' => (!empty($search['query']) ? $search['query'] : $this->pi_getLL('label.query')),
502 502
                 '###LABEL_SUBMIT###' => $this->pi_getLL('label.submit'),
@@ -545,9 +545,9 @@  discard block
 block discarded – undo
545 545
             }
546 546
 
547 547
             // Prepare query parameters.
548
-            $params = array ();
548
+            $params = array();
549 549
 
550
-            $matches = array ();
550
+            $matches = array();
551 551
 
552 552
             // Set search query.
553 553
             if ((!empty($this->conf['fulltext']) && !empty($this->piVars['fulltext'])) || preg_match('/fulltext:\((.*)\)/', $this->piVars['query'], $matches)) {
@@ -576,7 +576,7 @@  discard block
 block discarded – undo
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
 
@@ -642,7 +642,7 @@  discard block
 block discarded – undo
642 642
 
643 643
                 $collIds = explode(',', $this->conf['collections']);
644 644
 
645
-                $collIndexNames = array ();
645
+                $collIndexNames = array();
646 646
 
647 647
                 foreach ($collIds as $collId) {
648 648
 
@@ -665,7 +665,7 @@  discard block
 block discarded – undo
665 665
             // Perform search.
666 666
             $results = $solr->search($query);
667 667
 
668
-            $results->metadata = array (
668
+            $results->metadata = array(
669 669
                 'label' => $label,
670 670
                 'description' => '<p class="tx-dlf-search-numHits">'.htmlspecialchars(sprintf($this->pi_getLL('hits', ''), $solr->numberOfHits, count($results))).'</p>',
671 671
                 'thumbnail' => '',
@@ -679,7 +679,7 @@  discard block
 block discarded – undo
679 679
             // Clean output buffer.
680 680
             \TYPO3\CMS\Core\Utility\GeneralUtility::cleanOutputBuffers();
681 681
 
682
-            $additionalParams = array ();
682
+            $additionalParams = array();
683 683
 
684 684
             if (!empty($this->piVars['logicalPage'])) {
685 685
 
@@ -738,12 +738,12 @@  discard block
 block discarded – undo
738 738
 
739 739
         $this->init($conf);
740 740
 
741
-        $menuArray = array ();
741
+        $menuArray = array();
742 742
 
743 743
         // Set default value for facet search.
744
-        $search = array (
744
+        $search = array(
745 745
             'query' => '*',
746
-            'params' => array ()
746
+            'params' => array()
747 747
         );
748 748
 
749 749
         // Extract query and filter from last search.
@@ -772,14 +772,14 @@  discard block
 block discarded – undo
772 772
 
773 773
             }
774 774
 
775
-            return array ();
775
+            return array();
776 776
 
777 777
         }
778 778
 
779 779
         // Set needed parameters for facet search.
780 780
         if (empty($search['params']['fq'])) {
781 781
 
782
-            $search['params']['fq'] = array ();
782
+            $search['params']['fq'] = array();
783 783
 
784 784
         }
785 785
 
@@ -796,7 +796,7 @@  discard block
 block discarded – undo
796 796
         // Process results.
797 797
         foreach ($results->facet_counts->facet_fields as $field => $values) {
798 798
 
799
-            $entryArray = array ();
799
+            $entryArray = array();
800 800
 
801 801
             $entryArray['title'] = htmlspecialchars($this->conf['facets'][$field]);
802 802
 
Please login to merge, or discard this patch.
plugins/search/class.tx_dlf_search_suggest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
      *
33 33
      * @return	void
34 34
      */
35
-    public function main($content = '', $conf = array ()) {
35
+    public function main($content = '', $conf = array()) {
36 36
 
37 37
         if (\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('encrypted') != '' && \TYPO3\CMS\Core\Utility\GeneralUtility::_GP('hashed') != '') {
38 38
 
Please login to merge, or discard this patch.
plugins/newspaper/class.tx_dlf_newspaper.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
         // Process results.
90 90
         while ($resArray = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($result)) {
91 91
 
92
-            $issues[] = array (
92
+            $issues[] = array(
93 93
                 'uid' => $resArray['uid'],
94 94
                 'title' => $resArray['title'],
95 95
                 'year' => $resArray['year']
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
         }
99 99
 
100 100
         // 	We need an array of issues with month number as key.
101
-        $calendarIssues = array ();
101
+        $calendarIssues = array();
102 102
 
103 103
         foreach ($issues as $issue) {
104 104
 
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
 
107 107
         }
108 108
 
109
-        $allIssues = array ();
109
+        $allIssues = array();
110 110
 
111 111
         // Get subpart templates.
112 112
         $subparts['list'] = $this->cObj->getSubpart($this->template, '###ISSUELIST###');
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
 
123 123
         for ($i = 0; $i <= 11; $i++) {
124 124
 
125
-            $markerArray = array (
125
+            $markerArray = array(
126 126
                 '###DAYMON_NAME###' => strftime('%a', strtotime('last Monday')),
127 127
                 '###DAYTUE_NAME###' => strftime('%a', strtotime('last Tuesday')),
128 128
                 '###DAYWED_NAME###' => strftime('%a', strtotime('last Wednesday')),
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
 
146 146
                 $firstDayOfWeek = strtotime('+ '.$j.' Week', $firstOfMonthStart);
147 147
 
148
-                $weekArray = array (
148
+                $weekArray = array(
149 149
                     '###DAYMON###' => '&nbsp;',
150 150
                     '###DAYTUE###' => '&nbsp;',
151 151
                     '###DAYWED###' => '&nbsp;',
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
 
165 165
                         $dayLinks = '';
166 166
 
167
-                        $dayLinksText = array ();
167
+                        $dayLinksText = array();
168 168
 
169 169
                         $dayLinksList = '';
170 170
 
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
 
183 183
                                         $dayLinkLabel = empty($issue['title']) ? strftime('%x', $currentDayTime) : $issue['title'];
184 184
 
185
-                                        $linkConf = array (
185
+                                        $linkConf = array(
186 186
                                             'useCacheHash' => 1,
187 187
                                             'parameter' => $this->conf['targetPid'],
188 188
                                             'additionalParams' => '&'.$this->prefixId.'[id]='.urlencode($issue['uid']),
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
         }
258 258
 
259 259
         // Link to years overview
260
-        $linkConf = array (
260
+        $linkConf = array(
261 261
             'useCacheHash' => 1,
262 262
             'parameter' => $this->conf['targetPid'],
263 263
             'additionalParams' => '&'.$this->prefixId.'[id]='.urlencode($this->doc->parentId),
@@ -266,7 +266,7 @@  discard block
 block discarded – undo
266 266
         $allYearsLink = $this->cObj->typoLink($this->pi_getLL('allYears', '', TRUE).' '.$this->doc->getTitle($this->doc->parentId), $linkConf);
267 267
 
268 268
         // Link to current year.
269
-        $linkConf = array (
269
+        $linkConf = array(
270 270
             'useCacheHash' => 1,
271 271
             'parameter' => $this->conf['targetPid'],
272 272
             'additionalParams' => '&'.$this->prefixId.'[id]='.urlencode($this->doc->uid),
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
 
304 304
         }
305 305
 
306
-        $markerArray = array (
306
+        $markerArray = array(
307 307
             '###CALENDARVIEWACTIVE###' => $listViewActive ? '' : 'active',
308 308
             '###LISTVIEWACTIVE###' => $listViewActive ? 'active' : '',
309 309
             '###CALYEAR###' => $yearLink,
@@ -372,7 +372,7 @@  discard block
 block discarded – undo
372 372
         // Process results.
373 373
         while ($resArray = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($result)) {
374 374
 
375
-            $years[] = array (
375
+            $years[] = array(
376 376
                 'title' => $resArray['title'],
377 377
                 'uid' => $resArray['uid']
378 378
             );
@@ -385,14 +385,14 @@  discard block
 block discarded – undo
385 385
 
386 386
             foreach ($years as $id => $year) {
387 387
 
388
-                $linkConf = array (
388
+                $linkConf = array(
389 389
                     'useCacheHash' => 1,
390 390
                     'parameter' => $this->conf['targetPid'],
391 391
                     'additionalParams' => '&'.$this->prefixId.'[id]='.urlencode($year['uid']),
392 392
                     'title' => $titleAnchor.': '.$year['title']
393 393
                 );
394 394
 
395
-                $yearArray = array (
395
+                $yearArray = array(
396 396
                     '###YEARNAME###' => $this->cObj->typoLink($year['title'], $linkConf),
397 397
                 );
398 398
 
@@ -402,7 +402,7 @@  discard block
 block discarded – undo
402 402
         }
403 403
 
404 404
         // link to years overview (should be itself here)
405
-        $linkConf = array (
405
+        $linkConf = array(
406 406
             'useCacheHash' => 1,
407 407
             'parameter' => $this->conf['targetPid'],
408 408
             'additionalParams' => '&'.$this->prefixId.'[id]='.$this->doc->uid,
@@ -410,7 +410,7 @@  discard block
 block discarded – undo
410 410
         $allYearsLink = $this->cObj->typoLink($this->pi_getLL('allYears', '', TRUE).' '.$this->doc->getTitle($this->doc->uid), $linkConf);
411 411
 
412 412
         // Fill markers.
413
-        $markerArray = array (
413
+        $markerArray = array(
414 414
             '###LABEL_CHOOSE_YEAR###' => $this->pi_getLL('label.please_choose_year'),
415 415
             '###CALALLYEARS###' => $allYearsLink
416 416
         );
Please login to merge, or discard this patch.
plugins/pagegrid/class.tx_dlf_pagegrid.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 
78 78
         $piVars['page'] = $number;
79 79
 
80
-        $linkConf = array (
80
+        $linkConf = array(
81 81
             'useCacheHash' => 1,
82 82
             'parameter' => $this->conf['targetPid'],
83 83
             'additionalParams' => \TYPO3\CMS\Core\Utility\GeneralUtility::implodeArrayForUrl($this->prefixId, $piVars, '', TRUE, FALSE),
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
         // Add link to previous page.
116 116
         if ($this->piVars['pointer'] > 0) {
117 117
 
118
-            $output = $this->pi_linkTP_keepPIvars($this->pi_getLL('prevPage', '&lt;', TRUE), array ('pointer' => $this->piVars['pointer'] - 1, 'page' => (($this->piVars['pointer'] - 1) * $this->conf['limit']) + 1), TRUE).$separator;
118
+            $output = $this->pi_linkTP_keepPIvars($this->pi_getLL('prevPage', '&lt;', TRUE), array('pointer' => $this->piVars['pointer'] - 1, 'page' => (($this->piVars['pointer'] - 1) * $this->conf['limit']) + 1), TRUE).$separator;
119 119
 
120 120
         } else {
121 121
 
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
 
133 133
                 if ($this->piVars['pointer'] != $i) {
134 134
 
135
-                    $output .= $this->pi_linkTP_keepPIvars(sprintf($this->pi_getLL('page', '%d', TRUE), $i + 1), array ('pointer' => $i, 'page' => ($i * $this->conf['limit']) + 1), TRUE).$separator;
135
+                    $output .= $this->pi_linkTP_keepPIvars(sprintf($this->pi_getLL('page', '%d', TRUE), $i + 1), array('pointer' => $i, 'page' => ($i * $this->conf['limit']) + 1), TRUE).$separator;
136 136
 
137 137
                 } else {
138 138
 
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
         // Add link to next page.
158 158
         if ($this->piVars['pointer'] < $maxPages - 1) {
159 159
 
160
-            $output .= $this->pi_linkTP_keepPIvars($this->pi_getLL('nextPage', '&gt;', TRUE), array ('pointer' => $this->piVars['pointer'] + 1, 'page' => ($this->piVars['pointer'] + 1) * $this->conf['limit'] + 1), TRUE);
160
+            $output .= $this->pi_linkTP_keepPIvars($this->pi_getLL('nextPage', '&gt;', TRUE), array('pointer' => $this->piVars['pointer'] + 1, 'page' => ($this->piVars['pointer'] + 1) * $this->conf['limit'] + 1), TRUE);
161 161
 
162 162
         } else {
163 163
 
Please login to merge, or discard this patch.
plugins/oai/class.tx_dlf_oai.php 1 patch
Spacing   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -43,21 +43,21 @@  discard block
 block discarded – undo
43 43
 	 * @var	array
44 44
 	 * @access protected
45 45
 	 */
46
-	protected $formats = array (
47
-		'oai_dc' => array (
46
+	protected $formats = array(
47
+		'oai_dc' => array(
48 48
 			'schema' => 'http://www.openarchives.org/OAI/2.0/oai_dc.xsd',
49 49
 			'namespace' => 'http://www.openarchives.org/OAI/2.0/oai_dc/',
50
-			'requiredFields' => array ('record_id'),
50
+			'requiredFields' => array('record_id'),
51 51
 		),
52
-		'epicur' => array (
52
+		'epicur' => array(
53 53
 			'schema' => 'http://www.persistent-identifier.de/xepicur/version1.0/xepicur.xsd',
54 54
 			'namespace' => 'urn:nbn:de:1111-2004033116',
55
-			'requiredFields' => array ('purl', 'urn'),
55
+			'requiredFields' => array('purl', 'urn'),
56 56
 		),
57
-		'mets' => array (
57
+		'mets' => array(
58 58
 			'schema' => 'http://www.loc.gov/standards/mets/version17/mets.v1-7.xsd',
59 59
 			'namespace' => 'http://www.loc.gov/METS/',
60
-			'requiredFields' => array ('location'),
60
+			'requiredFields' => array('location'),
61 61
 		)
62 62
 	);
63 63
 
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 
79 79
 		if ($GLOBALS['TYPO3_DB']->sql_affected_rows() === -1) {
80 80
 			// Deletion failed.
81
-			$this->devLog('[tx_dlf_oai->deleteExpiredTokens()] Could not delete expired resumption tokens',SYSLOG_SEVERITY_WARNING);
81
+			$this->devLog('[tx_dlf_oai->deleteExpiredTokens()] Could not delete expired resumption tokens', SYSLOG_SEVERITY_WARNING);
82 82
 		}
83 83
 	}
84 84
 
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
 	 */
110 110
 	protected function getUrlParams() {
111 111
 
112
-		$allowedParams = array (
112
+		$allowedParams = array(
113 113
 			'verb',
114 114
 			'identifier',
115 115
 			'metadataPrefix',
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
 		);
121 121
 
122 122
 		// Clear plugin variables.
123
-		$this->piVars = array ();
123
+		$this->piVars = array();
124 124
 
125 125
 		// Set only allowed parameters.
126 126
 		foreach ($allowedParams as $param) {
@@ -422,7 +422,7 @@  discard block
 block discarded – undo
422 422
 		}
423 423
 
424 424
 		// Add request.
425
-		$linkConf = array (
425
+		$linkConf = array(
426 426
 			'parameter' => $GLOBALS['TSFE']->id,
427 427
 			'forceAbsoluteUrl' => 1
428 428
 		);
@@ -631,7 +631,7 @@  discard block
 block discarded – undo
631 631
 		$result = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
632 632
 			'tx_dlf_documents.tstamp AS tstamp',
633 633
 			'tx_dlf_documents',
634
-			'tx_dlf_documents.pid=' . intval($this->conf['pages']),
634
+			'tx_dlf_documents.pid='.intval($this->conf['pages']),
635 635
 			'',
636 636
 			'tx_dlf_documents.tstamp ASC',
637 637
 			'1'
@@ -641,10 +641,10 @@  discard block
 block discarded – undo
641 641
 			list ($timestamp) = $GLOBALS['TYPO3_DB']->sql_fetch_row($result);
642 642
 			$earliestDatestamp = gmdate('Y-m-d\TH:i:s\Z', $timestamp);
643 643
 		} else {
644
-			$this->devLog('[tx_dlf_oai->verbIdentify()] No records found with PID "' . $this->conf['pages'] . '"',SYSLOG_SEVERITY_NOTICE);
644
+			$this->devLog('[tx_dlf_oai->verbIdentify()] No records found with PID "'.$this->conf['pages'].'"', SYSLOG_SEVERITY_NOTICE);
645 645
 		}
646 646
 
647
-		$linkConf = array (
647
+		$linkConf = array(
648 648
 			'parameter' => $GLOBALS['TSFE']->id,
649 649
 			'forceAbsoluteUrl' => 1
650 650
 		);
@@ -653,12 +653,12 @@  discard block
 block discarded – undo
653 653
 		// Add identification node.
654 654
 		$Identify = $this->oai->createElementNS('http://www.openarchives.org/OAI/2.0/', 'Identify');
655 655
 		$Identify->appendChild($this->oai->createElementNS('http://www.openarchives.org/OAI/2.0/', 'repositoryName', $repositoryName));
656
-		$Identify->appendChild($this->oai->createElementNS('http://www.openarchives.org/OAI/2.0/','baseURL', $baseURL));
657
-		$Identify->appendChild($this->oai->createElementNS('http://www.openarchives.org/OAI/2.0/','protocolVersion', '2.0'));
658
-		$Identify->appendChild($this->oai->createElementNS('http://www.openarchives.org/OAI/2.0/','adminEmail', $adminEmail));
659
-		$Identify->appendChild($this->oai->createElementNS('http://www.openarchives.org/OAI/2.0/','earliestDatestamp', $earliestDatestamp));
660
-		$Identify->appendChild($this->oai->createElementNS('http://www.openarchives.org/OAI/2.0/','deletedRecord', 'transient'));
661
-		$Identify->appendChild($this->oai->createElementNS('http://www.openarchives.org/OAI/2.0/','granularity', 'YYYY-MM-DDThh:mm:ssZ'));
656
+		$Identify->appendChild($this->oai->createElementNS('http://www.openarchives.org/OAI/2.0/', 'baseURL', $baseURL));
657
+		$Identify->appendChild($this->oai->createElementNS('http://www.openarchives.org/OAI/2.0/', 'protocolVersion', '2.0'));
658
+		$Identify->appendChild($this->oai->createElementNS('http://www.openarchives.org/OAI/2.0/', 'adminEmail', $adminEmail));
659
+		$Identify->appendChild($this->oai->createElementNS('http://www.openarchives.org/OAI/2.0/', 'earliestDatestamp', $earliestDatestamp));
660
+		$Identify->appendChild($this->oai->createElementNS('http://www.openarchives.org/OAI/2.0/', 'deletedRecord', 'transient'));
661
+		$Identify->appendChild($this->oai->createElementNS('http://www.openarchives.org/OAI/2.0/', 'granularity', 'YYYY-MM-DDThh:mm:ssZ'));
662 662
 
663 663
 		return $Identify;
664 664
 	}
@@ -701,7 +701,7 @@  discard block
 block discarded – undo
701 701
 
702 702
 		$resultSet->reset();
703 703
 		$resultSet->add($documentSet);
704
-		$resultSet->metadata = array (
704
+		$resultSet->metadata = array(
705 705
 			'completeListSize' => count($documentSet),
706 706
 			'metadataPrefix' => $this->piVars['metadataPrefix'],
707 707
 		);
@@ -719,7 +719,7 @@  discard block
 block discarded – undo
719 719
 	 */
720 720
 	protected function verbListMetadataFormats() {
721 721
 
722
-		$resArray = array ();
722
+		$resArray = array();
723 723
 
724 724
 		// Check for invalid arguments.
725 725
 		if (count($this->piVars) > 1) {
@@ -810,7 +810,7 @@  discard block
 block discarded – undo
810 810
 
811 811
 		$resultSet->reset();
812 812
 		$resultSet->add($documentSet);
813
-		$resultSet->metadata = array (
813
+		$resultSet->metadata = array(
814 814
 			'completeListSize' => count($documentSet),
815 815
 			'metadataPrefix' => $this->piVars['metadataPrefix'],
816 816
 		);
@@ -892,8 +892,8 @@  discard block
 block discarded – undo
892 892
 			$result = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
893 893
 				'tx_dlf_collections.index_name AS index_name, tx_dlf_collections.uid AS uid, tx_dlf_collections.index_search as index_query ',
894 894
 				'tx_dlf_collections',
895
-				'tx_dlf_collections.pid=' . intval($this->conf['pages']) . ' AND tx_dlf_collections.oai_name=' . $GLOBALS['TYPO3_DB']->fullQuoteStr($this->piVars['set'],
896
-					'tx_dlf_collections') . $where . tx_dlf_helper::whereClause('tx_dlf_collections'),
895
+				'tx_dlf_collections.pid='.intval($this->conf['pages']).' AND tx_dlf_collections.oai_name='.$GLOBALS['TYPO3_DB']->fullQuoteStr($this->piVars['set'],
896
+					'tx_dlf_collections').$where.tx_dlf_helper::whereClause('tx_dlf_collections'),
897 897
 				'',
898 898
 				'',
899 899
 				'1'
@@ -905,10 +905,10 @@  discard block
 block discarded – undo
905 905
 
906 906
 			$resArray = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($result);
907 907
 
908
-			if($resArray['index_query'] != "") {
909
-				$solr_query .= '(' . $resArray['index_query'] . ')';
908
+			if ($resArray['index_query'] != "") {
909
+				$solr_query .= '('.$resArray['index_query'].')';
910 910
 			} else {
911
-				$solr_query .= 'collection:' . '"' . $resArray['index_name'] . '"';
911
+				$solr_query .= 'collection:'.'"'.$resArray['index_name'].'"';
912 912
 			}
913 913
 
914 914
 		} else {
@@ -919,7 +919,7 @@  discard block
 block discarded – undo
919 919
 
920 920
 		// Check for required fields.
921 921
 		foreach ($this->formats[$this->piVars['metadataPrefix']]['requiredFields'] as $required) {
922
-			$solr_query .= ' NOT ' . $required . ':""';
922
+			$solr_query .= ' NOT '.$required.':""';
923 923
 		}
924 924
 
925 925
 		$from = "*";
@@ -933,7 +933,7 @@  discard block
 block discarded – undo
933 933
 				$timestamp = gmmktime($date_array['tm_hour'], $date_array['tm_min'], $date_array['tm_sec'], $date_array['tm_mon'] + 1,
934 934
 					$date_array['tm_mday'], $date_array['tm_year'] + 1900);
935 935
 
936
-			   $from = date("Y-m-d", $timestamp) . 'T' . date("H:i:s", $timestamp) .'.000Z';
936
+			   $from = date("Y-m-d", $timestamp).'T'.date("H:i:s", $timestamp).'.000Z';
937 937
 
938 938
 			} else {
939 939
 				throw new Exception('badArgument');
@@ -951,7 +951,7 @@  discard block
 block discarded – undo
951 951
 				$timestamp = gmmktime($date_array['tm_hour'], $date_array['tm_min'], $date_array['tm_sec'], $date_array['tm_mon'] + 1,
952 952
 					$date_array['tm_mday'], $date_array['tm_year'] + 1900);
953 953
 
954
-				$until = date("Y-m-d", $timestamp) . 'T' . date("H:i:s", $timestamp) . '.999Z';
954
+				$until = date("Y-m-d", $timestamp).'T'.date("H:i:s", $timestamp).'.999Z';
955 955
 
956 956
 				if ($from != "*" && $from > $until) {
957 957
 					throw new Exception('badArgument');
@@ -969,7 +969,7 @@  discard block
 block discarded – undo
969 969
 			}
970 970
 		}
971 971
 
972
-		$solr_query .= ' AND timestamp:[' . $from . ' TO ' . $until .']';
972
+		$solr_query .= ' AND timestamp:['.$from.' TO '.$until.']';
973 973
 
974 974
 		$documentSet = array();
975 975
 
@@ -1005,7 +1005,7 @@  discard block
 block discarded – undo
1005 1005
 			'tx_dlf_documents',
1006 1006
 			'tx_dlf_relations',
1007 1007
 			'tx_dlf_collections',
1008
-			'AND tx_dlf_documents.uid IN (' . implode(',', $GLOBALS['TYPO3_DB']->cleanIntArray($documentsToProcess)) . ') AND tx_dlf_documents.pid=' . intval($this->conf['pages']) . ' AND tx_dlf_collections.pid=' . intval($this->conf['pages']) . ' AND tx_dlf_relations.ident=' . $GLOBALS['TYPO3_DB']->fullQuoteStr('docs_colls', 'tx_dlf_relations') . tx_dlf_helper::whereClause('tx_dlf_collections'),
1008
+			'AND tx_dlf_documents.uid IN ('.implode(',', $GLOBALS['TYPO3_DB']->cleanIntArray($documentsToProcess)).') AND tx_dlf_documents.pid='.intval($this->conf['pages']).' AND tx_dlf_collections.pid='.intval($this->conf['pages']).' AND tx_dlf_relations.ident='.$GLOBALS['TYPO3_DB']->fullQuoteStr('docs_colls', 'tx_dlf_relations').tx_dlf_helper::whereClause('tx_dlf_collections'),
1009 1009
 			'tx_dlf_documents.uid',
1010 1010
 			'tx_dlf_documents.tstamp',
1011 1011
 			$this->conf['limit']
@@ -1053,7 +1053,7 @@  discard block
 block discarded – undo
1053 1053
 					$metadata = $this->oai->createElementNS('http://www.openarchives.org/OAI/2.0/', 'metadata');
1054 1054
 
1055 1055
 					$metadataPrefix = $this->piVars['metadataPrefix'];
1056
-					if(!$metadataPrefix) {
1056
+					if (!$metadataPrefix) {
1057 1057
 						// If we resume an action the metadataPrefix is stored with the documentSet
1058 1058
 						$metadataPrefix = $documentListSet->metadata['metadataPrefix'];
1059 1059
 					}
@@ -1108,15 +1108,15 @@  discard block
 block discarded – undo
1108 1108
 				)
1109 1109
 			);
1110 1110
 
1111
-			if($GLOBALS['TYPO3_DB']->sql_affected_rows() == 1) {
1111
+			if ($GLOBALS['TYPO3_DB']->sql_affected_rows() == 1) {
1112 1112
 				$resumptionToken->setAttribute('resumptionToken', htmlspecialchars($token, ENT_NOQUOTES, 'UTF-8'));
1113 1113
 			} else {
1114
-				$this->devLog('[tx_dlf_oai->verb'. $this->piVars['verb'] .'()] Could not create resumption token', SYSLOG_SEVERITY_ERROR);
1114
+				$this->devLog('[tx_dlf_oai->verb'.$this->piVars['verb'].'()] Could not create resumption token', SYSLOG_SEVERITY_ERROR);
1115 1115
 			}
1116 1116
 		}
1117 1117
 
1118 1118
 		$resumptionToken->setAttribute('cursor', intval($documentListSet->metadata['completeListSize']) - count($documentListSet));
1119
-		$resumptionToken->setAttribute('completeListSize',	$documentListSet->metadata['completeListSize']);
1119
+		$resumptionToken->setAttribute('completeListSize', $documentListSet->metadata['completeListSize']);
1120 1120
 		$resumptionToken->setAttribute('expirationDate', gmdate('Y-m-d\TH:i:s\Z', $GLOBALS['EXEC_TIME'] + $this->conf['expired']));
1121 1121
 
1122 1122
 		return $resumptionToken;
@@ -1130,7 +1130,7 @@  discard block
 block discarded – undo
1130 1130
 
1131 1131
 }
1132 1132
 
1133
-if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/dlf/plugins/oai/class.tx_dlf_oai.php'])	{
1133
+if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/dlf/plugins/oai/class.tx_dlf_oai.php']) {
1134 1134
 	include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/dlf/plugins/oai/class.tx_dlf_oai.php']);
1135 1135
 
1136 1136
 }
Please login to merge, or discard this patch.
plugins/basket/class.tx_dlf_basket.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
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
 
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
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
 
@@ -298,7 +298,7 @@  discard block
 block discarded – undo
298 298
 
299 299
             $label = $this->pi_getLL('goBasket', '', TRUE);
300 300
 
301
-            $basketConf = array (
301
+            $basketConf = array(
302 302
                 'parameter' => $this->conf['targetBasket'],
303 303
                 'title' => $label
304 304
             );
@@ -414,7 +414,7 @@  discard block
 block discarded – undo
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,7 +434,7 @@  discard block
 block discarded – undo
434 434
 
435 435
             } else {
436 436
 
437
-                $items = array ();
437
+                $items = array();
438 438
 
439 439
             }
440 440
 
@@ -523,7 +523,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
@@ -714,7 +714,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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,
Please login to merge, or discard this patch.
plugins/navigation/class.tx_dlf_navigation.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
             if (count($list) > 0) {
39 39
 
40 40
                 // Build typolink configuration array.
41
-                $conf = array (
41
+                $conf = array(
42 42
                     'useCacheHash' => 1,
43 43
                     'parameter' => $this->conf['targetPid'],
44 44
                     'title' => $this->pi_getLL('linkToList', '', TRUE)
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
     protected function getPageSelector() {
65 65
 
66 66
         // Configure @action URL for form.
67
-        $linkConf = array (
67
+        $linkConf = array(
68 68
             'parameter' => $GLOBALS['TSFE']->id,
69 69
             'forceAbsoluteUrl' => 1
70 70
         );
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
         // Link to first page.
179 179
         if ($this->piVars['page'] > 1) {
180 180
 
181
-            $markerArray['###FIRST###'] = $this->makeLink($this->pi_getLL('firstPage', '', TRUE), array ('page' => 1));
181
+            $markerArray['###FIRST###'] = $this->makeLink($this->pi_getLL('firstPage', '', TRUE), array('page' => 1));
182 182
 
183 183
         } else {
184 184
 
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
         // Link back X pages.
190 190
         if ($this->piVars['page'] > $pageSteps) {
191 191
 
192
-            $markerArray['###BACK###'] = $this->makeLink(sprintf($this->pi_getLL('backXPages', '', TRUE), $pageSteps), array ('page' => $this->piVars['page'] - $pageSteps));
192
+            $markerArray['###BACK###'] = $this->makeLink(sprintf($this->pi_getLL('backXPages', '', TRUE), $pageSteps), array('page' => $this->piVars['page'] - $pageSteps));
193 193
 
194 194
         } else {
195 195
 
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
         // Link to previous page.
201 201
         if ($this->piVars['page'] > (1 + $this->piVars['double'])) {
202 202
 
203
-            $markerArray['###PREVIOUS###'] = $this->makeLink($this->pi_getLL('prevPage', '', TRUE), array ('page' => $this->piVars['page'] - (1 + $this->piVars['double'])));
203
+            $markerArray['###PREVIOUS###'] = $this->makeLink($this->pi_getLL('prevPage', '', TRUE), array('page' => $this->piVars['page'] - (1 + $this->piVars['double'])));
204 204
 
205 205
         } else {
206 206
 
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
         // Link to next page.
212 212
         if ($this->piVars['page'] < ($this->doc->numPages - $this->piVars['double'])) {
213 213
 
214
-            $markerArray['###NEXT###'] = $this->makeLink($this->pi_getLL('nextPage', '', TRUE), array ('page' => $this->piVars['page'] + (1 + $this->piVars['double'])));
214
+            $markerArray['###NEXT###'] = $this->makeLink($this->pi_getLL('nextPage', '', TRUE), array('page' => $this->piVars['page'] + (1 + $this->piVars['double'])));
215 215
 
216 216
         } else {
217 217
 
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
         // Link forward X pages.
223 223
         if ($this->piVars['page'] <= ($this->doc->numPages - $pageSteps)) {
224 224
 
225
-            $markerArray['###FORWARD###'] = $this->makeLink(sprintf($this->pi_getLL('forwardXPages', '', TRUE), $pageSteps), array ('page' => $this->piVars['page'] + $pageSteps));
225
+            $markerArray['###FORWARD###'] = $this->makeLink(sprintf($this->pi_getLL('forwardXPages', '', TRUE), $pageSteps), array('page' => $this->piVars['page'] + $pageSteps));
226 226
 
227 227
         } else {
228 228
 
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
         // Link to last page.
234 234
         if ($this->piVars['page'] < $this->doc->numPages) {
235 235
 
236
-            $markerArray['###LAST###'] = $this->makeLink($this->pi_getLL('lastPage', '', TRUE), array ('page' => $this->doc->numPages));
236
+            $markerArray['###LAST###'] = $this->makeLink($this->pi_getLL('lastPage', '', TRUE), array('page' => $this->doc->numPages));
237 237
 
238 238
         } else {
239 239
 
@@ -246,17 +246,17 @@  discard block
 block discarded – undo
246 246
 
247 247
             if (!$this->piVars['double']) {
248 248
 
249
-                $markerArray['###DOUBLEPAGE###'] = $this->makeLink($this->pi_getLL('doublePageOn', '', TRUE), array ('double' => 1), 'class="tx-dlf-navigation-doubleOn"');
249
+                $markerArray['###DOUBLEPAGE###'] = $this->makeLink($this->pi_getLL('doublePageOn', '', TRUE), array('double' => 1), 'class="tx-dlf-navigation-doubleOn"');
250 250
 
251 251
             } else {
252 252
 
253
-                $markerArray['###DOUBLEPAGE###'] = $this->makeLink($this->pi_getLL('doublePageOff', '', TRUE), array ('double' => 0), 'class="tx-dlf-navigation-doubleOff"');
253
+                $markerArray['###DOUBLEPAGE###'] = $this->makeLink($this->pi_getLL('doublePageOff', '', TRUE), array('double' => 0), 'class="tx-dlf-navigation-doubleOff"');
254 254
 
255 255
             }
256 256
 
257 257
             if ($this->piVars['double'] && $this->piVars['page'] < $this->doc->numPages) {
258 258
 
259
-                $markerArray['###DOUBLEPAGE+1###'] = $this->makeLink($this->pi_getLL('doublePage+1', '', TRUE), array ('page' => $this->piVars['page'] + 1));
259
+                $markerArray['###DOUBLEPAGE+1###'] = $this->makeLink($this->pi_getLL('doublePage+1', '', TRUE), array('page' => $this->piVars['page'] + 1));
260 260
 
261 261
             } else {
262 262
 
@@ -304,7 +304,7 @@  discard block
 block discarded – undo
304 304
      *
305 305
      * @return	string		Typolink ready to output
306 306
      */
307
-    protected function makeLink($label, array $overrulePIvars = array (), $aTagParams = '') {
307
+    protected function makeLink($label, array $overrulePIvars = array(), $aTagParams = '') {
308 308
 
309 309
         // Merge plugin variables with new set of values.
310 310
         if (is_array($this->piVars)) {
@@ -318,7 +318,7 @@  discard block
 block discarded – undo
318 318
         }
319 319
 
320 320
         // Build typolink configuration array.
321
-        $conf = array (
321
+        $conf = array(
322 322
             'useCacheHash' => 1,
323 323
             'parameter' => $GLOBALS['TSFE']->id,
324 324
             'ATagParams' => $aTagParams,
Please login to merge, or discard this patch.
plugins/listview/class.tx_dlf_listview.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
      * @var	array
37 37
      * @access	protected
38 38
      */
39
-    protected $metadata = array ();
39
+    protected $metadata = array();
40 40
 
41 41
     /**
42 42
      * Array of sortable metadata
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      * @var	array
45 45
      * @access	protected
46 46
      */
47
-    protected $sortables = array ();
47
+    protected $sortables = array();
48 48
 
49 49
     /**
50 50
      * Renders the page browser
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
         // Add link to previous page.
72 72
         if ($this->piVars['pointer'] > 0) {
73 73
 
74
-            $output = $this->pi_linkTP_keepPIvars($this->pi_getLL('prevPage', '&lt;', TRUE), array ('pointer' => $this->piVars['pointer'] - 1), TRUE).$separator;
74
+            $output = $this->pi_linkTP_keepPIvars($this->pi_getLL('prevPage', '&lt;', TRUE), array('pointer' => $this->piVars['pointer'] - 1), TRUE).$separator;
75 75
 
76 76
         } else {
77 77
 
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
 
91 91
                 if ($this->piVars['pointer'] != $i) {
92 92
 
93
-                    $output .= $this->pi_linkTP_keepPIvars(sprintf($this->pi_getLL('page', '%d', TRUE), $i + 1), array ('pointer' => $i), TRUE).$separator;
93
+                    $output .= $this->pi_linkTP_keepPIvars(sprintf($this->pi_getLL('page', '%d', TRUE), $i + 1), array('pointer' => $i), TRUE).$separator;
94 94
 
95 95
                 } else {
96 96
 
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
         // Add link to next page.
116 116
         if ($this->piVars['pointer'] < $maxPages - 1) {
117 117
 
118
-            $output .= $this->pi_linkTP_keepPIvars($this->pi_getLL('nextPage', '&gt;', TRUE), array ('pointer' => $this->piVars['pointer'] + 1), TRUE);
118
+            $output .= $this->pi_linkTP_keepPIvars($this->pi_getLL('nextPage', '&gt;', TRUE), array('pointer' => $this->piVars['pointer'] + 1), TRUE);
119 119
 
120 120
         } else {
121 121
 
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
 
189 189
                     $imgAlt = htmlspecialchars($value);
190 190
 
191
-                    $additionalParams = array (
191
+                    $additionalParams = array(
192 192
                         'id' => $this->list[$number]['uid'],
193 193
                         'page' => $this->list[$number]['page']
194 194
                     );
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
 
200 200
                     }
201 201
 
202
-                    $conf = array (
202
+                    $conf = array(
203 203
                         'useCacheHash' => 1,
204 204
                         'parameter' => $this->conf['targetPid'],
205 205
                         'additionalParams' => \TYPO3\CMS\Core\Utility\GeneralUtility::implodeArrayForUrl($this->prefixId, $additionalParams, '', TRUE, FALSE)
@@ -275,9 +275,9 @@  discard block
 block discarded – undo
275 275
 
276 276
         if (!empty($this->conf['basketButton']) && !empty($this->conf['targetBasket'])) {
277 277
 
278
-            $additionalParams = array ('id' => $this->list[$number]['uid'], 'startpage' => $this->list[$number]['page'], 'addToBasket' => 'list');
278
+            $additionalParams = array('id' => $this->list[$number]['uid'], 'startpage' => $this->list[$number]['page'], 'addToBasket' => 'list');
279 279
 
280
-            $conf = array (
280
+            $conf = array(
281 281
                 'useCacheHash' => 1,
282 282
                 'parameter' => $this->conf['targetBasket'],
283 283
                 'additionalParams' => \TYPO3\CMS\Core\Utility\GeneralUtility::implodeArrayForUrl($this->prefixId, $additionalParams, '', TRUE, FALSE)
@@ -313,14 +313,14 @@  discard block
 block discarded – undo
313 313
         $prefix = str_replace('_', '-', get_class($this));
314 314
 
315 315
         // Configure @action URL for form.
316
-        $linkConf = array (
316
+        $linkConf = array(
317 317
             'parameter' => $GLOBALS['TSFE']->id,
318 318
             'forceAbsoluteUrl' => 1
319 319
         );
320 320
 
321 321
         if (!empty($this->piVars['logicalPage'])) {
322 322
 
323
-            $linkConf['additionalParams'] = \TYPO3\CMS\Core\Utility\GeneralUtility::implodeArrayForUrl($this->prefixId, array ('logicalPage' => $this->piVars['logicalPage']), '', TRUE, FALSE);
323
+            $linkConf['additionalParams'] = \TYPO3\CMS\Core\Utility\GeneralUtility::implodeArrayForUrl($this->prefixId, array('logicalPage' => $this->piVars['logicalPage']), '', TRUE, FALSE);
324 324
 
325 325
         }
326 326
 
@@ -431,7 +431,7 @@  discard block
 block discarded – undo
431 431
 
432 432
                         $imgAlt = htmlspecialchars($value);
433 433
 
434
-                        $additionalParams = array (
434
+                        $additionalParams = array(
435 435
                             'id' => $subpart['uid'],
436 436
                             'page' => $subpart['page'],
437 437
                             'highlight_word' => preg_replace('/\s\s+/', ';', $this->list->metadata['searchString'])
@@ -443,7 +443,7 @@  discard block
 block discarded – undo
443 443
 
444 444
                         }
445 445
 
446
-                        $conf = array (
446
+                        $conf = array(
447 447
                             // we don't want cHash in case of search parameters
448 448
                             'useCacheHash' => empty($this->list->metadata['searchString']) ? 1 : 0,
449 449
                             'parameter' => $this->conf['targetPid'],
@@ -523,9 +523,9 @@  discard block
 block discarded – undo
523 523
 
524 524
             if (!empty($this->conf['basketButton']) && !empty($this->conf['targetBasket'])) {
525 525
 
526
-                $additionalParams = array ('id' => $this->list[$number]['uid'], 'startpage' => $subpart['page'], 'endpage' => $subpart['page'], 'logId' => $subpart['sid'], 'addToBasket' => 'subentry');
526
+                $additionalParams = array('id' => $this->list[$number]['uid'], 'startpage' => $subpart['page'], 'endpage' => $subpart['page'], 'logId' => $subpart['sid'], 'addToBasket' => 'subentry');
527 527
 
528
-                $conf = array (
528
+                $conf = array(
529 529
                     'useCacheHash' => 1,
530 530
                     'parameter' => $this->conf['targetBasket'],
531 531
                     'additionalParams' => \TYPO3\CMS\Core\Utility\GeneralUtility::implodeArrayForUrl($this->prefixId, $additionalParams, '', TRUE, FALSE)
@@ -567,7 +567,7 @@  discard block
 block discarded – undo
567 567
 
568 568
             if ($resArray['is_listed']) {
569 569
 
570
-                $this->metadata[$resArray['index_name']] = array (
570
+                $this->metadata[$resArray['index_name']] = array(
571 571
                     'wrap' => $resArray['wrap'],
572 572
                     'label' => tx_dlf_helper::translate($resArray['index_name'], 'tx_dlf_metadata', $this->conf['pages'])
573 573
                 );
Please login to merge, or discard this patch.
plugins/toolbox/tools/pdf/class.tx_dlf_toolsPdf.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -137,15 +137,15 @@  discard block
 block discarded – undo
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 151
         return $page1Link.$page2Link;
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
         // Wrap URLs with HTML.
183 183
         if (!empty($workLink)) {
184 184
 
185
-            $workLink = $this->cObj->typoLink($this->pi_getLL('work', ''), array ('parameter' => $workLink, 'title' => $this->pi_getLL('work', '')));
185
+            $workLink = $this->cObj->typoLink($this->pi_getLL('work', ''), array('parameter' => $workLink, 'title' => $this->pi_getLL('work', '')));
186 186
 
187 187
         } else {
188 188
 
Please login to merge, or discard this patch.