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 ( 31a7fe...291efa )
by Sebastian
17s queued 14s
created
toolbox/tools/imagemanipulation/class.tx_dlf_toolsImagemanipulation.php 1 patch
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.
plugins/toolbox/class.tx_dlf_toolbox.php 1 patch
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.
plugins/metadata/class.tx_dlf_metadata.php 1 patch
Spacing   +12 added lines, -12 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,18 +66,18 @@  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
 
78 78
                 foreach ($this->doc->smLinks['p2l'][$this->doc->physicalStructure[$this->piVars['page']]] as $logId) {
79 79
 
80
-                    $count = count($this->doc->mets->xpath('./mets:structMap[@TYPE="LOGICAL"]//mets:div[@ID="'.$logId.'"]/ancestor::*'));
80
+                    $count = count($this->doc->mets->xpath('./mets:structMap[@TYPE="LOGICAL"]//mets:div[@ID="' . $logId . '"]/ancestor::*'));
81 81
 
82 82
                     $ids[$count][] = $logId;
83 83
 
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
 
152 152
             if (TYPO3_DLOG) {
153 153
 
154
-                \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_metadata->main('.$content.', [data])] No metadata found for document with UID "'.$this->doc->uid.'"', $this->extKey, SYSLOG_SEVERITY_WARNING, $conf);
154
+                \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_metadata->main(' . $content . ', [data])] No metadata found for document with UID "' . $this->doc->uid . '"', $this->extKey, SYSLOG_SEVERITY_WARNING, $conf);
155 155
 
156 156
             }
157 157
 
@@ -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,12 +246,12 @@  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',
253 253
             'tx_dlf_collections',
254
-            'tx_dlf_collections.pid='.intval($this->conf['pages']).tx_dlf_helper::whereClause('tx_dlf_collections'),
254
+            'tx_dlf_collections.pid=' . intval($this->conf['pages']) . tx_dlf_helper::whereClause('tx_dlf_collections'),
255 255
             '',
256 256
             '',
257 257
             ''
@@ -309,7 +309,7 @@  discard block
 block discarded – undo
309 309
 
310 310
                             if (!empty($superiorTitle)) {
311 311
 
312
-                                $value = '['.$superiorTitle.']';
312
+                                $value = '[' . $superiorTitle . ']';
313 313
 
314 314
                             }
315 315
 
@@ -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.
plugins/pagegrid/class.tx_dlf_pagegrid.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -62,11 +62,11 @@  discard block
 block discarded – undo
62 62
 
63 63
         } else {
64 64
 
65
-            $thumbnailFile = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey).'plugins/pagegrid/placeholder.jpg';
65
+            $thumbnailFile = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey) . 'plugins/pagegrid/placeholder.jpg';
66 66
 
67 67
         }
68 68
 
69
-        $thumbnail = '<img alt="'.$markerArray['###PAGINATION###'].'" src="'.$thumbnailFile.'" />';
69
+        $thumbnail = '<img alt="' . $markerArray['###PAGINATION###'] . '" src="' . $thumbnailFile . '" />';
70 70
 
71 71
         // Get new plugin variables for typolink.
72 72
         $piVars = $this->piVars;
@@ -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,11 +115,11 @@  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
 
122
-            $output = $this->pi_getLL('prevPage', '&lt;', TRUE).$separator;
122
+            $output = $this->pi_getLL('prevPage', '&lt;', TRUE) . $separator;
123 123
 
124 124
         }
125 125
 
@@ -132,11 +132,11 @@  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
 
139
-                    $output .= sprintf($this->pi_getLL('page', '%d', TRUE), $i + 1).$separator;
139
+                    $output .= sprintf($this->pi_getLL('page', '%d', TRUE), $i + 1) . $separator;
140 140
 
141 141
                 }
142 142
 
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
 
145 145
             } elseif ($skip == TRUE) {
146 146
 
147
-                $output .= $this->pi_getLL('skip', '...', TRUE).$separator;
147
+                $output .= $this->pi_getLL('skip', '...', TRUE) . $separator;
148 148
 
149 149
                 $skip = FALSE;
150 150
 
@@ -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
 
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
 
215 215
             if (TYPO3_DLOG) {
216 216
 
217
-                \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_pagegrid->main('.$content.', [data])] No template subpart for list entry found', $this->extKey, SYSLOG_SEVERITY_WARNING, $conf);
217
+                \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_pagegrid->main(' . $content . ', [data])] No template subpart for list entry found', $this->extKey, SYSLOG_SEVERITY_WARNING, $conf);
218 218
 
