Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Branch master (1ffd1c)
by Sebastian
03:57
created
dlf/plugins/metadata/class.tx_dlf_metadata.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 	 * @var	array
29 29
 	 * @access protected
30 30
 	 */
31
-	protected $hookObjects = array ();
31
+	protected $hookObjects = array();
32 32
 
33 33
 	/**
34 34
 	 * The main method of the PlugIn
@@ -66,12 +66,12 @@  discard block
 block discarded – undo
66 66
 
67 67
 		}
68 68
 
69
-		$metadata = array ();
69
+		$metadata = array();
70 70
 
71 71
 		if ($this->conf['rootline'] < 2) {
72 72
 
73 73
 			// Get current structure's @ID.
74
-			$ids = array ();
74
+			$ids = array();
75 75
 
76 76
 			if (!empty($this->doc->physicalStructure[$this->piVars['page']]) && !empty($this->doc->smLinks['p2l'][$this->doc->physicalStructure[$this->piVars['page']]])) {
77 77
 
@@ -208,12 +208,12 @@  discard block
 block discarded – undo
208 208
 		$subpart['block'] = $this->cObj->getSubpart($this->template, '###BLOCK###');
209 209
 
210 210
 		// Get list of metadata to show.
211
-		$metaList = array ();
211
+		$metaList = array();
212 212
 
213 213
 		$result = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
214 214
 			'tx_dlf_metadata.index_name AS index_name,tx_dlf_metadata.is_listed AS is_listed,tx_dlf_metadata.wrap AS wrap',
215 215
 			'tx_dlf_metadata',
216
-			'tx_dlf_metadata.pid='.intval($this->conf['pages']).tx_dlf_helper::whereClause('tx_dlf_metadata').' AND (sys_language_uid IN (-1,0) OR (sys_language_uid = ' .$GLOBALS['TSFE']->sys_language_uid. ' AND l18n_parent = 0))',
216
+			'tx_dlf_metadata.pid='.intval($this->conf['pages']).tx_dlf_helper::whereClause('tx_dlf_metadata').' AND (sys_language_uid IN (-1,0) OR (sys_language_uid = '.$GLOBALS['TSFE']->sys_language_uid.' AND l18n_parent = 0))',
217 217
 			'',
218 218
 			'tx_dlf_metadata.sorting',
219 219
 			''
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
 					// do stuff with the row entry data	like built HTML or prepare further usage
235 235
 					if ($this->conf['showFull'] || $resArray['is_listed']) {
236 236
 
237
-						$metaList[$resArray['index_name']] = array (
237
+						$metaList[$resArray['index_name']] = array(
238 238
 							'wrap' => $resArray['wrap'],
239 239
 							'label' => tx_dlf_helper::translate($resArray['index_name'], 'tx_dlf_metadata', $this->conf['pages'])
240 240
 						);
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
 		}
247 247
 
248 248
 		// Get list of collections to show.
249
-		$collList = array ();
249
+		$collList = array();
250 250
 
251 251
 		$result = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
252 252
 			'tx_dlf_collections.index_name AS index_name',
@@ -324,7 +324,7 @@  discard block
 block discarded – undo
324 324
 
325 325
 								$details = $this->doc->getLogicalStructure($metadata['_id']);
326 326
 
327
-								$value = $this->pi_linkTP($value, array ($this->prefixId => array ('id' => $this->doc->uid, 'page' => (!empty($details['points']) ? intval($details['points']) : 1))), TRUE, $this->conf['targetPid']);
327
+								$value = $this->pi_linkTP($value, array($this->prefixId => array('id' => $this->doc->uid, 'page' => (!empty($details['points']) ? intval($details['points']) : 1))), TRUE, $this->conf['targetPid']);
328 328
 
329 329
 							}
330 330
 
Please login to merge, or discard this patch.
dlf/plugins/newspaper/class.tx_dlf_newspaper.php 1 patch
Spacing   +25 added lines, -25 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')),
@@ -130,20 +130,20 @@  discard block
 block discarded – undo
130 130
 				'###DAYFRI_NAME###' => strftime('%a', strtotime('last Friday')),
131 131
 				'###DAYSAT_NAME###' => strftime('%a', strtotime('last Saturday')),
132 132
 				'###DAYSUN_NAME###' => strftime('%a', strtotime('last Sunday')),
133
-				'###MONTHNAME###' 	=> strftime('%B', strtotime($year . '-' . ($i + 1) . '-1'))
133
+				'###MONTHNAME###' 	=> strftime('%B', strtotime($year.'-'.($i + 1).'-1'))
134 134
 			);
135 135
 
136 136
 			// Reset week content of new month.
137 137
 			$subWeekPartContent = '';
138 138
 
139
-			$firstOfMonth = strtotime($year . '-' . ($i + 1) . '-1');
139
+			$firstOfMonth = strtotime($year.'-'.($i + 1).'-1');
140 140
 			$lastOfMonth = strtotime('last day of', ($firstOfMonth));
141 141
 			$firstOfMonthStart = strtotime('last Monday', $firstOfMonth);
142 142
 
143 143
 			// There are never more than 6 weeks in a month.
144 144
 			for ($j = 0; $j <= 5; $j++) {
145 145
 
146
-				$firstDayOfWeek = strtotime('+ ' . $j . ' Week', $firstOfMonthStart);
146
+				$firstDayOfWeek = strtotime('+ '.$j.' Week', $firstOfMonthStart);
147 147
 
148 148
 				$weekArray = array(
149 149
 					'###DAYMON###' => '&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,10 +182,10 @@  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
-											'additionalParams' => '&' . $this->prefixId . '[id]=' . urlencode($issue['uid']),
188
+											'additionalParams' => '&'.$this->prefixId.'[id]='.urlencode($issue['uid']),
189 189
 											'ATagParams' => ' class="title"',
190 190
 										);
191 191
 
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
 
213 213
 							}
214 214
 
215
-							$dayLinkDiv = '<div class="issues"><h4>' . strftime('%d', $currentDayTime) . '</h4><div>'.$dayLinksList.'</div></div>';
215
+							$dayLinkDiv = '<div class="issues"><h4>'.strftime('%d', $currentDayTime).'</h4><div>'.$dayLinksList.'</div></div>';
216 216
 						}
217 217
 
218 218
 						switch (strftime('%w', strtotime('+ '.$k.' Day', $firstDayOfWeek))) {
@@ -257,25 +257,25 @@  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
-			'additionalParams' => '&' . $this->prefixId . '[id]=' . urlencode($this->doc->parentId),
263
+			'additionalParams' => '&'.$this->prefixId.'[id]='.urlencode($this->doc->parentId),
264 264
 		);
265 265
 
266
-		$allYearsLink = $this->cObj->typoLink($this->pi_getLL('allYears', '', TRUE) . ' ' . $this->doc->getTitle($this->doc->parentId), $linkConf);
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
-			'additionalParams' => '&' . $this->prefixId . '[id]=' . urlencode($this->doc->uid),
272
+			'additionalParams' => '&'.$this->prefixId.'[id]='.urlencode($this->doc->uid),
273 273
 		);
274 274
 
275 275
 		$yearLink = $this->cObj->typoLink($year, $linkConf);
276 276
 
277 277
 		// Prepare list as alternative of the calendar view.
278
-		foreach($allIssues as $dayTime => $issues) {
278
+		foreach ($allIssues as $dayTime => $issues) {
279 279
 
280 280
 			$markerArrayDay['###DATE_STRING###'] = strftime('%A, %x', $dayTime);
281 281
 
@@ -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
 			);
@@ -388,8 +388,8 @@  discard block
 block discarded – undo
388 388
 				$linkConf = array(
389 389
 					'useCacheHash' => 1,
390 390
 					'parameter' => $this->conf['targetPid'],
391
-					'additionalParams' => '&' . $this->prefixId . '[id]=' . urlencode($year['uid']),
392
-					'title' => $titleAnchor . ': ' . $year['title']
391
+					'additionalParams' => '&'.$this->prefixId.'[id]='.urlencode($year['uid']),
392
+					'title' => $titleAnchor.': '.$year['title']
393 393
 				);
394 394
 
395 395
 				$yearArray = array(
@@ -402,15 +402,15 @@  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
-			'additionalParams' => '&' . $this->prefixId . '[id]=' . $this->doc->uid,
408
+			'additionalParams' => '&'.$this->prefixId.'[id]='.$this->doc->uid,
409 409
 		);
410
-		$allYearsLink = $this->cObj->typoLink($this->pi_getLL('allYears', '', TRUE) . ' ' .$this->doc->getTitle($this->doc->uid), $linkConf);
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.
dlf/plugins/listview/class.tx_dlf_listview.php 1 patch
Spacing   +15 added lines, -15 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,12 +188,12 @@  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
 					);
195 195
 
196
-					$conf = array (
196
+					$conf = array(
197 197
 						'useCacheHash' => 1,
198 198
 						'parameter' => $this->conf['targetPid'],
199 199
 						'additionalParams' => \TYPO3\CMS\Core\Utility\GeneralUtility::implodeArrayForUrl($this->prefixId, $additionalParams, '', TRUE, FALSE)
@@ -269,9 +269,9 @@  discard block
 block discarded – undo
269 269
 
270 270
 		if (!empty($this->conf['basketButton']) && !empty($this->conf['targetBasket'])) {
271 271
 
272
-			$additionalParams = array ('id' => $this->list[$number]['uid'], 'startpage' => $this->list[$number]['page'], 'addToBasket' => 'list');
272
+			$additionalParams = array('id' => $this->list[$number]['uid'], 'startpage' => $this->list[$number]['page'], 'addToBasket' => 'list');
273 273
 
274
-			$conf = array (
274
+			$conf = array(
275 275
 				'useCacheHash' => 1,
276 276
 				'parameter' => $this->conf['targetBasket'],
277 277
 				'additionalParams' => \TYPO3\CMS\Core\Utility\GeneralUtility::implodeArrayForUrl($this->prefixId, $additionalParams, '', TRUE, FALSE)
@@ -307,7 +307,7 @@  discard block
 block discarded – undo
307 307
 		$prefix = str_replace('_', '-', get_class($this));
308 308
 
309 309
 		// Configure @action URL for form.
310
-		$linkConf = array (
310
+		$linkConf = array(
311 311
 			'parameter' => $GLOBALS['TSFE']->id,
312 312
 			'forceAbsoluteUrl' => 1
313 313
 		);
@@ -419,13 +419,13 @@  discard block
 block discarded – undo
419 419
 
420 420
 						$imgAlt = htmlspecialchars($value);
421 421
 
422
-						$additionalParams = array (
422
+						$additionalParams = array(
423 423
 							'id' => $subpart['uid'],
424 424
 							'page' => $subpart['page'],
425 425
 							'highlight_word' => preg_replace('/\s\s+/', ';', $this->list->metadata['searchString'])
426 426
 						);
427 427
 
428
-						$conf = array (
428
+						$conf = array(
429 429
 							// we don't want cHash in case of search parameters
430 430
 							'useCacheHash' => empty($this->list->metadata['searchString']) ? 1 : 0,
431 431
 							'parameter' => $this->conf['targetPid'],
@@ -505,9 +505,9 @@  discard block
 block discarded – undo
505 505
 
506 506
 			if (!empty($this->conf['basketButton']) && !empty($this->conf['targetBasket'])) {
507 507
 
508
-				$additionalParams = array ('id' => $this->list[$number]['uid'], 'startpage' => $subpart['page'], 'endpage' => $subpart['page'], 'logId' => $subpart['sid'], 'addToBasket' => 'subentry');
508
+				$additionalParams = array('id' => $this->list[$number]['uid'], 'startpage' => $subpart['page'], 'endpage' => $subpart['page'], 'logId' => $subpart['sid'], 'addToBasket' => 'subentry');
509 509
 
510
-				$conf = array (
510
+				$conf = array(
511 511
 					'useCacheHash' => 1,
512 512
 					'parameter' => $this->conf['targetBasket'],
513 513
 					'additionalParams' => \TYPO3\CMS\Core\Utility\GeneralUtility::implodeArrayForUrl($this->prefixId, $additionalParams, '', TRUE, FALSE)
@@ -549,7 +549,7 @@  discard block
 block discarded – undo
549 549
 
550 550
 			if ($resArray['is_listed']) {
551 551
 
552
-				$this->metadata[$resArray['index_name']] = array (
552
+				$this->metadata[$resArray['index_name']] = array(
553 553
 					'wrap' => $resArray['wrap'],
554 554
 					'label' => tx_dlf_helper::translate($resArray['index_name'], 'tx_dlf_metadata', $this->conf['pages'])
555 555
 				);
Please login to merge, or discard this patch.
dlf/plugins/pageview/class.tx_dlf_pageview.php 2 patches
Indentation   +73 added lines, -73 removed lines patch added patch discarded remove patch
@@ -101,130 +101,130 @@  discard block
 block discarded – undo
101 101
 	}
102 102
 
103 103
 	/**
104
-     * Adds pageview interaction (crop, magnifier and rotation)
105
-     *
106
-     * @access	protected
107
-     *
108
-     * @return	array		Marker array
109
-     */
110
-    protected function addInteraction() {
104
+	 * Adds pageview interaction (crop, magnifier and rotation)
105
+	 *
106
+	 * @access	protected
107
+	 *
108
+	 * @return	array		Marker array
109
+	 */
110
+	protected function addInteraction() {
111 111
 
112
-        $markerArray = array();
112
+		$markerArray = array();
113 113
 
114
-        if ($this->piVars['id']) {
114
+		if ($this->piVars['id']) {
115 115
 
116
-            if (empty($this->piVars['page'])) {
116
+			if (empty($this->piVars['page'])) {
117 117
 
118
-                $params['page'] = 1;
118
+				$params['page'] = 1;
119 119
 
120
-            }
120
+			}
121 121
 
122
-            if ($this->conf['crop']) {
122
+			if ($this->conf['crop']) {
123 123
 
124
-                $markerArray['###EDITBUTTON###'] = '<a href="javascript: tx_dlf_viewer.activateSelection();">'.$this->pi_getLL('editMode', '', TRUE).'</a>';
124
+				$markerArray['###EDITBUTTON###'] = '<a href="javascript: tx_dlf_viewer.activateSelection();">'.$this->pi_getLL('editMode', '', TRUE).'</a>';
125 125
 
126
-                $markerArray['###EDITREMOVE###'] = '<a href="javascript: tx_dlf_viewer.resetCropSelection();">'.$this->pi_getLL('editRemove', '', TRUE).'</a>';
126
+				$markerArray['###EDITREMOVE###'] = '<a href="javascript: tx_dlf_viewer.resetCropSelection();">'.$this->pi_getLL('editRemove', '', TRUE).'</a>';
127 127
 
128
-            } else {
128
+			} else {
129 129
 
130
-                $markerArray['###EDITBUTTON###'] = '';
130
+				$markerArray['###EDITBUTTON###'] = '';
131 131
 
132
-                $markerArray['###EDITREMOVE###'] = '';
132
+				$markerArray['###EDITREMOVE###'] = '';
133 133
 
134
-            }
134
+			}
135 135
 
136
-            if ($this->conf['magnifier']) {
136
+			if ($this->conf['magnifier']) {
137 137
 
138
-                $markerArray['###MAGNIFIER###'] = '<a href="javascript: tx_dlf_viewer.activateMagnifier();">'.$this->pi_getLL('magnifier', '', TRUE).'</a>';
138
+				$markerArray['###MAGNIFIER###'] = '<a href="javascript: tx_dlf_viewer.activateMagnifier();">'.$this->pi_getLL('magnifier', '', TRUE).'</a>';
139 139
 
140
-            } else {
140
+			} else {
141 141
 
142
-                $markerArray['###MAGNIFIER###'] = '';
142
+				$markerArray['###MAGNIFIER###'] = '';
143 143
 
144
-            }
144
+			}
145 145
 
146
-        }
146
+		}
147 147
 
148
-        return $markerArray;
149
-    }
148
+		return $markerArray;
149
+	}
150 150
 
