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.
Completed
Push — 2.x ( 291efa...b02829 )
by Sebastian
22s queued 12s
created
plugins/search/class.tx_dlf_search_suggest.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 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
 
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 
43 43
         if (!empty($core)) {
44 44
 
45
-            $url = trim(tx_dlf_solr::getSolrUrl($core), '/').'/suggest/?wt=xml&q='.tx_dlf_solr::escapeQuery(\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('q'));
45
+            $url = trim(tx_dlf_solr::getSolrUrl($core), '/') . '/suggest/?wt=xml&q=' . tx_dlf_solr::escapeQuery(\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('q'));
46 46
 
47 47
             if ($stream = fopen($url, 'r')) {
48 48
 
Please login to merge, or discard this patch.
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,8 @@  discard block
 block discarded – undo
18 18
  * @subpackage	tx_dlf
19 19
  * @access	public
20 20
  */
21
-class tx_dlf_search_suggest extends \TYPO3\CMS\Frontend\Plugin\AbstractPlugin {
21
+class tx_dlf_search_suggest extends \TYPO3\CMS\Frontend\Plugin\AbstractPlugin
22
+{
22 23
 
23 24
     public $scriptRelPath = 'plugins/search/class.tx_dlf_search_suggest.php';
24 25
 
@@ -32,7 +33,8 @@  discard block
 block discarded – undo
32 33
      *
33 34
      * @return	void
34 35
      */
35
-    public function main($content = '', $conf = array ()) {
36
+    public function main($content = '', $conf = array ())
37
+    {
36 38
 
37 39
         if (\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('encrypted') != '' && \TYPO3\CMS\Core\Utility\GeneralUtility::_GP('hashed') != '') {
38 40
 
Please login to merge, or discard this patch.
plugins/collection/class.tx_dlf_collection.php 4 patches
Braces   +8 added lines, -4 removed lines patch added patch discarded remove patch
@@ -17,7 +17,8 @@  discard block
 block discarded – undo
17 17
  * @subpackage	tx_dlf
18 18
  * @access	public
19 19
  */
20
-class tx_dlf_collection extends tx_dlf_plugin {
20
+class tx_dlf_collection extends tx_dlf_plugin
21
+{
21 22
 
22 23
     public $scriptRelPath = 'plugins/collection/class.tx_dlf_collection.php';
23 24
 
@@ -39,7 +40,8 @@  discard block
 block discarded – undo
39 40
      *
40 41
      * @return	string		The content that is displayed on the website
41 42
      */
42
-    public function main($content, $conf) {
43
+    public function main($content, $conf)
44
+    {
43 45
 
44 46
         $this->init($conf);
45 47
 
@@ -94,7 +96,8 @@  discard block
 block discarded – undo
94 96
      *
95 97
      * @return	string		The list of collections ready to output
96 98
      */
97
-    protected function showCollectionList() {
99
+    protected function showCollectionList()
100
+    {
98 101
 
99 102
         $selectedCollections = 'tx_dlf_collections.uid != 0';
100 103
 
@@ -334,7 +337,8 @@  discard block
 block discarded – undo
334 337
      *
335 338
      * @return	void
336 339
      */
337
-    protected function showSingleCollection($id) {
340
+    protected function showSingleCollection($id)
341
+    {
338 342
 
339 343
         $additionalWhere = '';
340 344
 
Please login to merge, or discard this patch.
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -487,10 +487,10 @@
 block discarded – undo
487 487
             } else {
488 488
 
489 489
                 $subparts[$resArray['partof']][$resArray['volume_sorting']] = array (
490
-                   'u' => $resArray['uid'],
491
-                   'h' => '',
492
-                   's' => $sorting,
493
-                   'p' => array ()
490
+                    'u' => $resArray['uid'],
491
+                    'h' => '',
492
+                    's' => $sorting,
493
+                    'p' => array ()
494 494
                 );
495 495
 
496 496
             }
Please login to merge, or discard this patch.
Spacing   +38 added lines, -38 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 $hookObjects = array ();
30
+    protected $hookObjects = array();
31 31
 
32 32
     /**
33 33
      * The main method of the PlugIn
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 
52 52
             if (TYPO3_DLOG) {
53 53
 
54
-                \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_collection->main('.$content.', [data])] Incomplete plugin configuration', $this->extKey, SYSLOG_SEVERITY_WARNING, $conf);
54
+                \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_collection->main(' . $content . ', [data])] Incomplete plugin configuration', $this->extKey, SYSLOG_SEVERITY_WARNING, $conf);
55 55
 
56 56
             }
57 57
 
@@ -111,9 +111,9 @@  discard block
 block discarded – undo
111 111
 
112 112
             }
113 113
 
114
-            $selectedCollections = 'tx_dlf_collections.uid IN ('.$GLOBALS['TYPO3_DB']->cleanIntList($this->conf['collections']).')';
114
+            $selectedCollections = 'tx_dlf_collections.uid IN (' . $GLOBALS['TYPO3_DB']->cleanIntList($this->conf['collections']) . ')';
115 115
 
116
-            $orderBy = 'FIELD(tx_dlf_collections.uid,'.$GLOBALS['TYPO3_DB']->cleanIntList($this->conf['collections']).')';
116
+            $orderBy = 'FIELD(tx_dlf_collections.uid,' . $GLOBALS['TYPO3_DB']->cleanIntList($this->conf['collections']) . ')';
117 117
 
118 118
         }
119 119
 
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
 
127 127
             if (!empty($GLOBALS['TSFE']->fe_user->user['uid'])) {
128 128
 
129
-                $showUserDefinedColls = ' AND tx_dlf_collections.fe_cruser_id='.intval($GLOBALS['TSFE']->fe_user->user['uid']);
129
+                $showUserDefinedColls = ' AND tx_dlf_collections.fe_cruser_id=' . intval($GLOBALS['TSFE']->fe_user->user['uid']);
130 130
 
131 131
             } else {
132 132
 
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
         $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
141 141
             'tx_dlf_collections.index_name AS index_name,tx_dlf_collections.index_search as index_query,tx_dlf_collections.uid AS uid,tx_dlf_collections.sys_language_uid AS sys_language_uid,tx_dlf_collections.label AS label,tx_dlf_collections.thumbnail AS thumbnail,tx_dlf_collections.description AS description,tx_dlf_collections.priority AS priority',
142 142
             'tx_dlf_collections',
143
-            $selectedCollections.$showUserDefinedColls.' AND tx_dlf_collections.pid='.intval($this->conf['pages']).' AND (tx_dlf_collections.sys_language_uid IN (-1,0) OR (tx_dlf_collections.sys_language_uid = '.$GLOBALS['TSFE']->sys_language_uid.' AND tx_dlf_collections.l18n_parent = 0))'.tx_dlf_helper::whereClause('tx_dlf_collections'),
143
+            $selectedCollections . $showUserDefinedColls . ' AND tx_dlf_collections.pid=' . intval($this->conf['pages']) . ' AND (tx_dlf_collections.sys_language_uid IN (-1,0) OR (tx_dlf_collections.sys_language_uid = ' . $GLOBALS['TSFE']->sys_language_uid . ' AND tx_dlf_collections.l18n_parent = 0))' . tx_dlf_helper::whereClause('tx_dlf_collections'),
144 144
             '',
145 145
             $orderBy,
146 146
             ''
@@ -162,9 +162,9 @@  discard block
 block discarded – undo
162 162
 
163 163
         // We only care about the UID and partOf in the results and want them sorted
164 164
         $params['fields'] = 'uid,partof';
165
-        $params['sort'] = array ('uid' => 'asc');
165
+        $params['sort'] = array('uid' => 'asc');
166 166
 
167
-        $collections = array ();
167
+        $collections = array();
168 168
 
169 169
         while ($collectionData = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($result)) {
170 170
 
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
 
181 181
         }
182 182
 
183
-        $markerArray = array ();
183
+        $markerArray = array();
184 184
 
185 185
         // Process results.
186 186
         foreach ($collections as $collection) {
@@ -189,20 +189,20 @@  discard block
 block discarded – undo
189 189
 
190 190
             if ($collection['index_query'] != '') {
191 191
 
192
-                $solr_query .= '('.$collection['index_query'].')';
192
+                $solr_query .= '(' . $collection['index_query'] . ')';
193 193
 
194 194
             } else {
195 195
 
196
-                $solr_query .= 'collection:("'.$collection['index_name'].'")';
196
+                $solr_query .= 'collection:("' . $collection['index_name'] . '")';
197 197
 
198 198
             }
199 199
 
200
-            $partOfNothing = $solr->search_raw($solr_query.' AND partof:0 AND toplevel:true', $params);
200
+            $partOfNothing = $solr->search_raw($solr_query . ' AND partof:0 AND toplevel:true', $params);
201 201
 
202
-            $partOfSomething = $solr->search_raw($solr_query.' AND NOT partof:0 AND toplevel:true', $params);
202
+            $partOfSomething = $solr->search_raw($solr_query . ' AND NOT partof:0 AND toplevel:true', $params);
203 203
 
204 204
             // Titles are all documents that are "root" elements i.e. partof == 0
205
-            $collection['titles'] = array ();
205
+            $collection['titles'] = array();
206 206
 
207 207
             foreach ($partOfNothing as $doc) {
208 208
 
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
             } while (!empty($markerArray[$_key]));
233 233
 
234 234
             // Merge plugin variables with new set of values.
235
-            $additionalParams = array ('collection' => $collection['uid']);
235
+            $additionalParams = array('collection' => $collection['uid']);
236 236
 
237 237
             if (is_array($this->piVars)) {
238 238
 
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
             }
246 246
 
247 247
             // Build typolink configuration array.
248
-            $conf = array (
248
+            $conf = array(
249 249
                 'useCacheHash' => 1,
250 250
                 'parameter' => $GLOBALS['TSFE']->id,
251 251
                 'additionalParams' => \TYPO3\CMS\Core\Utility\GeneralUtility::implodeArrayForUrl($this->prefixId, $additionalParams, '', TRUE, FALSE)
@@ -257,9 +257,9 @@  discard block
 block discarded – undo
257 257
             // Add feed link if applicable.
258 258
             if (!empty($this->conf['targetFeed'])) {
259 259
 
260
-                $img = '<img src="'.\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey).'res/icons/txdlffeeds.png" alt="'.$this->pi_getLL('feedAlt', '', TRUE).'" title="'.$this->pi_getLL('feedTitle', '', TRUE).'" />';
260
+                $img = '<img src="' . \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey) . 'res/icons/txdlffeeds.png" alt="' . $this->pi_getLL('feedAlt', '', TRUE) . '" title="' . $this->pi_getLL('feedTitle', '', TRUE) . '" />';
261 261
 
262
-                $markerArray[$_key]['###FEED###'] = $this->pi_linkTP($img, array ($this->prefixId => array ('collection' => $collection['uid'])), FALSE, $this->conf['targetFeed']);
262
+                $markerArray[$_key]['###FEED###'] = $this->pi_linkTP($img, array($this->prefixId => array('collection' => $collection['uid'])), FALSE, $this->conf['targetFeed']);
263 263
 
264 264
             } else {
265 265
 
@@ -270,7 +270,7 @@  discard block
 block discarded – undo
270 270
             // Add thumbnail.
271 271
             if (!empty($collection['thumbnail'])) {
272 272
 
273
-                $markerArray[$_key]['###THUMBNAIL###'] = '<img alt="" title="'.htmlspecialchars($collection['label']).'" src="'.$collection['thumbnail'].'" />';
273
+                $markerArray[$_key]['###THUMBNAIL###'] = '<img alt="" title="' . htmlspecialchars($collection['label']) . '" src="' . $collection['thumbnail'] . '" />';
274 274
 
275 275
             } else {
276 276
 
@@ -284,11 +284,11 @@  discard block
 block discarded – undo
284 284
             // Build statistic's output.
285 285
             $labelTitles = $this->pi_getLL((count($collection['titles']) > 1 ? 'titles' : 'title'), '', FALSE);
286 286
 
287
-            $markerArray[$_key]['###COUNT_TITLES###'] = htmlspecialchars(count($collection['titles']).$labelTitles);
287
+            $markerArray[$_key]['###COUNT_TITLES###'] = htmlspecialchars(count($collection['titles']) . $labelTitles);
288 288
 
289 289
             $labelVolumes = $this->pi_getLL((count($collection['volumes']) > 1 ? 'volumes' : 'volume'), '', FALSE);
290 290
 
291
-            $markerArray[$_key]['###COUNT_VOLUMES###'] = htmlspecialchars(count($collection['volumes']).$labelVolumes);
291
+            $markerArray[$_key]['###COUNT_VOLUMES###'] = htmlspecialchars(count($collection['volumes']) . $labelVolumes);
292 292
 
293 293
         }
294 294
 
@@ -353,7 +353,7 @@  discard block
 block discarded – undo
353 353
         $collection = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
354 354
             'tx_dlf_collections.index_name AS index_name, tx_dlf_collections.index_search as index_query, tx_dlf_collections.label AS collLabel, tx_dlf_collections.description AS collDesc, tx_dlf_collections.thumbnail AS collThumb, tx_dlf_collections.fe_cruser_id',
355 355
             'tx_dlf_collections',
356
-            'tx_dlf_collections.pid='.intval($this->conf['pages']).' AND tx_dlf_collections.uid='.intval($id).$additionalWhere.tx_dlf_helper::whereClause('tx_dlf_collections'),
356
+            'tx_dlf_collections.pid=' . intval($this->conf['pages']) . ' AND tx_dlf_collections.uid=' . intval($id) . $additionalWhere . tx_dlf_helper::whereClause('tx_dlf_collections'),
357 357
             '',
358 358
             '',
359 359
             '1'
@@ -366,11 +366,11 @@  discard block
 block discarded – undo
366 366
 
367 367
         if ($collectionData['index_query'] != '') {
368 368
 
369
-            $solr_query .= '('.$collectionData['index_query'].')';
369
+            $solr_query .= '(' . $collectionData['index_query'] . ')';
370 370
 
371 371
         } else {
372 372
 
373
-            $solr_query .= 'collection:("'.$collectionData['index_name'].'") AND toplevel:true';
373
+            $solr_query .= 'collection:("' . $collectionData['index_name'] . '") AND toplevel:true';
374 374
 
375 375
         }
376 376
 
@@ -380,7 +380,7 @@  discard block
 block discarded – undo
380 380
 
381 381
             if (TYPO3_DLOG) {
382 382
 
383
-                \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_collection->showSingleCollection('.intval($id).')] Apache Solr not available', $this->extKey, SYSLOG_SEVERITY_ERROR);
383
+                \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_collection->showSingleCollection(' . intval($id) . ')] Apache Solr not available', $this->extKey, SYSLOG_SEVERITY_ERROR);
384 384
 
385 385
             }
386 386
 
@@ -389,7 +389,7 @@  discard block
 block discarded – undo
389 389
         }
390 390
 
391 391
         $params['fields'] = 'uid';
392
-        $params['sort'] = array ('uid' => 'asc');
392
+        $params['sort'] = array('uid' => 'asc');
393 393
 
394 394
         $solrResult = $solr->search_raw($solr_query, $params);
395 395
 
@@ -412,17 +412,17 @@  discard block
 block discarded – undo
412 412
         $documents = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
413 413
             'tx_dlf_documents.uid AS uid, tx_dlf_documents.metadata_sorting AS metadata_sorting, tx_dlf_documents.volume_sorting AS volume_sorting, tx_dlf_documents.partof AS partof',
414 414
             'tx_dlf_documents',
415
-            'tx_dlf_documents.pid='.intval($this->conf['pages']).' AND tx_dlf_documents.uid IN ('.implode(',', $documentSet).')'.tx_dlf_helper::whereClause('tx_dlf_documents'),
415
+            'tx_dlf_documents.pid=' . intval($this->conf['pages']) . ' AND tx_dlf_documents.uid IN (' . implode(',', $documentSet) . ')' . tx_dlf_helper::whereClause('tx_dlf_documents'),
416 416
             '',
417 417
             '',
418 418
             ''
419 419
         );
420 420
 
421
-        $toplevel = array ();
421
+        $toplevel = array();
422 422
 
423
-        $subparts = array ();
423
+        $subparts = array();
424 424
 
425
-        $listMetadata = array ();
425
+        $listMetadata = array();
426 426
 
427 427
         // Process results.
428 428
         while ($resArray = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($documents)) {
@@ -435,15 +435,15 @@  discard block
 block discarded – undo
435 435
 
436 436
             if (empty($listMetadata)) {
437 437
 
438
-                $listMetadata = array (
438
+                $listMetadata = array(
439 439
                     'label' => !empty($l10nOverlay['label']) ? htmlspecialchars($l10nOverlay['label']) : htmlspecialchars($collectionData['collLabel']),
440 440
                     'description' => !empty($l10nOverlay['description']) ? $this->pi_RTEcssText($l10nOverlay['description']) : $this->pi_RTEcssText($collectionData['collDesc']),
441 441
                     'thumbnail' => htmlspecialchars($collectionData['collThumb']),
442
-                    'options' => array (
442
+                    'options' => array(
443 443
                         'source' => 'collection',
444 444
                         'select' => $id,
445 445
                         'userid' => $collectionData['userid'],
446
-                        'params' => array ('filterquery' => array (array ('query' => 'collection_faceting:("'.$collectionData['index_name'].'")'))),
446
+                        'params' => array('filterquery' => array(array('query' => 'collection_faceting:("' . $collectionData['index_name'] . '")'))),
447 447
                         'core' => '',
448 448
                         'pid' => $this->conf['pages'],
449 449
                         'order' => 'title',
@@ -477,20 +477,20 @@  discard block
 block discarded – undo
477 477
             // Split toplevel documents from volumes.
478 478
             if ($resArray['partof'] == 0) {
479 479
 
480
-                $toplevel[$resArray['uid']] = array (
480
+                $toplevel[$resArray['uid']] = array(
481 481
                     'u' => $resArray['uid'],
482 482
                     'h' => '',
483 483
                     's' => $sorting,
484
-                    'p' => array ()
484
+                    'p' => array()
485 485
                 );
486 486
 
487 487
             } else {
488 488
 
489
-                $subparts[$resArray['partof']][$resArray['volume_sorting']] = array (
489
+                $subparts[$resArray['partof']][$resArray['volume_sorting']] = array(
490 490
                    'u' => $resArray['uid'],
491 491
                    'h' => '',
492 492
                    's' => $sorting,
493
-                   'p' => array ()
493
+                   'p' => array()
494 494
                 );
495 495
 
496 496
             }
@@ -535,7 +535,7 @@  discard block
 block discarded – undo
535 535
         \TYPO3\CMS\Core\Utility\GeneralUtility::cleanOutputBuffers();
536 536
 
537 537
         // Send headers.
538
-        header('Location: '.\TYPO3\CMS\Core\Utility\GeneralUtility::locationHeaderUrl($this->cObj->typoLink_URL(array ('parameter' => $this->conf['targetPid']))));
538
+        header('Location: ' . \TYPO3\CMS\Core\Utility\GeneralUtility::locationHeaderUrl($this->cObj->typoLink_URL(array('parameter' => $this->conf['targetPid']))));
539 539
 
540 540
         // Flush output buffer and end script processing.
541 541
         ob_end_flush();
Please login to merge, or discard this patch.
Upper-Lower-Casing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
         $this->init($conf);
45 45
 
46 46
         // Turn cache on.
47
-        $this->setCache(TRUE);
47
+        $this->setCache(true);
48 48
 
49 49
         // Quit without doing anything if required configuration variables are not set.
50 50
         if (empty($this->conf['pages'])) {
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
             $conf = array (
249 249
                 'useCacheHash' => 1,
250 250
                 'parameter' => $GLOBALS['TSFE']->id,
251
-                'additionalParams' => \TYPO3\CMS\Core\Utility\GeneralUtility::implodeArrayForUrl($this->prefixId, $additionalParams, '', TRUE, FALSE)
251
+                'additionalParams' => \TYPO3\CMS\Core\Utility\GeneralUtility::implodeArrayForUrl($this->prefixId, $additionalParams, '', true, false)
252 252
             );
253 253
 
254 254
             // Link collection's title to list view.
@@ -257,9 +257,9 @@  discard block
 block discarded – undo
257 257
             // Add feed link if applicable.
258 258
             if (!empty($this->conf['targetFeed'])) {
259 259
 
260
-                $img = '<img src="'.\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey).'res/icons/txdlffeeds.png" alt="'.$this->pi_getLL('feedAlt', '', TRUE).'" title="'.$this->pi_getLL('feedTitle', '', TRUE).'" />';
260
+                $img = '<img src="'.\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey).'res/icons/txdlffeeds.png" alt="'.$this->pi_getLL('feedAlt', '', true).'" title="'.$this->pi_getLL('feedTitle', '', true).'" />';
261 261
 
262
-                $markerArray[$_key]['###FEED###'] = $this->pi_linkTP($img, array ($this->prefixId => array ('collection' => $collection['uid'])), FALSE, $this->conf['targetFeed']);
262
+                $markerArray[$_key]['###FEED###'] = $this->pi_linkTP($img, array ($this->prefixId => array ('collection' => $collection['uid'])), false, $this->conf['targetFeed']);
263 263
 
264 264
             } else {
265 265
 
@@ -282,11 +282,11 @@  discard block
 block discarded – undo
282 282
             $markerArray[$_key]['###DESCRIPTION###'] = $this->pi_RTEcssText($collection['description']);
283 283
 
284 284
             // Build statistic's output.
285
-            $labelTitles = $this->pi_getLL((count($collection['titles']) > 1 ? 'titles' : 'title'), '', FALSE);
285
+            $labelTitles = $this->pi_getLL((count($collection['titles']) > 1 ? 'titles' : 'title'), '', false);
286 286
 
287 287
             $markerArray[$_key]['###COUNT_TITLES###'] = htmlspecialchars(count($collection['titles']).$labelTitles);
288 288
 
289
-            $labelVolumes = $this->pi_getLL((count($collection['volumes']) > 1 ? 'volumes' : 'volume'), '', FALSE);
289
+            $labelVolumes = $this->pi_getLL((count($collection['volumes']) > 1 ? 'volumes' : 'volume'), '', false);
290 290
 
291 291
             $markerArray[$_key]['###COUNT_VOLUMES###'] = htmlspecialchars(count($collection['volumes']).$labelVolumes);
292 292
 
@@ -298,7 +298,7 @@  discard block
 block discarded – undo
298 298
             ksort($markerArray, SORT_NUMERIC);
299 299
 
300 300
             // Don't cache the output.
301
-            $this->setCache(FALSE);
301
+            $this->setCache(false);
302 302
 
303 303
         }
304 304
 
@@ -321,7 +321,7 @@  discard block
 block discarded – undo
321 321
 
322 322
         }
323 323
 
324
-        return $this->cObj->substituteSubpart($this->template, '###ENTRY###', $content, TRUE);
324
+        return $this->cObj->substituteSubpart($this->template, '###ENTRY###', $content, true);
325 325
 
326 326
     }
327 327
 
@@ -447,7 +447,7 @@  discard block
 block discarded – undo
447 447
                         'core' => '',
448 448
                         'pid' => $this->conf['pages'],
449 449
                         'order' => 'title',
450
-                        'order.asc' => TRUE
450
+                        'order.asc' => true
451 451
                     )
452 452
                 );
453 453
 
Please login to merge, or discard this patch.
plugins/toolbox/tools/fulltext/class.tx_dlf_toolsFulltext.php 3 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -88,10 +88,10 @@
 block discarded – undo
88 88
 
89 89
         if (!empty($fullTextFile)) {
90 90
             $markerArray['###FULLTEXT_SELECT###'] = '<a class="select switchoff" id="tx-dlf-tools-fulltext" title="" data-dic="fulltext-on:'
91
-                    .$this->pi_getLL('fulltext-on', '', TRUE).';fulltext-off:'
92
-                    .$this->pi_getLL('fulltext-off', '', TRUE).'">&nbsp;</a>';
91
+                    .$this->pi_getLL('fulltext-on', '', TRUE) . ';fulltext-off:'
92
+                    .$this->pi_getLL('fulltext-off', '', TRUE) . '">&nbsp;</a>';
93 93
         } else {
94
-            $markerArray['###FULLTEXT_SELECT###'] = '<span class="no-fulltext">'.$this->pi_getLL('fulltext-not-available', '', TRUE).'</span>';
94
+            $markerArray['###FULLTEXT_SELECT###'] = '<span class="no-fulltext">' . $this->pi_getLL('fulltext-not-available', '', TRUE) . '</span>';
95 95
         }
96 96
 
97 97
         $content .= $this->cObj->substituteMarkerArray($this->template, $markerArray);
Please login to merge, or discard this patch.
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,8 @@  discard block
 block discarded – undo
18 18
  * @subpackage	tx_dlf
19 19
  * @access	public
20 20
  */
21
-class tx_dlf_toolsFulltext extends tx_dlf_plugin {
21
+class tx_dlf_toolsFulltext extends tx_dlf_plugin
22
+{
22 23
 
23 24
     public $scriptRelPath = 'plugins/toolbox/tools/fulltext/class.tx_dlf_toolsFulltext.php';
24 25
 
@@ -32,7 +33,8 @@  discard block
 block discarded – undo
32 33
      *
33 34
      * @return	string		The content that is displayed on the website
34 35
      */
35
-    public function main($content, $conf) {
36
+    public function main($content, $conf)
37
+    {
36 38
 
37 39
         $this->init($conf);
38 40
 
Please login to merge, or discard this patch.
Upper-Lower-Casing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
         // Load current document.
43 43
         $this->loadDocument();
44 44
 
45
-        if ($this->doc === NULL || $this->doc->numPages < 1 || empty($this->conf['fileGrpFulltext'])) {
45
+        if ($this->doc === null || $this->doc->numPages < 1 || empty($this->conf['fileGrpFulltext'])) {
46 46
 
47 47
             // Quit without doing anything if required variables are not set.
48 48
             return $content;
@@ -88,10 +88,10 @@  discard block
 block discarded – undo
88 88
 
89 89
         if (!empty($fullTextFile)) {
90 90
             $markerArray['###FULLTEXT_SELECT###'] = '<a class="select switchoff" id="tx-dlf-tools-fulltext" title="" data-dic="fulltext-on:'
91
-                    .$this->pi_getLL('fulltext-on', '', TRUE).';fulltext-off:'
92
-                    .$this->pi_getLL('fulltext-off', '', TRUE).'">&nbsp;</a>';
91
+                    .$this->pi_getLL('fulltext-on', '', true).';fulltext-off:'
92
+                    .$this->pi_getLL('fulltext-off', '', true).'">&nbsp;</a>';
93 93
         } else {
94
-            $markerArray['###FULLTEXT_SELECT###'] = '<span class="no-fulltext">'.$this->pi_getLL('fulltext-not-available', '', TRUE).'</span>';
94
+            $markerArray['###FULLTEXT_SELECT###'] = '<span class="no-fulltext">'.$this->pi_getLL('fulltext-not-available', '', true).'</span>';
95 95
         }
96 96
 
97 97
         $content .= $this->cObj->substituteMarkerArray($this->template, $markerArray);
Please login to merge, or discard this patch.
plugins/toolbox/tools/pdf/class.tx_dlf_toolsPdf.php 3 patches
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -126,9 +126,9 @@  discard block
 block discarded – undo
126 126
         }
127 127
 
128 128
         if (TYPO3_DLOG && empty($page1Link) && empty($page2Link)) {
129
-            \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_toolsPdf->getPageLink()] '.
130
-                        'File not found in fileGrp "'.
131
-                        $this->conf['fileGrpDownload'].'"',
129
+            \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_toolsPdf->getPageLink()] ' .
130
+                        'File not found in fileGrp "' .
131
+                        $this->conf['fileGrpDownload'] . '"',
132 132
                         $this->extKey,
133 133
                         SYSLOG_SEVERITY_WARNING);
134 134
         }
@@ -137,18 +137,18 @@  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
-        return $page1Link.$page2Link;
151
+        return $page1Link . $page2Link;
152 152
     }
153 153
 
154 154
     /**
@@ -182,13 +182,13 @@  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
 
189 189
             if (TYPO3_DLOG) {
190 190
 
191
-                \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_toolsPdf->getWorkLink()] File not found in fileGrp "'.$this->conf['fileGrpDownload'].'"', $this->extKey, SYSLOG_SEVERITY_WARNING);
191
+                \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_toolsPdf->getWorkLink()] File not found in fileGrp "' . $this->conf['fileGrpDownload'] . '"', $this->extKey, SYSLOG_SEVERITY_WARNING);
192 192
 
193 193
             }
194 194
 
Please login to merge, or discard this patch.
Braces   +8 added lines, -4 removed lines patch added patch discarded remove patch
@@ -18,7 +18,8 @@  discard block
 block discarded – undo
18 18
  * @subpackage	tx_dlf
19 19
  * @access	public
20 20
  */
21
-class tx_dlf_toolsPdf extends tx_dlf_plugin {
21
+class tx_dlf_toolsPdf extends tx_dlf_plugin
22
+{
22 23
 
23 24
     public $scriptRelPath = 'plugins/toolbox/tools/pdf/class.tx_dlf_toolsPdf.php';
24 25
 
@@ -32,7 +33,8 @@  discard block
 block discarded – undo
32 33
      *
33 34
      * @return	string		The content that is displayed on the website
34 35
      */
35
-    public function main($content, $conf) {
36
+    public function main($content, $conf)
37
+    {
36 38
 
37 39
         $this->init($conf);
38 40
 
@@ -103,7 +105,8 @@  discard block
 block discarded – undo
103 105
      *
104 106
      * @return	string		Link to downloadable page
105 107
      */
106
-    protected function getPageLink() {
108
+    protected function getPageLink()
109
+    {
107 110
 
108 111
         $page1Link = '';
109 112
         $page2Link = '';
@@ -158,7 +161,8 @@  discard block
 block discarded – undo
158 161
      *
159 162
      * @return	string		Link to downloadable work
160 163
      */
161
-    protected function getWorkLink() {
164
+    protected function getWorkLink()
165
+    {
162 166
 
163 167
         $workLink = '';
164 168
 
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
         // Load current document.
43 43
         $this->loadDocument();
44 44
 
45
-        if ($this->doc === NULL || $this->doc->numPages < 1 || empty($this->conf['fileGrpDownload'])) {
45
+        if ($this->doc === null || $this->doc->numPages < 1 || empty($this->conf['fileGrpDownload'])) {
46 46
 
47 47
             // Quit without doing anything if required variables are not set.
48 48
             return $content;
Please login to merge, or discard this patch.
toolbox/tools/searchindocument/class.tx_dlf_toolsSearchindocument.php 3 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@
 block discarded – undo
110 110
      */
111 111
     protected function addSearchInDocumentJS() {
112 112
         $pageRenderer = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Page\PageRenderer::class);
113
-        $pageRenderer->addJsFooterFile(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey).'plugins/toolbox/tools/searchindocument/tx_dlf_search_in_document.js');
113
+        $pageRenderer->addJsFooterFile(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey) . 'plugins/toolbox/tools/searchindocument/tx_dlf_search_in_document.js');
114 114
     }
115 115
 
116 116
     /**
Please login to merge, or discard this patch.
Braces   +8 added lines, -4 removed lines patch added patch discarded remove patch
@@ -17,7 +17,8 @@  discard block
 block discarded – undo
17 17
  * @subpackage	tx_dlf
18 18
  * @access	public
19 19
  */
20
-class tx_dlf_toolsSearchindocument extends tx_dlf_plugin {
20
+class tx_dlf_toolsSearchindocument extends tx_dlf_plugin
21
+{
21 22
 
22 23
     public $scriptRelPath = 'plugins/toolbox/tools/searchindocument/class.tx_dlf_toolsSearchindocument.php';
23 24
 
@@ -31,7 +32,8 @@  discard block
 block discarded – undo
31 32
      *
32 33
      * @return	string		The content that is displayed on the website
33 34
      */
34
-    public function main($content, $conf) {
35
+    public function main($content, $conf)
36
+    {
35 37
 
36 38
         $this->init($conf);
37 39
 
@@ -108,7 +110,8 @@  discard block
 block discarded – undo
108 110
      *
109 111
      * @return void
110 112
      */
111
-    protected function addSearchInDocumentJS() {
113
+    protected function addSearchInDocumentJS()
114
+    {
112 115
         $pageRenderer = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Page\PageRenderer::class);
113 116
         $pageRenderer->addJsFooterFile(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey).'plugins/toolbox/tools/searchindocument/tx_dlf_search_in_document.js');
114 117
     }
@@ -120,7 +123,8 @@  discard block
 block discarded – undo
120 123
      *
121 124
      * @return array with encrypted core name and hash
122 125
      */
123
-    protected function getEncryptedCoreName() {
126
+    protected function getEncryptedCoreName()
127
+    {
124 128
         // Get core name.
125 129
         $name = tx_dlf_helper::getIndexName($this->conf['solrcore'], 'tx_dlf_solrcores');
126 130
         // Encrypt core name.
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
         // Load current document.
46 46
         $this->loadDocument();
47 47
 
48
-        if ($this->doc === NULL || $this->doc->numPages < 1 || empty($this->conf['fileGrpFulltext']) || empty($this->conf['solrcore'])) {
48
+        if ($this->doc === null || $this->doc->numPages < 1 || empty($this->conf['fileGrpFulltext']) || empty($this->conf['solrcore'])) {
49 49
 
50 50
             // Quit without doing anything if required variables are not set.
51 51
             return $content;
Please login to merge, or discard this patch.
toolbox/tools/searchindocument/class.tx_dlf_search_in_document_eid.php 3 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,8 +42,8 @@
 block discarded – undo
42 42
         if (!empty($core)) {
43 43
 
44 44
             $url = trim(tx_dlf_solr::getSolrUrl($core), '/').'/select?wt=json&q='.urlencode('fulltext:('.tx_dlf_solr::escapeQuery(\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('q'))).')%20AND%20uid:'.\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('uid')
45
-              .'&hl=on&hl.fl=fulltext&fl=uid,id,page&hl.method=fastVector'
46
-              .'&start='.\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('start').'&rows=20';
45
+                .'&hl=on&hl.fl=fulltext&fl=uid,id,page&hl.method=fastVector'
46
+                .'&start='.\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('start').'&rows=20';
47 47
 
48 48
             $output = \TYPO3\CMS\Core\Utility\GeneralUtility::getUrl($url);
49 49
         }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      *
32 32
      * @return	string JSON response of search suggestions
33 33
      */
34
-    public function main($content = '', $conf = array ()) {
34
+    public function main($content = '', $conf = array()) {
35 35
 
36 36
         if (\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('encrypted') != '' && \TYPO3\CMS\Core\Utility\GeneralUtility::_GP('hashed') != '') {
37 37
 
@@ -41,9 +41,9 @@  discard block
 block discarded – undo
41 41
 
42 42
         if (!empty($core)) {
43 43
 
44
-            $url = trim(tx_dlf_solr::getSolrUrl($core), '/').'/select?wt=json&q='.urlencode('fulltext:('.tx_dlf_solr::escapeQuery(\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('q'))).')%20AND%20uid:'.\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('uid')
44
+            $url = trim(tx_dlf_solr::getSolrUrl($core), '/') . '/select?wt=json&q=' . urlencode('fulltext:(' . tx_dlf_solr::escapeQuery(\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('q'))) . ')%20AND%20uid:' . \TYPO3\CMS\Core\Utility\GeneralUtility::_GP('uid')
45 45
               .'&hl=on&hl.fl=fulltext&fl=uid,id,page&hl.method=fastVector'
46
-              .'&start='.\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('start').'&rows=20';
46
+              .'&start=' . \TYPO3\CMS\Core\Utility\GeneralUtility::_GP('start') . '&rows=20';
47 47
 
48 48
             $output = \TYPO3\CMS\Core\Utility\GeneralUtility::getUrl($url);
49 49
         }
Please login to merge, or discard this patch.
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,7 +17,8 @@  discard block
 block discarded – undo
17 17
  * @subpackage	tx_dlf
18 18
  * @access	public
19 19
  */
20
-class tx_dlf_search_in_document_eid extends \TYPO3\CMS\Frontend\Plugin\AbstractPlugin {
20
+class tx_dlf_search_in_document_eid extends \TYPO3\CMS\Frontend\Plugin\AbstractPlugin
21
+{
21 22
 
22 23
     public $scriptRelPath = 'plugins/toolbox/tools/searchindocument/class.tx_dlf_search_in_document.php';
23 24
 
@@ -31,7 +32,8 @@  discard block
 block discarded – undo
31 32
      *
32 33
      * @return	string JSON response of search suggestions
33 34
      */
34
-    public function main($content = '', $conf = array ()) {
35
+    public function main($content = '', $conf = array ())
36
+    {
35 37
 
36 38
         if (\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('encrypted') != '' && \TYPO3\CMS\Core\Utility\GeneralUtility::_GP('hashed') != '') {
37 39
 
Please login to merge, or discard this patch.
plugins/toolbox/tools/imagedownload/class.tx_dlf_toolsImagedownload.php 3 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
      */
109 109
     protected function getImage($page, $label) {
110 110
 
111
-        $image = array ();
111
+        $image = array();
112 112
 
113 113
         // Get @USE value of METS fileGrp.
114 114
         $fileGrps = \TYPO3\CMS\Core\Utility\GeneralUtility::trimExplode(',', $this->conf['fileGrpsImageDownload']);
@@ -129,13 +129,13 @@  discard block
 block discarded – undo
129 129
                             break;
130 130
                     default:	$mimetypeLabel = '';
131 131
                 }
132
-                $linkConf = array (
132
+                $linkConf = array(
133 133
                     'parameter' => $image['url'],
134
-                    'title' => $label.' '.$mimetypeLabel,
134
+                    'title' => $label . ' ' . $mimetypeLabel,
135 135
                     'additionalParams' => '',
136 136
                 );
137 137
 
138
-                $imageLink = $this->cObj->typoLink($label.' '.$mimetypeLabel, $linkConf);
138
+                $imageLink = $this->cObj->typoLink($label . ' ' . $mimetypeLabel, $linkConf);
139 139
 
140 140
                 break;
141 141
 
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
 
144 144
                 if (TYPO3_DLOG) {
145 145
 
146
-                    \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_toolsImagedownload->getImage('.$page.')] File not found in fileGrp "'.$fileGrp.'"', $this->extKey, SYSLOG_SEVERITY_WARNING);
146
+                    \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_toolsImagedownload->getImage(' . $page . ')] File not found in fileGrp "' . $fileGrp . '"', $this->extKey, SYSLOG_SEVERITY_WARNING);
147 147
 
148 148
                 }
149 149
 
Please login to merge, or discard this patch.
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,7 +17,8 @@  discard block
 block discarded – undo
17 17
  * @subpackage	tx_dlf
18 18
  * @access	public
19 19
  */
20
-class tx_dlf_toolsImagedownload extends tx_dlf_plugin {
20
+class tx_dlf_toolsImagedownload extends tx_dlf_plugin
21
+{
21 22
 
22 23
     public $scriptRelPath = 'plugins/toolbox/tools/imagedownload/class.tx_dlf_toolsImagedownload.php';
23 24
 
@@ -31,7 +32,8 @@  discard block
 block discarded – undo
31 32
      *
32 33
      * @return	string		The content that is displayed on the website
33 34
      */
34
-    public function main($content, $conf) {
35
+    public function main($content, $conf)
36
+    {
35 37
 
36 38
         $this->init($conf);
37 39
 
@@ -106,7 +108,8 @@  discard block
 block discarded – undo
106 108
      *
107 109
      * @return	string	linkt to image file with given label
108 110
      */
109
-    protected function getImage($page, $label) {
111
+    protected function getImage($page, $label)
112
+    {
110 113
 
111 114
         $image = array ();
112 115
 
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
         // Load current document.
42 42
         $this->loadDocument();
43 43
 
44
-        if ($this->doc === NULL || $this->doc->numPages < 1 || empty($this->conf['fileGrpsImageDownload'])) {
44
+        if ($this->doc === null || $this->doc->numPages < 1 || empty($this->conf['fileGrpsImageDownload'])) {
45 45
 
46 46
             // Quit without doing anything if required variables are not set.
47 47
             return $content;
Please login to merge, or discard this patch.
toolbox/tools/imagemanipulation/class.tx_dlf_toolsImagemanipulation.php 3 patches
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -53,15 +53,15 @@
 block discarded – undo
53 53
         }
54 54
 
55 55
         $markerArray['###IMAGEMANIPULATION_SELECT###'] = '<span class="tx-dlf-tools-imagetools" id="tx-dlf-tools-imagetools" data-dic="imagemanipulation-on:'
56
-            .$this->pi_getLL('imagemanipulation-on', '', TRUE).';imagemanipulation-off:'
57
-            .$this->pi_getLL('imagemanipulation-off', '', TRUE).';reset:'
58
-            .$this->pi_getLL('reset', '', TRUE).';saturation:'
59
-            .$this->pi_getLL('saturation', '', TRUE).';hue:'
60
-            .$this->pi_getLL('hue', '', TRUE).';contrast:'
61
-            .$this->pi_getLL('contrast', '', TRUE).';brightness:'
62
-            .$this->pi_getLL('brightness', '', TRUE).';invert:'
63
-            .$this->pi_getLL('invert', '', TRUE).'" title="'
64
-            .$this->pi_getLL('no-support', '', TRUE).'"></span>';
56
+            .$this->pi_getLL('imagemanipulation-on', '', TRUE) . ';imagemanipulation-off:'
57
+            .$this->pi_getLL('imagemanipulation-off', '', TRUE) . ';reset:'
58
+            .$this->pi_getLL('reset', '', TRUE) . ';saturation:'
59
+            .$this->pi_getLL('saturation', '', TRUE) . ';hue:'
60
+            .$this->pi_getLL('hue', '', TRUE) . ';contrast:'
61
+            .$this->pi_getLL('contrast', '', TRUE) . ';brightness:'
62
+            .$this->pi_getLL('brightness', '', TRUE) . ';invert:'
63
+            .$this->pi_getLL('invert', '', TRUE) . '" title="'
64
+            .$this->pi_getLL('no-support', '', TRUE) . '"></span>';
65 65
 
66 66
         $content .= $this->cObj->substituteMarkerArray($this->template, $markerArray);
67 67
 
Please login to merge, or discard this patch.
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,7 +17,8 @@  discard block
 block discarded – undo
17 17
  * @subpackage	tx_dlf
18 18
  * @access	public
19 19
  */
20
-class tx_dlf_toolsImagemanipulation extends tx_dlf_plugin {
20
+class tx_dlf_toolsImagemanipulation extends tx_dlf_plugin
21
+{
21 22
 
22 23
     public $scriptRelPath = 'plugins/toolbox/tools/imagemanipulation/class.tx_dlf_toolsImagemanipulation.php';
23 24
 
@@ -31,7 +32,8 @@  discard block
 block discarded – undo
31 32
      *
32 33
      * @return	string		The content that is displayed on the website
33 34
      */
34
-    public function main($content, $conf) {
35
+    public function main($content, $conf)
36
+    {
35 37
 
36 38
         $this->init($conf);
37 39
 
Please login to merge, or discard this patch.
Upper-Lower-Casing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -53,15 +53,15 @@
 block discarded – undo
53 53
         }
54 54
 
55 55
         $markerArray['###IMAGEMANIPULATION_SELECT###'] = '<span class="tx-dlf-tools-imagetools" id="tx-dlf-tools-imagetools" data-dic="imagemanipulation-on:'
56
-            .$this->pi_getLL('imagemanipulation-on', '', TRUE).';imagemanipulation-off:'
57
-            .$this->pi_getLL('imagemanipulation-off', '', TRUE).';reset:'
58
-            .$this->pi_getLL('reset', '', TRUE).';saturation:'
59
-            .$this->pi_getLL('saturation', '', TRUE).';hue:'
60
-            .$this->pi_getLL('hue', '', TRUE).';contrast:'
61
-            .$this->pi_getLL('contrast', '', TRUE).';brightness:'
62
-            .$this->pi_getLL('brightness', '', TRUE).';invert:'
63
-            .$this->pi_getLL('invert', '', TRUE).'" title="'
64
-            .$this->pi_getLL('no-support', '', TRUE).'"></span>';
56
+            .$this->pi_getLL('imagemanipulation-on', '', true).';imagemanipulation-off:'
57
+            .$this->pi_getLL('imagemanipulation-off', '', true).';reset:'
58
+            .$this->pi_getLL('reset', '', true).';saturation:'
59
+            .$this->pi_getLL('saturation', '', true).';hue:'
60
+            .$this->pi_getLL('hue', '', true).';contrast:'
61
+            .$this->pi_getLL('contrast', '', true).';brightness:'
62
+            .$this->pi_getLL('brightness', '', true).';invert:'
63
+            .$this->pi_getLL('invert', '', true).'" title="'
64
+            .$this->pi_getLL('no-support', '', true).'"></span>';
65 65
 
66 66
         $content .= $this->cObj->substituteMarkerArray($this->template, $markerArray);
67 67
 
Please login to merge, or discard this patch.
plugins/toolbox/class.tx_dlf_toolbox.php 3 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
         }
55 55
 
56 56
         // Build data array.
57
-        $data = array (
57
+        $data = array(
58 58
             'conf' => $this->conf,
59 59
             'piVars' => $this->piVars,
60 60
         );
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
 
74 74
             $cObj->data = $data;
75 75
 
76
-            $content .= $this->cObj->substituteMarkerArray($subpart, array ('###TOOL###' => $cObj->cObjGetSingle($GLOBALS['TSFE']->tmpl->setup['plugin.'][$tool], $GLOBALS['TSFE']->tmpl->setup['plugin.'][$tool.'.'])));
76
+            $content .= $this->cObj->substituteMarkerArray($subpart, array('###TOOL###' => $cObj->cObjGetSingle($GLOBALS['TSFE']->tmpl->setup['plugin.'][$tool], $GLOBALS['TSFE']->tmpl->setup['plugin.'][$tool . '.'])));
77 77
 
78 78
         }
79 79
 
Please login to merge, or discard this patch.
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,7 +17,8 @@  discard block
 block discarded – undo
17 17
  * @subpackage	tx_dlf
18 18
  * @access	public
19 19
  */
20
-class tx_dlf_toolbox extends tx_dlf_plugin {
20
+class tx_dlf_toolbox extends tx_dlf_plugin
21
+{
21 22
 
22 23
     public $scriptRelPath = 'plugins/toolbox/class.tx_dlf_toolbox.php';
23 24
 
@@ -31,7 +32,8 @@  discard block
 block discarded – undo
31 32
      *
32 33
      * @return	string		The content that is displayed on the website
33 34
      */
34
-    public function main($content, $conf) {
35
+    public function main($content, $conf)
36
+    {
35 37
 
36 38
         $this->init($conf);
37 39
 
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
 
78 78
         }
79 79
 
80
-        return $this->pi_wrapInBaseClass($this->cObj->substituteSubpart($this->template, '###TOOLS###', $content, TRUE));
80
+        return $this->pi_wrapInBaseClass($this->cObj->substituteSubpart($this->template, '###TOOLS###', $content, true));
81 81
 
82 82
     }
83 83
 
Please login to merge, or discard this patch.