219 219
             }
220 220
 
Please login to merge, or discard this patch.
plugins/audioplayer/class.tx_dlf_audioplayer.php 1 patch
Spacing   +10 added lines, -10 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 $audio = array ();
30
+    protected $audio = array();
31 31
 
32 32
     /**
33 33
      * Adds Player javascript
@@ -38,13 +38,13 @@  discard block
 block discarded – undo
38 38
      */
39 39
     protected function addPlayerJS() {
40 40
 
41
-        $output = array ();
41
+        $output = array();
42 42
 
43
-        $output[] = '<link type="text/css" rel="stylesheet" href="'.\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey).'lib/jPlayer/blue.monday/css/jplayer.blue.monday.min.css">';
43
+        $output[] = '<link type="text/css" rel="stylesheet" href="' . \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey) . 'lib/jPlayer/blue.monday/css/jplayer.blue.monday.min.css">';
44 44
 
45
-        $output[] = '<script type="text/javascript" src="'.\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey).'lib/jPlayer/jquery.jplayer.min.js"></script>';
45
+        $output[] = '<script type="text/javascript" src="' . \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey) . 'lib/jPlayer/jquery.jplayer.min.js"></script>';
46 46
 
47
-        $output[] = '<script type="text/javascript" src="'.\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey).'plugins/audioplayer/js/tx_dlf_audioplayer.js"></script>';
47
+        $output[] = '<script type="text/javascript" src="' . \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey) . 'plugins/audioplayer/js/tx_dlf_audioplayer.js"></script>';
48 48
 
49 49
         // Add player configuration.
50 50
         $output[] = '
@@ -55,12 +55,12 @@  discard block
 block discarded – undo
55 55
 			$(document).ready(function() {
56 56
 				tx_dlf_audioplayer = new dlfAudioPlayer({
57 57
 					audio: {
58
-						mimeType: "' . $this->audio['mimetype'].'",
59
-						title: "' . $this->audio['label'].'",
60
-						url:  "' . $this->audio['url'].'"
58
+						mimeType: "' . $this->audio['mimetype'] . '",
59
+						title: "' . $this->audio['label'] . '",
60
+						url:  "' . $this->audio['url'] . '"
61 61
 					},
62 62
 					parentElId: "tx-dlf-audio",
63
-					swfPath: "'.\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey).'lib/jPlayer/jquery.jplayer.swf"
63
+					swfPath: "'.\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey) . 'lib/jPlayer/jquery.jplayer.swf"
64 64
 				});
65 65
 			});
66 66
 		</script>';
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
         }
139 139
 
140 140
         // Fill in the template markers.
141
-        $markerArray = array (
141
+        $markerArray = array(
142 142
             '###PLAYER_JS###' => $this->addPlayerJS()
143 143
         );
144 144
 
Please login to merge, or discard this patch.
plugins/statistics/class.tx_dlf_statistics.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 
44 44
             if (TYPO3_DLOG) {
45 45
 
46
-                \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_statistics->main('.$content.', [data])] Incomplete plugin configuration', $this->extKey, SYSLOG_SEVERITY_WARNING, $conf);
46
+                \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_statistics->main(' . $content . ', [data])] Incomplete plugin configuration', $this->extKey, SYSLOG_SEVERITY_WARNING, $conf);
47 47
 
48 48
             }
49 49
 
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
                 'tx_dlf_documents',
64 64
                 'tx_dlf_relations',
65 65
                 'tx_dlf_collections',
66
-                'AND tx_dlf_documents.pid='.intval($this->conf['pages']).' AND tx_dlf_collections.pid='.intval($this->conf['pages']).' AND tx_dlf_documents.partof=0 AND tx_dlf_collections.uid IN ('.$GLOBALS['TYPO3_DB']->cleanIntList($this->conf['collections']).') AND tx_dlf_relations.ident='.$GLOBALS['TYPO3_DB']->fullQuoteStr('docs_colls', 'tx_dlf_relations').tx_dlf_helper::whereClause('tx_dlf_documents').tx_dlf_helper::whereClause('tx_dlf_collections'),
66
+                'AND tx_dlf_documents.pid=' . intval($this->conf['pages']) . ' AND tx_dlf_collections.pid=' . intval($this->conf['pages']) . ' AND tx_dlf_documents.partof=0 AND tx_dlf_collections.uid IN (' . $GLOBALS['TYPO3_DB']->cleanIntList($this->conf['collections']) . ') AND tx_dlf_relations.ident=' . $GLOBALS['TYPO3_DB']->fullQuoteStr('docs_colls', 'tx_dlf_relations') . tx_dlf_helper::whereClause('tx_dlf_documents') . tx_dlf_helper::whereClause('tx_dlf_collections'),
67 67
                 'tx_dlf_documents.uid',