151
-    /**
152
-     * Adds form to save cropping data to basket
153
-     *
154
-     * @access	protected
155
-     *
156
-     * @return	array		Marker array
157
-     */
158
-    protected function addBasketForm() {
151
+	/**
152
+	 * Adds form to save cropping data to basket
153
+	 *
154
+	 * @access	protected
155
+	 *
156
+	 * @return	array		Marker array
157
+	 */
158
+	protected function addBasketForm() {
159 159
 
160
-        $markerArray = array();
160
+		$markerArray = array();
161 161
 
162
-        // Add basket button
163
-        if ($this->conf['basketButton'] && $this->conf['targetBasket'] && $this->piVars['id']) {
162
+		// Add basket button
163
+		if ($this->conf['basketButton'] && $this->conf['targetBasket'] && $this->piVars['id']) {
164 164
 
165
-            $label = $this->pi_getLL('addBasket', '', TRUE);
165
+			$label = $this->pi_getLL('addBasket', '', TRUE);
166 166
 
167
-            $params = array(
168
-                'id' => $this->piVars['id'],
169
-                'addToBasket' => true
170
-            );
167
+			$params = array(
168
+				'id' => $this->piVars['id'],
169
+				'addToBasket' => true
170
+			);
171 171
 
172
-            if (empty($this->piVars['page'])) {
172
+			if (empty($this->piVars['page'])) {
173 173
 
174
-                $params['page'] = 1;
174
+				$params['page'] = 1;
175 175
 
176
-            }
176
+			}
177 177
 
178
-            $basketConf = array (
179
-                'parameter' => $this->conf['targetBasket'],
180
-                'additionalParams' => \TYPO3\CMS\Core\Utility\GeneralUtility::implodeArrayForUrl($this->prefixId, $params, '', TRUE, FALSE),
181
-                'title' => $label
182
-            );
178
+			$basketConf = array (
179
+				'parameter' => $this->conf['targetBasket'],
180
+				'additionalParams' => \TYPO3\CMS\Core\Utility\GeneralUtility::implodeArrayForUrl($this->prefixId, $params, '', TRUE, FALSE),
181
+				'title' => $label
182
+			);
183 183
 
184
-            $output = '<form id="addToBasketForm" action="'.$this->cObj->typoLink_URL($basketConf).'" method="post">';
184
+			$output = '<form id="addToBasketForm" action="'.$this->cObj->typoLink_URL($basketConf).'" method="post">';
185 185
 
186
-            $output .= '<input type="hidden" name="tx_dlf[startpage]" id="startpage" value="'.$this->piVars['page'].'">';
186
+			$output .= '<input type="hidden" name="tx_dlf[startpage]" id="startpage" value="'.$this->piVars['page'].'">';
187 187
 
188
-            $output .= '<input type="hidden" name="tx_dlf[endpage]" id="endpage" value="'.$this->piVars['page'].'">';
188
+			$output .= '<input type="hidden" name="tx_dlf[endpage]" id="endpage" value="'.$this->piVars['page'].'">';
189 189
 
190
-            $output .= '<input type="hidden" name="tx_dlf[startX]" id="startX">';
190
+			$output .= '<input type="hidden" name="tx_dlf[startX]" id="startX">';
191 191
 
192
-            $output .= '<input type="hidden" name="tx_dlf[startY]" id="startY">';
192
+			$output .= '<input type="hidden" name="tx_dlf[startY]" id="startY">';
193 193
 
194
-            $output .= '<input type="hidden" name="tx_dlf[endX]" id="endX">';
194
+			$output .= '<input type="hidden" name="tx_dlf[endX]" id="endX">';
195 195
 
196
-            $output .= '<input type="hidden" name="tx_dlf[endY]" id="endY">';
196
+			$output .= '<input type="hidden" name="tx_dlf[endY]" id="endY">';
197 197
 
198
-            $output .= '<input type="hidden" name="tx_dlf[rotation]" id="rotation">';
198
+			$output .= '<input type="hidden" name="tx_dlf[rotation]" id="rotation">';
199 199
 
200
-            $output .= '<button id="submitBasketForm" onclick="this.form.submit()">'.$label.'</button>';
200
+			$output .= '<button id="submitBasketForm" onclick="this.form.submit()">'.$label.'</button>';
201 201
 
202
-            $output .= '</form>';
202
+			$output .= '</form>';
203 203
 
204
-            $output .= '<script>';
204
+			$output .= '<script>';
205 205
 
206
-            $output .= '
206
+			$output .= '
207 207
 			$(document).ready(function() {
208 208
 				$("#submitBasketForm").click(function() {
209 209
 					$("#addToBasketForm").submit();
210 210
 				});
211 211
 			});';
212 212
 
213
-            $output .= '</script>';
213
+			$output .= '</script>';
214 214
 
215
-            $markerArray['###BASKETBUTTON###'] = $output;
215
+			$markerArray['###BASKETBUTTON###'] = $output;
216 216
 
217
-        } else {
217
+		} else {
218 218
 
219
-            $markerArray['###BASKETBUTTON###'] = '';
219
+			$markerArray['###BASKETBUTTON###'] = '';
220 220
 
221
-        }
221
+		}
222 222
 
223
-        return $markerArray;
224
-    }
223
+		return $markerArray;
224
+	}
225 225
 