68 68
                 '',
69 69
                 ''
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
                 'tx_dlf_documents',
75 75
                 'tx_dlf_relations',
76 76
                 'tx_dlf_collections',
77
-                'AND tx_dlf_documents.pid='.intval($this->conf['pages']).' AND tx_dlf_collections.pid='.intval($this->conf['pages']).' AND NOT tx_dlf_documents.uid IN (SELECT DISTINCT tx_dlf_documents.partof FROM tx_dlf_documents WHERE NOT tx_dlf_documents.partof=0'.tx_dlf_helper::whereClause('tx_dlf_documents').') AND tx_dlf_collections.uid IN ('.$GLOBALS['TYPO3_DB']->cleanIntList($this->conf['collections']).') AND tx_dlf_relations.ident='.$GLOBALS['TYPO3_DB']->fullQuoteStr('docs_colls', 'tx_dlf_relations').tx_dlf_helper::whereClause('tx_dlf_documents').tx_dlf_helper::whereClause('tx_dlf_collections'),
77
+                'AND tx_dlf_documents.pid=' . intval($this->conf['pages']) . ' AND tx_dlf_collections.pid=' . intval($this->conf['pages']) . ' AND NOT tx_dlf_documents.uid IN (SELECT DISTINCT tx_dlf_documents.partof FROM tx_dlf_documents WHERE NOT tx_dlf_documents.partof=0' . tx_dlf_helper::whereClause('tx_dlf_documents') . ') AND tx_dlf_collections.uid IN (' . $GLOBALS['TYPO3_DB']->cleanIntList($this->conf['collections']) . ') AND tx_dlf_relations.ident=' . $GLOBALS['TYPO3_DB']->fullQuoteStr('docs_colls', 'tx_dlf_relations') . tx_dlf_helper::whereClause('tx_dlf_documents') . tx_dlf_helper::whereClause('tx_dlf_collections'),
78 78
                 'tx_dlf_documents.uid',
79 79
                 '',
80 80
                 ''
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
             $resultTitles = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
87 87
                 'tx_dlf_documents.uid AS uid',
88 88
                 'tx_dlf_documents',
89
-                'tx_dlf_documents.pid='.intval($this->conf['pages']).' AND tx_dlf_documents.partof=0'.tx_dlf_helper::whereClause('tx_dlf_documents'),
89
+                'tx_dlf_documents.pid=' . intval($this->conf['pages']) . ' AND tx_dlf_documents.partof=0' . tx_dlf_helper::whereClause('tx_dlf_documents'),
90 90
                 '',
91 91
                 '',
92 92
                 ''
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
             $resultVolumes = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
96 96
                 'tx_dlf_documents.uid AS uid',
97 97
                 'tx_dlf_documents',
98
-                'tx_dlf_documents.pid='.intval($this->conf['pages']).' AND NOT tx_dlf_documents.uid IN (SELECT DISTINCT tx_dlf_documents.partof FROM tx_dlf_documents WHERE NOT tx_dlf_documents.partof=0'.tx_dlf_helper::whereClause('tx_dlf_documents').')'.tx_dlf_helper::whereClause('tx_dlf_documents'),
98
+                'tx_dlf_documents.pid=' . intval($this->conf['pages']) . ' AND NOT tx_dlf_documents.uid IN (SELECT DISTINCT tx_dlf_documents.partof FROM tx_dlf_documents WHERE NOT tx_dlf_documents.partof=0' . tx_dlf_helper::whereClause('tx_dlf_documents') . ')' . tx_dlf_helper::whereClause('tx_dlf_documents'),
99 99
                 '',
100 100
                 '',
101 101
                 ''
@@ -108,14 +108,14 @@  discard block
 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 (
117
-                $countTitles.($countTitles > 1 ? $this->pi_getLL('titles', '', TRUE) : $this->pi_getLL('title', '', TRUE)),
118
-                $countVolumes.($countVolumes > 1 ? $this->pi_getLL('volumes', '', TRUE) : $this->pi_getLL('volume', '', TRUE))
116
+            'value' => array(
117
+                $countTitles . ($countTitles > 1 ? $this->pi_getLL('titles', '', TRUE) : $this->pi_getLL('title', '', TRUE)),
118
+                $countVolumes . ($countVolumes > 1 ? $this->pi_getLL('volumes', '', TRUE) : $this->pi_getLL('volume', '', TRUE))
119 119
             )
120 120
         );
121 121
 
Please login to merge, or discard this patch.
plugins/pageview/class.tx_dlf_geturl_eid.php 1 patch
Spacing   +4 added lines, -4 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
 
@@ -64,11 +64,11 @@  discard block
 block discarded – undo
64 64
         }
65 65
 
66 66
         // add some self calculated header tags
67
-        header('Last-Modified: '.gmdate("D, d M Y H:i:s").'GMT');
67
+        header('Last-Modified: ' . gmdate("D, d M Y H:i:s") . 'GMT');
68 68
         header('Cache-Control: max-age=3600, must-revalidate');
69
-        header('Content-Length: '.strlen($fetchedData));
69
+        header('Content-Length: ' . strlen($fetchedData));
70 70
         $fi = finfo_open(FILEINFO_MIME);
71
-        header('Content-Type: '.finfo_buffer($fi, $fetchedData));
71
+        header('Content-Type: ' . finfo_buffer($fi, $fetchedData));
72 72
 
73 73
         // take some tags from request header and overwrite in case already set
74 74
         $fetchedHeader = explode("\n", GeneralUtility::getUrl($url, 2));
Please login to merge, or discard this patch.
plugins/toc/class.tx_dlf_toc.php 1 patch
Spacing   +18 added lines, -18 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 $activeEntries = array ();
30
+    protected $activeEntries = array();
31 31
 
32 32
     /**
33 33
      * This builds an array for one menu entry
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
      */