226
-    /**
227
-     * Get image's URL and MIME type
226
+	/**
227
+	 * Get image's URL and MIME type
228 228
 	 *
229 229
 	 * @access	protected
230 230
 	 *
@@ -390,7 +390,7 @@  discard block
 block discarded – undo
390 390
 
391 391
 		$markerArray = array_merge($markerArray, $this->addInteraction(), $this->addBasketForm());
392 392
 
393
-        $content .= $this->cObj->substituteMarkerArray($this->template, $markerArray);
393
+		$content .= $this->cObj->substituteMarkerArray($this->template, $markerArray);
394 394
 
395 395
 		return $this->pi_wrapInBaseClass($content);
396 396
 
Please login to merge, or discard this patch.
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 	 * @var	array
28 28
 	 * @access protected
29 29
 	 */
30
-	protected $controls = array ();
30
+	protected $controls = array();
31 31
 
32 32
 	/**
33 33
 	 * Holds the current images' URLs and MIME types
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
 	 * @var	array
36 36
 	 * @access protected
37 37
 	 */
38
-	protected $images = array ();
38
+	protected $images = array();
39 39
 
40 40
 	/**
41 41
 	 * Holds the current fulltexts' URLs
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 	 * @var	array
44 44
 	 * @access protected
45 45
 	 */