42 42
     protected function getMenuEntry(array $entry, $recursive = FALSE) {
43 43
 
44
-        $entryArray = array ();
44
+        $entryArray = array();
45 45
 
46 46
         // Set "title", "volume", "type" and "pagination" from $entry array.
47 47
         $entryArray['title'] = !empty($entry['label']) ? $entry['label'] : $entry['orderlabel'];
@@ -63,37 +63,37 @@  discard block
 block discarded – undo
63 63
         // Build menu links based on the $entry['points'] array.
64 64
         if (!empty($entry['points']) && \TYPO3\CMS\Core\Utility\MathUtility::canBeInterpretedAsInteger($entry['points'])) {
65 65
 
66
-            $entryArray['_OVERRIDE_HREF'] = $this->pi_linkTP_keepPIvars_url(array ('page' => $entry['points']), TRUE, FALSE, $this->conf['targetPid']);
66
+            $entryArray['_OVERRIDE_HREF'] = $this->pi_linkTP_keepPIvars_url(array('page' => $entry['points']), TRUE, FALSE, $this->conf['targetPid']);
67 67
 
68 68
             $entryArray['doNotLinkIt'] = 0;
69 69
 
70 70
             if ($this->conf['basketButton']) {
71 71
 
72
-                $entryArray['basketButtonHref'] = '<a href="'.$this->pi_linkTP_keepPIvars_url(array ('addToBasket' => 'toc', 'logId' => $entry['id'], 'startpage' => $entry['points']), TRUE, FALSE, $this->conf['targetBasket']).'">'.$this->pi_getLL('basketButton', '', TRUE).'</a>';
72
+                $entryArray['basketButtonHref'] = '<a href="' . $this->pi_linkTP_keepPIvars_url(array('addToBasket' => 'toc', 'logId' => $entry['id'], 'startpage' => $entry['points']), TRUE, FALSE, $this->conf['targetBasket']) . '">' . $this->pi_getLL('basketButton', '', TRUE) . '</a>';
73 73
 
74 74
             }
75 75
 
76 76
         } elseif (!empty($entry['points']) && is_string($entry['points'])) {
77 77
 
78
-            $entryArray['_OVERRIDE_HREF'] = $this->pi_linkTP_keepPIvars_url(array ('id' => $entry['points'], 'page' => 1), TRUE, FALSE, $this->conf['targetPid']);
78
+            $entryArray['_OVERRIDE_HREF'] = $this->pi_linkTP_keepPIvars_url(array('id' => $entry['points'], 'page' => 1), TRUE, FALSE, $this->conf['targetPid']);
79 79
 
80 80
             $entryArray['doNotLinkIt'] = 0;
81 81
 
82 82
             if ($this->conf['basketButton']) {
83 83
 
84
-                $entryArray['basketButtonHref'] = '<a href="'.$this->pi_linkTP_keepPIvars_url(array ('addToBasket' => 'toc', 'logId' => $entry['id'], 'startpage' => $entry['points']), TRUE, FALSE, $this->conf['targetBasket']).'">'.$this->pi_getLL('basketButton', '', TRUE).'</a>';
84
+                $entryArray['basketButtonHref'] = '<a href="' . $this->pi_linkTP_keepPIvars_url(array('addToBasket' => 'toc', 'logId' => $entry['id'], 'startpage' => $entry['points']), TRUE, FALSE, $this->conf['targetBasket']) . '">' . $this->pi_getLL('basketButton', '', TRUE) . '</a>';
85 85
 
86 86
             }
87 87
 
88 88
         } elseif (!empty($entry['targetUid'])) {
89 89
 
90
-            $entryArray['_OVERRIDE_HREF'] = $this->pi_linkTP_keepPIvars_url(array ('id' => $entry['targetUid'], 'page' => 1), TRUE, FALSE, $this->conf['targetPid']);
90
+            $entryArray['_OVERRIDE_HREF'] = $this->pi_linkTP_keepPIvars_url(array('id' => $entry['targetUid'], 'page' => 1), TRUE, FALSE, $this->conf['targetPid']);
91 91
 
92 92
             $entryArray['doNotLinkIt'] = 0;
93 93
 
94 94
             if ($this->conf['basketButton']) {
95 95
 
96
-                $entryArray['basketButtonHref'] = '<a href="'.$this->pi_linkTP_keepPIvars_url(array ('addToBasket' => 'toc', 'logId' => $entry['id'], 'startpage' => $entry['targetUid']), TRUE, FALSE, $this->conf['targetBasket']).'">'.$this->pi_getLL('basketButton', '', TRUE).'</a>';
96
+                $entryArray['basketButtonHref'] = '<a href="' . $this->pi_linkTP_keepPIvars_url(array('addToBasket' => 'toc', 'logId' => $entry['id'], 'startpage' => $entry['targetUid']), TRUE, FALSE, $this->conf['targetBasket']) . '">' . $this->pi_getLL('basketButton', '', TRUE) . '</a>';
97 97
 
98 98
             }
99 99
 
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
             // 4. Current menu node has no corresponding images
117 117
             if (!empty($this->conf['menuConf.']['expAll']) || $entryArray['ITEM_STATE'] == 'CUR' || is_string($entry['points']) || empty($this->doc->smLinks['l2p'][$entry['id']])) {
118 118
 
119
-                $entryArray['_SUB_MENU'] = array ();
119
+                $entryArray['_SUB_MENU'] = array();
120 120
 
121 121
                 foreach ($entry['children'] as $child) {
122 122
 
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
             }
135 135
 
136 136
             // Append "IFSUB" to "ITEM_STATE" if this entry has sub-entries.
137
-            $entryArray['ITEM_STATE'] = ($entryArray['ITEM_STATE'] == 'NO' ? 'IFSUB' : $entryArray['ITEM_STATE'].'IFSUB');
137
+            $entryArray['ITEM_STATE'] = ($entryArray['ITEM_STATE'] == 'NO' ? 'IFSUB' : $entryArray['ITEM_STATE'] . 'IFSUB');
138 138
 
139 139
         }
140 140
 
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
 
162 162
             if (TYPO3_DLOG) {
163 163
 
164
-                \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_toc->main('.$content.', [data])] Incomplete plugin configuration', $this->extKey, SYSLOG_SEVERITY_WARNING, $conf);
164
+                \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_toc->main(' . $content . ', [data])] Incomplete plugin configuration', $this->extKey, SYSLOG_SEVERITY_WARNING, $conf);
165 165
 
166 166
             }
167 167
 
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
 
181 181
         }
182 182
 
183
-        $TSconfig = array ();
183
+        $TSconfig = array();
184 184
 
185 185
         $TSconfig['special'] = 'userfunction';
186 186
 
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
         if ($this->doc === NULL) {
217 217
 
218 218
             // Quit without doing anything if required variables are not set.
219
-            return array ();
219
+            return array();
220 220
 
221 221
         } else {
222 222
 
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
 
245 245
         }
246 246
 
247
-        $menuArray = array ();
247
+        $menuArray = array();
248 248
 
249 249
         // Does the document have physical elements or is it an external file?
250 250
         if ($this->doc->physicalStructure || !\TYPO3\CMS\Core\Utility\MathUtility::canBeInterpretedAsInteger($this->doc->uid)) {
@@ -279,11 +279,11 @@  discard block
 block discarded – undo
279 279
             }
280 280
 
281 281
             // Get all child documents from database.
282
-            $whereClause = 'tx_dlf_documents.partof='.intval($this->doc->uid).' AND tx_dlf_documents.structure=tx_dlf_structures.uid AND tx_dlf_structures.pid='.$this->doc->pid.tx_dlf_helper::whereClause('tx_dlf_documents').tx_dlf_helper::whereClause('tx_dlf_structures');
282
+            $whereClause = 'tx_dlf_documents.partof=' . intval($this->doc->uid) . ' AND tx_dlf_documents.structure=tx_dlf_structures.uid AND tx_dlf_structures.pid=' . $this->doc->pid . tx_dlf_helper::whereClause('tx_dlf_documents') . tx_dlf_helper::whereClause('tx_dlf_structures');
283 283
 
284 284
             if ($this->conf['excludeOther']) {
285 285
 
286
-                $whereClause .= ' AND tx_dlf_documents.pid='.intval($this->conf['pages']);
286
+                $whereClause .= ' AND tx_dlf_documents.pid=' . intval($this->conf['pages']);
287 287
 
288 288
             }
289 289
 
@@ -301,11 +301,11 @@  discard block
 block discarded – undo
301 301
 
302 302
                 $menuArray[0]['ITEM_STATE'] = 'CURIFSUB';
303 303
 
304
-                $menuArray[0]['_SUB_MENU'] = array ();
304
+                $menuArray[0]['_SUB_MENU'] = array();
305 305
 