46
-	protected $fulltexts = array ();
46
+	protected $fulltexts = array();
47 47
 
48 48
 	/**
49 49
 	 * Adds Viewer javascript
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 	 */
55 55
 	protected function addViewerJS() {
56 56
 
57
-		$output = array ();
57
+		$output = array();
58 58
 
59 59
 		// Add OpenLayers library.
60 60
 		$output[] = '<link type="text/css" rel="stylesheet" href="'.\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey).'lib/OpenLayers/ol3.css">';
@@ -86,11 +86,11 @@  discard block
 block discarded – undo
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
 			}
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
 
176 176
             }
177 177
 
178
-            $basketConf = array (
178
+            $basketConf = array(
179 179
                 'parameter' => $this->conf['targetBasket'],
180 180
                 'additionalParams' => \TYPO3\CMS\Core\Utility\GeneralUtility::implodeArrayForUrl($this->prefixId, $params, '', TRUE, FALSE),
181 181
                 'title' => $label
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
 	 */
235 235
 	protected function getImage($page) {
236 236
 
237
-		$image = array ();
237
+		$image = array();
238 238
 
239 239
 		// Get @USE value of METS fileGrp.
240 240
 		$fileGrps = \TYPO3\CMS\Core\Utility\GeneralUtility::trimExplode(',', $this->conf['fileGrps']);
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
 
249 249
 				if ($this->conf['useInternalProxy']) {
250 250
 					// Configure @action URL for form.
251
-					$linkConf = array (
251
+					$linkConf = array(
252 252
 						'parameter' => $GLOBALS['TSFE']->id,
253 253
 						'additionalParams' => '&eID=tx_dlf_geturl_eid&url='.urlencode($image['url']),
254 254
 					);
@@ -287,7 +287,7 @@  discard block
 block discarded – undo
287 287
 	 */
288 288
 	protected function getFulltext($page) {
289 289
 
290
-		$fulltext = array ();
290
+		$fulltext = array();
291 291
 
292 292
 		// Get fulltext link.
293 293
 		if (!empty($this->doc->physicalStructureInfo[$this->doc->physicalStructure[$page]]['files'][$this->conf['fileGrpFulltext']])) {
@@ -295,7 +295,7 @@  discard block
 block discarded – undo
295 295
 			$fulltext['url'] = $this->doc->getFileLocation($this->doc->physicalStructureInfo[$this->doc->physicalStructure[$page]]['files'][$this->conf['fileGrpFulltext']]);
296 296
 
297 297
 			// Configure @action URL for form.
298
-			$linkConf = array (
298
+			$linkConf = array(
299 299
 				'parameter' => $GLOBALS['TSFE']->id,
300 300
 				'additionalParams' => '&eID=tx_dlf_geturl_eid&url='.urlencode($fulltext['url']),
301 301
 			);
@@ -344,9 +344,9 @@  discard block
 block discarded – undo
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
 
@@ -384,7 +384,7 @@  discard block
 block discarded – undo
384 384
 		$this->controls = explode(',', $this->conf['features']);
385 385
 
386 386
 		// Fill in the template markers.
387
-		$markerArray = array (
387
+		$markerArray = array(
388 388
 			'###VIEWER_JS###' => $this->addViewerJS()
389 389
 		);
390 390
 
Please login to merge, or discard this patch.
dlf/plugins/pageview/class.tx_dlf_geturl_eid.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
 		$this->scriptRelPath = 'plugins/pageview/class.tx_dlf_geturl_eid.php';
48 48
 
49 49
 		$url = GeneralUtility::_GP('url');
50
-    $includeHeader = \TYPO3\CMS\Core\Utility\MathUtility::forceIntegerInRange(GeneralUtility::_GP('header'), 0, 2, 0);
50
+	$includeHeader = \TYPO3\CMS\Core\Utility\MathUtility::forceIntegerInRange(GeneralUtility::_GP('header'), 0, 2, 0);
51 51
 
52 52
 		// first we fetch header separately
53 53
 		$fetchedHeader = GeneralUtility::getUrl($url, 2);
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 	 *
39 39
 	 * @return	void
40 40
 	 */
41
-	public function main($content = '', $conf = array ()) {
41
+	public function main($content = '', $conf = array()) {
42 42
 
43 43
 		$this->cObj = GeneralUtility::makeInstance('TYPO3\\CMS\\Frontend\\ContentObject\\ContentObjectRenderer');
44 44
 
@@ -63,11 +63,11 @@  discard block
 block discarded – undo
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));
Please login to merge, or discard this patch.
dlf/plugins/statistics/class.tx_dlf_statistics.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -108,12 +108,12 @@
 block discarded – undo
108 108
 		$countVolumes = $GLOBALS['TYPO3_DB']->sql_num_rows($resultVolumes);
109 109
 
110 110
 		// Set replacements.
111
-		$replace = array (
112
-			'key' => array (
111
+		$replace = array(
112
+			'key' => array(
113 113
 				'###TITLES###',
114 114
 				'###VOLUMES###'
115 115
 			),
116
-			'value' => array (
116
+			'value' => array(
117 117
 				$countTitles.($countTitles > 1 ? $this->pi_getLL('titles', '', TRUE) : $this->pi_getLL('title', '', TRUE)),
118 118
 				$countVolumes.($countVolumes > 1 ? $this->pi_getLL('volumes', '', TRUE) : $this->pi_getLL('volume', '', TRUE))
119 119
 			)
Please login to merge, or discard this patch.
dlf/plugins/pagegrid/class.tx_dlf_pagegrid.php 1 patch
Spacing   +6 added lines, -6 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
 
@@ -225,9 +225,9 @@  discard block
 block discarded – undo
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
 
Please login to merge, or discard this patch.
dlf/plugins/toolbox/tools/imagedownload/class.tx_dlf_toolsImagedownload.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -50,9 +50,9 @@  discard block
 block discarded – undo
50 50
 
51 51
 			// Set default values if not set.
52 52
 			// $this->piVars['page'] may be integer or string (physical structure @ID)
53
-			if ( (int)$this->piVars['page'] > 0 || empty($this->piVars['page'])) {
53
+			if ((int) $this->piVars['page'] > 0 || empty($this->piVars['page'])) {
54 54
 
55
-				$this->piVars['page'] = \TYPO3\CMS\Core\Utility\MathUtility::forceIntegerInRange((int)$this->piVars['page'], 1, $this->doc->numPages, 1);
55
+				$this->piVars['page'] = \TYPO3\CMS\Core\Utility\MathUtility::forceIntegerInRange((int) $this->piVars['page'], 1, $this->doc->numPages, 1);
56 56
 
57 57
 			} else {
58 58
 
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
 		}
77 77
 
78 78
 		// Get left or single page download.
79
-		$markerArray['###IMAGE_LEFT###'] =  $this->piVars['double'] == 1 ? $this->getImage($this->piVars['page'], $this->pi_getLL('leftPage', '')) : $this->getImage($this->piVars['page'], $this->pi_getLL('singlePage', ''));
79
+		$markerArray['###IMAGE_LEFT###'] = $this->piVars['double'] == 1 ? $this->getImage($this->piVars['page'], $this->pi_getLL('leftPage', '')) : $this->getImage($this->piVars['page'], $this->pi_getLL('singlePage', ''));
80 80
 
81 81
 		// Get right page download.
82 82
 		$markerArray['###IMAGE_RIGHT###'] = $this->piVars['double'] == 1 ? $this->getImage($this->piVars['page'] + 1, $this->pi_getLL('rightPage', '')) : '';
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
 	 */
101 101
 	protected function getImage($page, $label) {
102 102
 
103
-		$image = array ();
103
+		$image = array();
104 104
 
105 105
 		// Get @USE value of METS fileGrp.
106 106
 		$fileGrps = \TYPO3\CMS\Core\Utility\GeneralUtility::trimExplode(',', $this->conf['fileGrpsImageDownload']);
@@ -121,13 +121,13 @@  discard block
 block discarded – undo
121 121
 							break;
122 122
 					default:	$mimetypeLabel = '';
123 123
 				}
124
-				$linkConf = array (
124
+				$linkConf = array(
125 125
 					'parameter' => $image['url'],
126
-					'title' => $label . ' ' . $mimetypeLabel,
126
+					'title' => $label.' '.$mimetypeLabel,
127 127
 					'additionalParams' => '',
128 128
 				);
129 129
 
130
-				$imageLink = $this->cObj->typoLink($label . ' ' . $mimetypeLabel, $linkConf);
130
+				$imageLink = $this->cObj->typoLink($label.' '.$mimetypeLabel, $linkConf);
131 131
 
132 132
 				break;
133 133
 
Please login to merge, or discard this patch.
dlf/plugins/toolbox/tools/fulltext/class.tx_dlf_toolsFulltext.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 
52 52
 			// Set default values if not set.
53 53
 			// $this->piVars['page'] may be integer or string (physical structure @ID)
54
-			if ( (int)$this->piVars['page'] > 0 || empty($this->piVars['page'])) {
54
+			if ((int) $this->piVars['page'] > 0 || empty($this->piVars['page'])) {
55 55
 
56 56
 				$this->piVars['page'] = \TYPO3\CMS\Core\Utility\MathUtility::forceIntegerInRange((int) $this->piVars['page'], 1, $this->doc->numPages, 1);
57 57
 
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 					.$this->pi_getLL('fulltext-on', '', TRUE).';fulltext-off:'
85 85
 					.$this->pi_getLL('fulltext-off', '', TRUE).'">&nbsp;</a>';
86 86
 		} else {
87
-			$markerArray['###FULLTEXT_SELECT###'] = '<span class="no-fulltext">' . $this->pi_getLL('fulltext-not-available', '', TRUE) . '</span>';
87
+			$markerArray['###FULLTEXT_SELECT###'] = '<span class="no-fulltext">'.$this->pi_getLL('fulltext-not-available', '', TRUE).'</span>';
88 88
 		}
89 89
 
90 90
 		$content .= $this->cObj->substituteMarkerArray($this->template, $markerArray);
Please login to merge, or discard this patch.