306 306
                 while ($resArray = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($result)) {
307 307
 
308
-                    $entry = array (
308
+                    $entry = array(
309 309
                         'label' => $resArray['title'],
310 310
                         'type' => $resArray['type'],
311 311
                         'volume' => $resArray['volume'],
Please login to merge, or discard this patch.
plugins/feeds/class.tx_dlf_feeds.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
         $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
63 63
             'tx_dlf_libraries.label AS label',
64 64
             'tx_dlf_libraries',
65
-            'tx_dlf_libraries.pid='.intval($this->conf['pages']).' AND tx_dlf_libraries.uid='.intval($this->conf['library']).tx_dlf_helper::whereClause('tx_dlf_libraries'),
65
+            'tx_dlf_libraries.pid=' . intval($this->conf['pages']) . ' AND tx_dlf_libraries.uid=' . intval($this->conf['library']) . tx_dlf_helper::whereClause('tx_dlf_libraries'),
66 66
             '',
67 67
             '',
68 68
             '1'
@@ -88,11 +88,11 @@  discard block
 block discarded – undo
88 88
             // Check for pre-selected collections.
89 89
             if (!empty($this->piVars['collection'])) {
90 90
 
91
-                $additionalWhere = ' AND tx_dlf_collections.uid='.intval($this->piVars['collection']);
91
+                $additionalWhere = ' AND tx_dlf_collections.uid=' . intval($this->piVars['collection']);
92 92
 
93 93
             } elseif (!empty($this->conf['collections'])) {
94 94
 
95
-                $additionalWhere = ' AND tx_dlf_collections.uid IN ('.$GLOBALS['TYPO3_DB']->cleanIntList($this->conf['collections']).')';
95
+                $additionalWhere = ' AND tx_dlf_collections.uid IN (' . $GLOBALS['TYPO3_DB']->cleanIntList($this->conf['collections']) . ')';
96 96
 
97 97
             }
98 98
 
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
                 'tx_dlf_documents',
102 102
                 'tx_dlf_relations',
103 103
                 'tx_dlf_collections',
104
-                'AND tx_dlf_documents.pid='.intval($this->conf['pages']).' AND tx_dlf_relations.ident='.$GLOBALS['TYPO3_DB']->fullQuoteStr('docs_colls', 'tx_dlf_relations').' AND tx_dlf_collections.pid='.intval($this->conf['pages']).$additionalWhere.tx_dlf_helper::whereClause('tx_dlf_documents').tx_dlf_helper::whereClause('tx_dlf_collections'),
104
+                'AND tx_dlf_documents.pid=' . intval($this->conf['pages']) . ' AND tx_dlf_relations.ident=' . $GLOBALS['TYPO3_DB']->fullQuoteStr('docs_colls', 'tx_dlf_relations') . ' AND tx_dlf_collections.pid=' . intval($this->conf['pages']) . $additionalWhere . tx_dlf_helper::whereClause('tx_dlf_documents') . tx_dlf_helper::whereClause('tx_dlf_collections'),
105 105
                 'tx_dlf_documents.uid',
106 106
                 'tx_dlf_documents.tstamp DESC',
107 107
                 intval($this->conf['limit'])
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
 
124 124
                         if (!empty($superiorTitle)) {
125 125
 
126
-                            $title .= '['.$superiorTitle.']';
126
+                            $title .= '[' . $superiorTitle . ']';
127 127
 
128 128
                         }
129 129
 
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
                     // Get title of document.
133 133
                     if (!empty($resArray['title'])) {
134 134
 
135
-                        $title .= ' '.$resArray['title'];
135
+                        $title .= ' ' . $resArray['title'];
136 136
 
137 137
                     }
138 138
 
@@ -146,28 +146,28 @@  discard block
 block discarded – undo
146 146
                     // Append volume information.
147 147
                     if (!empty($resArray['volume'])) {
148 148
 
149
-                        $title .= ', '.$this->pi_getLL('volume').' '.$resArray['volume'];
149
+                        $title .= ', ' . $this->pi_getLL('volume') . ' ' . $resArray['volume'];
150 150
 
151 151
                     }
152 152
 
153 153
                     // Is this document new or updated?
154 154
                     if ($resArray['crdate'] == $resArray['tstamp']) {
155 155
 
156
-                        $title = $this->pi_getLL('new').' '.trim($title);
156
+                        $title = $this->pi_getLL('new') . ' ' . trim($title);
157 157
 
158 158
                     } else {
159 159
 
160
-                        $title = $this->pi_getLL('update').' '.trim($title);
160
+                        $title = $this->pi_getLL('update') . ' ' . trim($title);
161 161
 
162 162
                     }
163 163
 
164 164
                     $item->appendChild($rss->createElement('title', htmlspecialchars($title, ENT_NOQUOTES, 'UTF-8')));
165 165
 
166 166
                     // Add link.
167
-                    $linkConf = array (
167
+                    $linkConf = array(
168 168
                         'parameter' => $this->conf['targetPid'],
169 169
                         'forceAbsoluteUrl' => 1,
170
-                        'additionalParams' => \TYPO3\CMS\Core\Utility\GeneralUtility::implodeArrayForUrl($this->prefixId, array ('id' => $resArray['uid']), '', TRUE, FALSE)
170
+                        'additionalParams' => \TYPO3\CMS\Core\Utility\GeneralUtility::implodeArrayForUrl($this->prefixId, array('id' => $resArray['uid']), '', TRUE, FALSE)
171 171
                     );
172 172
 
173 173
                     $item->appendChild($rss->createElement('link', htmlspecialchars($this->cObj->typoLink_URL($linkConf), ENT_NOQUOTES, 'UTF-8')));
@@ -208,13 +208,13 @@  discard block
 block discarded – undo
208 208
 
209 209
         header('Cache-Control: no-cache');
210 210
 
211
-        header('Content-Length: '.strlen($content));
211
+        header('Content-Length: ' . strlen($content));
212 212
 
213 213
         header('Content-Type: application/rss+xml; charset=utf-8');
214 214
 
215
-        header('Date: '.date('r', $GLOBALS['EXEC_TIME']));
215
+        header('Date: ' . date('r', $GLOBALS['EXEC_TIME']));
216 216
 
217
-        header('Expires: '.date('r', $GLOBALS['EXEC_TIME']));
217
+        header('Expires: ' . date('r', $GLOBALS['EXEC_TIME']));
218 218
 
219 219
         echo $content;
220 220
 
Please login to merge, or discard this patch.