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
Configuration/TCA/tx_dlf_collections.php 1 patch
Spacing   +68 added lines, -68 removed lines patch added patch discarded remove patch
@@ -9,8 +9,8 @@  discard block
 block discarded – undo
9 9
  * LICENSE.txt file that was distributed with this source code.
10 10
  */
11 11
 
12
-return array (
13
-    'ctrl' => array (
12
+return array(
13
+    'ctrl' => array(
14 14
         'title'     => 'LLL:EXT:dlf/locallang.xml:tx_dlf_collections',
15 15
         'label'     => 'label',
16 16
         'tstamp'    => 'tstamp',
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
         'transOrigDiffSourceField' => 'l18n_diffsource',
24 24
         'default_sortby' => 'ORDER BY label',
25 25
         'delete'	=> 'deleted',
26
-        'enablecolumns' => array (
26
+        'enablecolumns' => array(
27 27
             'disabled' => 'hidden',
28 28
             'fe_group' => 'fe_group',
29 29
         ),
@@ -33,65 +33,65 @@  discard block
 block discarded – undo
33 33
         'dividers2tabs' => 2,
34 34
         'searchFields' => 'label,index_name,oai_name,fe_cruser_id',
35 35
     ),
36
-    'feInterface' => array (
36
+    'feInterface' => array(
37 37
         'fe_admin_fieldList' => 'label,description,thumbnail,documents',
38 38
     ),
39
-    'interface' => array (
39
+    'interface' => array(
40 40
         'showRecordFieldList' => 'label,index_name,oai_name,fe_cruser_id',
41 41
     ),
42
-    'columns' => array (
43
-        'sys_language_uid' => array (
42
+    'columns' => array(
43
+        'sys_language_uid' => array(
44 44
             'exclude' => 1,
45 45
             'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.language',
46
-            'config' => array (
46
+            'config' => array(
47 47
                 'type' => 'select',
48 48
                 'renderType' => 'selectSingle',
49 49
                 'foreign_table' => 'sys_language',
50 50
                 'foreign_table_where' => 'ORDER BY sys_language.title',
51
-                'items' => array (
52
-                    array ('LLL:EXT:lang/locallang_general.xml:LGL.allLanguages', -1),
53
-                    array ('LLL:EXT:lang/locallang_general.xml:LGL.default_value', 0),
51
+                'items' => array(
52
+                    array('LLL:EXT:lang/locallang_general.xml:LGL.allLanguages', -1),
53
+                    array('LLL:EXT:lang/locallang_general.xml:LGL.default_value', 0),
54 54
                 ),
55 55
                 'default' => 0,
56 56
             ),
57 57
         ),
58
-        'l18n_parent' => array (
58
+        'l18n_parent' => array(
59 59
             'displayCond' => 'FIELD:sys_language_uid:>:0',
60 60
             'exclude' => 1,
61 61
             'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.l18n_parent',
62
-            'config' => array (
62
+            'config' => array(
63 63
                 'type' => 'select',
64 64
                 'renderType' => 'selectSingle',
65
-                'items' => array (
66
-                    array ('', 0),
65
+                'items' => array(
66
+                    array('', 0),
67 67
                 ),
68 68
                 'foreign_table' => 'tx_dlf_collections',
69 69
                 'foreign_table_where' => 'AND tx_dlf_collections.pid=###CURRENT_PID### AND tx_dlf_collections.sys_language_uid IN (-1,0)',
70 70
             ),
71 71
         ),
72
-        'l18n_diffsource' => array (
73
-            'config' => array (
72
+        'l18n_diffsource' => array(
73
+            'config' => array(
74 74
                 'type' => 'passthrough'
75 75
             ),
76 76
         ),
77
-        'hidden' => array (
77
+        'hidden' => array(
78 78
             'exclude' => 1,
79 79
             'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.hidden',
80
-            'config' => array (
80
+            'config' => array(
81 81
                 'type' => 'check',
82 82
                 'default' => 0,
83 83
             ),
84 84
         ),
85
-        'fe_group' => array (
85
+        'fe_group' => array(
86 86
             'exclude' => 1,
87 87
             'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.fe_group',
88
-            'config' => array (
88
+            'config' => array(
89 89
                 'type' => 'select',
90 90
                 'renderType' => 'selectMultipleSideBySide',
91
-                'items' => array (
92
-                    array ('LLL:EXT:lang/locallang_general.xml:LGL.hide_at_login', -1),
93
-                    array ('LLL:EXT:lang/locallang_general.xml:LGL.any_login', -2),
94
-                    array ('LLL:EXT:lang/locallang_general.xml:LGL.usergroups', '--div--'),
91
+                'items' => array(
92
+                    array('LLL:EXT:lang/locallang_general.xml:LGL.hide_at_login', -1),
93
+                    array('LLL:EXT:lang/locallang_general.xml:LGL.any_login', -2),
94
+                    array('LLL:EXT:lang/locallang_general.xml:LGL.usergroups', '--div--'),
95 95
                 ),
96 96
                 'foreign_table' => 'fe_groups',
97 97
                 'size' => 5,
@@ -101,54 +101,54 @@  discard block
 block discarded – undo
101 101
                 'exclusiveKeys' => '-1,-2',
102 102
             ),
103 103
         ),
104
-        'label' => array (
104
+        'label' => array(
105 105
             'exclude' => 1,
106 106
             'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_collections.label',
107
-            'config' => array (
107
+            'config' => array(
108 108
                 'type' => 'input',
109 109
                 'size' => 30,
110 110
                 'max' => 255,
111 111
                 'eval' => 'required,trim',
112 112
             ),
113 113
         ),
114
-        'index_name' => array (
114
+        'index_name' => array(
115 115
             'exclude' => 1,
116 116
             'l10n_mode' => 'exclude',
117 117
             'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_collections.index_name',
118
-            'config' => array (
118
+            'config' => array(
119 119
                 'type' => 'none',
120 120
                 'size' => 30,
121 121
                 'max' => 255,
122 122
                 'eval' => 'required,uniqueInPid',
123 123
             ),
124 124
         ),
125
-        'index_search' => array (
125
+        'index_search' => array(
126 126
             'exclude' => 1,
127 127
             'l10n_mode' => 'exclude',
128 128
             'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_collections.index_search',
129
-            'config' => array (
129
+            'config' => array(
130 130
                 'type' => 'text',
131 131
                 'size' => 30,
132 132
                 'rows' => 5,
133 133
                 'eval' => 'trim',
134 134
             ),
135 135
         ),
136
-        'oai_name' => array (
136
+        'oai_name' => array(
137 137
             'exclude' => 1,
138 138
             'l10n_mode' => 'exclude',
139 139
             'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_collections.oai_name',
140
-            'config' => array (
140
+            'config' => array(
141 141
                 'type' => 'input',
142 142
                 'size' => 30,
143 143
                 'max' => 255,
144 144
                 'eval' => 'nospace,alphanum_x,uniqueInPid',
145 145
             ),
146 146
         ),
147
-        'description' => array (
147
+        'description' => array(
148 148
             'exclude' => 1,
149 149
             'l10n_mode' => 'mergeIfNotBlank',
150 150
             'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_collections.description',
151
-            'config' => array (
151
+            'config' => array(
152 152
                 'type' => 'text',
153 153
                 'cols' => 30,
154 154
                 'rows' => 10,
@@ -156,11 +156,11 @@  discard block
 block discarded – undo
156 156
             ),
157 157
             'defaultExtras' => 'richtext[undo,redo,cut,copy,paste,link,image,line,acronym,chMode,blockstylelabel,formatblock,blockstyle,textstylelabel,textstyle,bold,italic,unorderedlist,orderedlist]:rte_transform[mode=ts_css]',
158 158
         ),
159
-        'thumbnail' => array (
159
+        'thumbnail' => array(
160 160
             'exclude' => 1,
161 161
             'l10n_mode' => 'exclude',
162 162
             'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_collections.thumbnail',
163
-            'config' => array (
163
+            'config' => array(
164 164
                 'type' => 'group',
165 165
                 'internal_type' => 'file_reference',
166 166
                 'allowed' => 'gif,jpg,png',
@@ -169,19 +169,19 @@  discard block
 block discarded – undo
169 169
                 'maxitems' => 1,
170 170
             ),
171 171
         ),
172
-        'priority' => array (
172
+        'priority' => array(
173 173
             'exclude' => 1,
174 174
             'l10n_mode' => 'exclude',
175 175
             'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_collections.priority',
176
-            'config' => array (
176
+            'config' => array(
177 177
                 'type' => 'select',
178 178
                 'renderType' => 'selectSingle',
179
-                'items' => array (
180
-                    array ('1', 1),
181
-                    array ('2', 2),
182
-                    array ('3', 3),
183
-                    array ('4', 4),
184
-                    array ('5', 5),
179
+                'items' => array(
180
+                    array('1', 1),
181
+                    array('2', 2),
182
+                    array('3', 3),
183
+                    array('4', 4),
184
+                    array('5', 5),
185 185
                 ),
186 186
                 'size' => 1,
187 187
                 'minitems' => 1,
@@ -189,11 +189,11 @@  discard block
 block discarded – undo
189 189
                 'default' => 3,
190 190
             ),
191 191
         ),
192
-        'documents' => array (
192
+        'documents' => array(
193 193
             'exclude' => 1,
194 194
             'l10n_mode' => 'exclude',
195 195
             'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_collections.documents',
196
-            'config' => array (
196
+            'config' => array(
197 197
                 'type' => 'select',
198 198
                 'renderType' => 'selectSingleBox',
199 199
                 'foreign_table' => 'tx_dlf_documents',
@@ -203,21 +203,21 @@  discard block
 block discarded – undo
203 203
                 'minitems' => 0,
204 204
                 'maxitems' => 1048576,
205 205
                 'MM' => 'tx_dlf_relations',
206
-                'MM_match_fields' => array (
206
+                'MM_match_fields' => array(
207 207
                     'ident' => 'docs_colls',
208 208
                 ),
209 209
                 'MM_opposite_field' => 'collections',
210 210
             ),
211 211
         ),
212
-        'owner' => array (
212
+        'owner' => array(
213 213
             'exclude' => 1,
214 214
             'l10n_mode' => 'exclude',
215 215
             'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_collections.owner',
216
-            'config' => array (
216
+            'config' => array(
217 217
                 'type' => 'select',
218 218
                 'renderType' => 'selectSingle',
219
-                'items' => array (
220
-                    array ('LLL:EXT:dlf/locallang.xml:tx_dlf_collections.owner.none', 0),
219
+                'items' => array(
220
+                    array('LLL:EXT:dlf/locallang.xml:tx_dlf_collections.owner.none', 0),
221 221
                 ),
222 222
                 'foreign_table' => 'tx_dlf_libraries',
223 223
                 'foreign_table_where' => 'AND tx_dlf_libraries.sys_language_uid IN (-1,0) ORDER BY tx_dlf_libraries.label',
@@ -226,15 +226,15 @@  discard block
 block discarded – undo
226 226
                 'maxitems' => 1,
227 227
             ),
228 228
         ),
229
-        'fe_cruser_id' => array (
229
+        'fe_cruser_id' => array(
230 230
             'exclude' => 1,
231 231
             'l10n_mode' => 'exclude',
232 232
             'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_collections.fe_cruser_id',
233
-            'config' => array (
233
+            'config' => array(
234 234
                 'type' => 'select',
235 235
                 'renderType' => 'selectSingle',
236
-                'items' => array (
237
-                    array ('LLL:EXT:dlf/locallang.xml:tx_dlf_collections.fe_cruser_id.none', 0),
236
+                'items' => array(
237
+                    array('LLL:EXT:dlf/locallang.xml:tx_dlf_collections.fe_cruser_id.none', 0),
238 238
                 ),
239 239
                 'foreign_table' => 'fe_users',
240 240
                 'foreign_table_where' => 'ORDER BY fe_users.username',
@@ -243,24 +243,24 @@  discard block
 block discarded – undo
243 243
                 'maxitems' => 1,
244 244
             ),
245 245
         ),
246
-        'fe_admin_lock' => array (
246
+        'fe_admin_lock' => array(
247 247
             'exclude' => 1,
248 248
             'l10n_mode' => 'exclude',
249 249
             'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_collections.fe_admin_lock',
250
-            'config' => array (
250
+            'config' => array(
251 251
                 'type' => 'check',
252 252
                 'default' => 0,
253 253
             ),
254 254
         ),
255
-        'status' => array (
255
+        'status' => array(
256 256
             'exclude' => 1,
257 257
             'l10n_mode' => 'exclude',
258 258
             'label' => 'LLL:EXT:dlf/locallang.xml:tx_dlf_collections.status',
259
-            'config' => array (
259
+            'config' => array(
260 260
                 'type' => 'select',
261 261
                 'renderType' => 'selectSingle',
262
-                'items' => array (
263
-                    array ('LLL:EXT:dlf/locallang.xml:tx_dlf_collections.status.default', 0),
262
+                'items' => array(
263
+                    array('LLL:EXT:dlf/locallang.xml:tx_dlf_collections.status.default', 0),
264 264
                 ),
265 265
                 'size' => 1,
266 266
                 'minitems' => 1,
@@ -269,12 +269,12 @@  discard block
 block discarded – undo
269 269
             ),
270 270
         ),
271 271
     ),
272
-    'types' => array (
273
-        '0' => array ('showitem' => '--div--;LLL:EXT:dlf/locallang.xml:tx_dlf_collections.tab1, label,--palette--;;1;;1-1-1, description,--palette--;;2;;2-2-2, --div--;LLL:EXT:dlf/locallang.xml:tx_dlf_collections.tab2, sys_language_uid;;;;1-1-1, l18n_parent, l18n_diffsource, --div--;LLL:EXT:dlf/locallang.xml:tx_dlf_collections.tab3, hidden;;;;1-1-1, fe_group;;;;2-2-2, status;;;;3-3-3, owner;;;;4-4-4, fe_cruser_id,--palette--;;3'),
272
+    'types' => array(
273
+        '0' => array('showitem' => '--div--;LLL:EXT:dlf/locallang.xml:tx_dlf_collections.tab1, label,--palette--;;1;;1-1-1, description,--palette--;;2;;2-2-2, --div--;LLL:EXT:dlf/locallang.xml:tx_dlf_collections.tab2, sys_language_uid;;;;1-1-1, l18n_parent, l18n_diffsource, --div--;LLL:EXT:dlf/locallang.xml:tx_dlf_collections.tab3, hidden;;;;1-1-1, fe_group;;;;2-2-2, status;;;;3-3-3, owner;;;;4-4-4, fe_cruser_id,--palette--;;3'),
274 274
     ),
275
-    'palettes' => array (
276
-        '1' => array ('showitem' => 'index_name, --linebreak--, index_search, --linebreak--, oai_name', 'canNotCollapse' => 1),
277
-        '2' => array ('showitem' => 'thumbnail, priority', 'canNotCollapse' => 1),
278
-        '3' => array ('showitem' => 'fe_admin_lock', 'canNotCollapse' => 1),
275
+    'palettes' => array(
276
+        '1' => array('showitem' => 'index_name, --linebreak--, index_search, --linebreak--, oai_name', 'canNotCollapse' => 1),
277
+        '2' => array('showitem' => 'thumbnail, priority', 'canNotCollapse' => 1),
278
+        '3' => array('showitem' => 'fe_admin_lock', 'canNotCollapse' => 1),
279 279
     ),
280 280
 );
Please login to merge, or discard this patch.
ext_localconf.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -48,38 +48,38 @@
 block discarded – undo
48 48
 
49 49
 // Register tools for toolbox plugin.
50 50
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPItoST43($_EXTKEY, 'plugins/toolbox/tools/fulltext/class.tx_dlf_toolsFulltext.php', '_toolsFulltext', '', TRUE);
51
-$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/plugins/toolbox/tools'][\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getCN($_EXTKEY).'_toolsFulltext'] = 'LLL:EXT:dlf/locallang.xml:tx_dlf_toolbox.toolsFulltext';
51
+$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/plugins/toolbox/tools'][\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getCN($_EXTKEY) . '_toolsFulltext'] = 'LLL:EXT:dlf/locallang.xml:tx_dlf_toolbox.toolsFulltext';
52 52
 
53 53
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPItoST43($_EXTKEY, 'plugins/toolbox/tools/imagemanipulation/class.tx_dlf_toolsImagemanipulation.php', '_toolsImagemanipulation', '', TRUE);
54
-$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/plugins/toolbox/tools'][\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getCN($_EXTKEY).'_toolsImagemanipulation'] = 'LLL:EXT:dlf/locallang.xml:tx_dlf_toolbox.toolsImagemanipulation';
54
+$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/plugins/toolbox/tools'][\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getCN($_EXTKEY) . '_toolsImagemanipulation'] = 'LLL:EXT:dlf/locallang.xml:tx_dlf_toolbox.toolsImagemanipulation';
55 55
 
56 56
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPItoST43($_EXTKEY, 'plugins/toolbox/tools/pdf/class.tx_dlf_toolsPdf.php', '_toolsPdf', '', TRUE);
57
-$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/plugins/toolbox/tools'][\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getCN($_EXTKEY).'_toolsPdf'] = 'LLL:EXT:dlf/locallang.xml:tx_dlf_toolbox.toolsPdf';
57
+$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/plugins/toolbox/tools'][\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getCN($_EXTKEY) . '_toolsPdf'] = 'LLL:EXT:dlf/locallang.xml:tx_dlf_toolbox.toolsPdf';
58 58
 
59 59
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPItoST43($_EXTKEY, 'plugins/toolbox/tools/imagedownload/class.tx_dlf_toolsImagedownload.php', '_toolsImagedownload', '', TRUE);
60
-$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/plugins/toolbox/tools'][\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getCN($_EXTKEY).'_toolsImagedownload'] = 'LLL:EXT:dlf/locallang.xml:tx_dlf_toolbox.toolsImagedownload';
60
+$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/plugins/toolbox/tools'][\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getCN($_EXTKEY) . '_toolsImagedownload'] = 'LLL:EXT:dlf/locallang.xml:tx_dlf_toolbox.toolsImagedownload';
61 61
 
62 62
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPItoST43($_EXTKEY, 'plugins/toolbox/tools/searchindocument/class.tx_dlf_toolsSearchindocument.php', '_toolsSearchindocument', '', TRUE);
63
-$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/plugins/toolbox/tools'][\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getCN($_EXTKEY).'_toolsSearchindocument'] = 'LLL:EXT:dlf/locallang.xml:tx_dlf_toolbox.toolsSearchindocument';
63
+$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/plugins/toolbox/tools'][\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getCN($_EXTKEY) . '_toolsSearchindocument'] = 'LLL:EXT:dlf/locallang.xml:tx_dlf_toolbox.toolsSearchindocument';
64 64
 
65 65
 // Register hooks.
66
-$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = 'EXT:'.$_EXTKEY.'/hooks/class.tx_dlf_tcemain.php:tx_dlf_tcemain';
66
+$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = 'EXT:' . $_EXTKEY . '/hooks/class.tx_dlf_tcemain.php:tx_dlf_tcemain';
67 67
 
68
-$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass'][] = 'EXT:'.$_EXTKEY.'/hooks/class.tx_dlf_tcemain.php:tx_dlf_tcemain';
68
+$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass'][] = 'EXT:' . $_EXTKEY . '/hooks/class.tx_dlf_tcemain.php:tx_dlf_tcemain';
69 69
 
70
-$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/common/class.tx_dlf_document.php']['hookClass'][] = 'EXT:'.$_EXTKEY.'/hooks/class.tx_dlf_hacks.php:tx_dlf_hacks';
70
+$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/common/class.tx_dlf_document.php']['hookClass'][] = 'EXT:' . $_EXTKEY . '/hooks/class.tx_dlf_hacks.php:tx_dlf_hacks';
71 71
 
72 72
 // Register command line scripts.
73
-$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['cliKeys'][$_EXTKEY] = array ('EXT:'.$_EXTKEY.'/cli/class.tx_dlf_cli.php', '_CLI_dlf');
73
+$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['cliKeys'][$_EXTKEY] = array('EXT:' . $_EXTKEY . '/cli/class.tx_dlf_cli.php', '_CLI_dlf');
74 74
 
75 75
 // Register AJAX eID handlers.
76
-$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['tx_dlf_search_suggest'] = 'EXT:'.$_EXTKEY.'/plugins/search/class.tx_dlf_search_suggest.php';
76
+$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['tx_dlf_search_suggest'] = 'EXT:' . $_EXTKEY . '/plugins/search/class.tx_dlf_search_suggest.php';
77 77
 
78
-$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['tx_dlf_geturl_eid'] = 'EXT:'.$_EXTKEY.'/plugins/pageview/class.tx_dlf_geturl_eid.php';
78
+$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['tx_dlf_geturl_eid'] = 'EXT:' . $_EXTKEY . '/plugins/pageview/class.tx_dlf_geturl_eid.php';
79 79
 
80
-$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['tx_dlf_geturl_eid'] = 'EXT:'.$_EXTKEY.'/plugins/pageview/class.tx_dlf_geturl_eid.php';
80
+$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['tx_dlf_geturl_eid'] = 'EXT:' . $_EXTKEY . '/plugins/pageview/class.tx_dlf_geturl_eid.php';
81 81
 
82
-$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['tx_dlf_search_in_document_eid'] = 'EXT:'.$_EXTKEY.'/plugins/toolbox/tools/searchindocument/class.tx_dlf_search_in_document_eid.php';
82
+$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['tx_dlf_search_in_document_eid'] = 'EXT:' . $_EXTKEY . '/plugins/toolbox/tools/searchindocument/class.tx_dlf_search_in_document_eid.php';
83 83
 
84 84
 // add caching framework for Solr queries
85 85
 if (!is_array($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['tx_dlf_solr'])) {
Please login to merge, or discard this patch.
plugins/collection/class.tx_dlf_collection.php 1 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.
plugins/search/class.tx_dlf_search.php 1 patch
Spacing   +59 added lines, -59 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
         $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
37 37
             'tx_dlf_metadata.*',
38 38
             'tx_dlf_metadata',
39
-            'tx_dlf_metadata.index_autocomplete=1 AND tx_dlf_metadata.pid='.intval($this->conf['pages']).tx_dlf_helper::whereClause('tx_dlf_metadata'),
39
+            'tx_dlf_metadata.index_autocomplete=1 AND tx_dlf_metadata.pid=' . intval($this->conf['pages']) . tx_dlf_helper::whereClause('tx_dlf_metadata'),
40 40
             '',
41 41
             '',
42 42
             '1'
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 
45 45
         if ($GLOBALS['TYPO3_DB']->sql_num_rows($result)) {
46 46
 
47
-            $GLOBALS['TSFE']->additionalHeaderData[$this->prefixId.'_search_suggest'] = '<script type="text/javascript" src="'.\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey).'plugins/search/tx_dlf_search_suggest.js"></script>';
47
+            $GLOBALS['TSFE']->additionalHeaderData[$this->prefixId . '_search_suggest'] = '<script type="text/javascript" src="' . \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey) . 'plugins/search/tx_dlf_search_suggest.js"></script>';
48 48
 
49 49
         } else {
50 50
 
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
         if (!empty($list->metadata['options']['source']) && $list->metadata['options']['source'] == 'collection') {
74 74
 
75 75
             // Get collection's UID.
76
-            return '<input type="hidden" name="'.$this->prefixId.'[collection]" value="'.$list->metadata['options']['select'].'" />';
76
+            return '<input type="hidden" name="' . $this->prefixId . '[collection]" value="' . $list->metadata['options']['select'] . '" />';
77 77
 
78 78
         } elseif (!empty($list->metadata['options']['params']['filterquery'])) {
79 79
 
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
 
91 91
             }
92 92
 
93
-            return '<input type="hidden" name="'.$this->prefixId.'[collection]" value="'.$collectionId.'" />';
93
+            return '<input type="hidden" name="' . $this->prefixId . '[collection]" value="' . $collectionId . '" />';
94 94
 
95 95
         }
96 96
 
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
             // Get document's UID or parent ID.
119 119
             if ($this->doc->ready) {
120 120
 
121
-                return '<input type="hidden" name="'.$this->prefixId.'[id]" value="'.($this->doc->parentId > 0 ? $this->doc->parentId : $this->doc->uid).'" />';
121
+                return '<input type="hidden" name="' . $this->prefixId . '[id]" value="' . ($this->doc->parentId > 0 ? $this->doc->parentId : $this->doc->uid) . '" />';
122 122
 
123 123
             }
124 124
 
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
 
138 138
             }
139 139
 
140
-            return '<input type="hidden" name="'.$this->prefixId.'[id]" value="'.$documentId.'" />';
140
+            return '<input type="hidden" name="' . $this->prefixId . '[id]" value="' . $documentId . '" />';
141 141
 
142 142
         }
143 143
 
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
         // Add encrypted fields to search form.
168 168
         if (is_array($name)) {
169 169
 
170
-            return '<input type="hidden" name="'.$this->prefixId.'[encrypted]" value="'.$name['encrypted'].'" /><input type="hidden" name="'.$this->prefixId.'[hashed]" value="'.$name['hash'].'" />';
170
+            return '<input type="hidden" name="' . $this->prefixId . '[encrypted]" value="' . $name['encrypted'] . '" /><input type="hidden" name="' . $this->prefixId . '[hashed]" value="' . $name['hash'] . '" />';
171 171
 
172 172
         } else {
173 173
 
@@ -198,9 +198,9 @@  discard block
 block discarded – undo
198 198
         // Get operator options.
199 199
         $operatorOptions = '';
200 200
 
201
-        foreach (array ('AND', 'OR', 'NOT') as $operator) {
201
+        foreach (array('AND', 'OR', 'NOT') as $operator) {
202 202
 
203
-            $operatorOptions .= '<option class="tx-dlf-search-operator-option tx-dlf-search-operator-'.$operator.'" value="'.$operator.'">'.$this->pi_getLL($operator, '', TRUE).'</option>';
203
+            $operatorOptions .= '<option class="tx-dlf-search-operator-option tx-dlf-search-operator-' . $operator . '" value="' . $operator . '">' . $this->pi_getLL($operator, '', TRUE) . '</option>';
204 204
 
205 205
         }
206 206
 
@@ -211,16 +211,16 @@  discard block
 block discarded – undo
211 211
 
212 212
         foreach ($searchFields as $searchField) {
213 213
 
214
-            $fieldSelectorOptions .= '<option class="tx-dlf-search-field-option tx-dlf-search-field-'.$searchField.'" value="'.$searchField.'">'.tx_dlf_helper::translate($searchField, 'tx_dlf_metadata', $this->conf['pages']).'</option>';
214
+            $fieldSelectorOptions .= '<option class="tx-dlf-search-field-option tx-dlf-search-field-' . $searchField . '" value="' . $searchField . '">' . tx_dlf_helper::translate($searchField, 'tx_dlf_metadata', $this->conf['pages']) . '</option>';
215 215
 
216 216
         }
217 217
 
218 218
         for ($i = 0; $i < $this->conf['extendedSlotCount']; $i++) {
219 219
 
220
-            $markerArray = array (
221
-                '###EXT_SEARCH_OPERATOR###' => '<select class="tx-dlf-search-operator tx-dlf-search-operator-'.$i.'" name="'.$this->prefixId.'[extOperator]['.$i.']">'.$operatorOptions.'</select>',
222
-                '###EXT_SEARCH_FIELDSELECTOR###' => '<select class="tx-dlf-search-field tx-dlf-search-field-'.$i.'" name="'.$this->prefixId.'[extField]['.$i.']">'.$fieldSelectorOptions.'</select>',
223
-                '###EXT_SEARCH_FIELDQUERY###' => '<input class="tx-dlf-search-query tx-dlf-search-query-'.$i.'" type="text" name="'.$this->prefixId.'[extQuery]['.$i.']" />'
220
+            $markerArray = array(
221
+                '###EXT_SEARCH_OPERATOR###' => '<select class="tx-dlf-search-operator tx-dlf-search-operator-' . $i . '" name="' . $this->prefixId . '[extOperator][' . $i . ']">' . $operatorOptions . '</select>',
222
+                '###EXT_SEARCH_FIELDSELECTOR###' => '<select class="tx-dlf-search-field tx-dlf-search-field-' . $i . '" name="' . $this->prefixId . '[extField][' . $i . ']">' . $fieldSelectorOptions . '</select>',
223
+                '###EXT_SEARCH_FIELDQUERY###' => '<input class="tx-dlf-search-query tx-dlf-search-query-' . $i . '" type="text" name="' . $this->prefixId . '[extQuery][' . $i . ']" />'
224 224
             );
225 225
 
226 226
             $extendedSearch .= $this->cObj->substituteMarkerArray($this->cObj->getSubpart($this->template, '###EXT_SEARCH_ENTRY###'), $markerArray);
@@ -261,16 +261,16 @@  discard block
 block discarded – undo
261 261
         }
262 262
 
263 263
         // Get facets from plugin configuration.
264
-        $facets = array ();
264
+        $facets = array();
265 265
 
266 266
         foreach (\TYPO3\CMS\Core\Utility\GeneralUtility::trimExplode(',', $this->conf['facets'], TRUE) as $facet) {
267 267
 
268
-            $facets[$facet.'_faceting'] = tx_dlf_helper::translate($facet, 'tx_dlf_metadata', $this->conf['pages']);
268
+            $facets[$facet . '_faceting'] = tx_dlf_helper::translate($facet, 'tx_dlf_metadata', $this->conf['pages']);
269 269
 
270 270
         }
271 271
 
272 272
         // Render facets menu.
273
-        $TSconfig = array ();
273
+        $TSconfig = array();
274 274
 
275 275
         $TSconfig['special'] = 'userfunction';
276 276
 
@@ -302,13 +302,13 @@  discard block
 block discarded – undo
302 302
         // Check for plugin configuration.
303 303
         if (!empty($this->conf['fulltext'])) {
304 304
 
305
-            $output .= ' <input class="tx-dlf-search-fulltext" id="tx-dlf-search-fulltext-no" type="radio" name="'.$this->prefixId.'[fulltext]" value="0" '.($isFulltextSearch == 0 ? 'checked="checked"' : '').' />';
305
+            $output .= ' <input class="tx-dlf-search-fulltext" id="tx-dlf-search-fulltext-no" type="radio" name="' . $this->prefixId . '[fulltext]" value="0" ' . ($isFulltextSearch == 0 ? 'checked="checked"' : '') . ' />';
306 306
 
307
-            $output .= ' <label for="tx-dlf-search-fulltext-no">'.$this->pi_getLL('label.inMetadata', '').'</label>';
307
+            $output .= ' <label for="tx-dlf-search-fulltext-no">' . $this->pi_getLL('label.inMetadata', '') . '</label>';
308 308
 
309
-            $output .= ' <input class="tx-dlf-search-fulltext" id="tx-dlf-search-fulltext-yes" type="radio" name="'.$this->prefixId.'[fulltext]" value="1" '.($isFulltextSearch == 1 ? 'checked="checked"' : '').'/>';
309
+            $output .= ' <input class="tx-dlf-search-fulltext" id="tx-dlf-search-fulltext-yes" type="radio" name="' . $this->prefixId . '[fulltext]" value="1" ' . ($isFulltextSearch == 1 ? 'checked="checked"' : '') . '/>';
310 310
 
311
-            $output .= ' <label for="tx-dlf-search-fulltext-yes">'.$this->pi_getLL('label.inFulltext', '').'</label>';
311
+            $output .= ' <label for="tx-dlf-search-fulltext-yes">' . $this->pi_getLL('label.inFulltext', '') . '</label>';
312 312
 
313 313
         }
314 314
 
@@ -330,9 +330,9 @@  discard block
 block discarded – undo
330 330
         // Check for plugin configuration.
331 331
         if (!empty($this->conf['showLogicalPageField'])) {
332 332
 
333
-            $output .= ' <label for="tx-dlf-search-logical-page">'.$this->pi_getLL('label.logicalPage', '').': </label>';
333
+            $output .= ' <label for="tx-dlf-search-logical-page">' . $this->pi_getLL('label.logicalPage', '') . ': </label>';
334 334
 
335
-            $output .= ' <input class="tx-dlf-search-logical-page" id="tx-dlf-search-logical-page" type="text" name="'.$this->prefixId.'[logicalPage]" />';
335
+            $output .= ' <input class="tx-dlf-search-logical-page" id="tx-dlf-search-logical-page" type="text" name="' . $this->prefixId . '[logicalPage]" />';
336 336
 
337 337
         }
338 338
 
@@ -353,7 +353,7 @@  discard block
 block discarded – undo
353 353
      */
354 354
     protected function getFacetsMenuEntry($field, $value, $count, $search, &$state) {
355 355
 
356
-        $entryArray = array ();
356
+        $entryArray = array();
357 357
 
358 358
         // Translate value.
359 359
         if ($field == 'owner_faceting') {
@@ -388,7 +388,7 @@  discard block
 block discarded – undo
388 388
 
389 389
         // Check if facet is already selected.
390 390
         $queryColumn = array_column($search['params']['filterquery'], 'query');
391
-        $index = array_search($field.':("'.tx_dlf_solr::escapeQuery($value).'")', $queryColumn);
391
+        $index = array_search($field . ':("' . tx_dlf_solr::escapeQuery($value) . '")', $queryColumn);
392 392
 
393 393
         if ($index !== FALSE) {
394 394
 
@@ -406,20 +406,20 @@  discard block
 block discarded – undo
406 406
                 //remove ($count) for selected facet in template
407 407
                 $entryArray['count'] = FALSE;
408 408
                 //build link to delete selected facet
409
-                $entryArray['_OVERRIDE_HREF'] = $this->pi_linkTP_keepPIvars_url(array ('query' => $search['query'], 'fq' => $queryColumn));
409
+                $entryArray['_OVERRIDE_HREF'] = $this->pi_linkTP_keepPIvars_url(array('query' => $search['query'], 'fq' => $queryColumn));
410 410
                 $entryArray['title'] = sprintf($this->pi_getLL('resetFacet', ''), $entryArray['title']);
411 411
             }
412 412
 
413 413
         } else {
414 414
 
415 415
             // Facet is not selected, thus add it to filter.
416
-            $queryColumn[] = $field.':("'.tx_dlf_solr::escapeQuery($value).'")';
416
+            $queryColumn[] = $field . ':("' . tx_dlf_solr::escapeQuery($value) . '")';
417 417
 
418 418
             $entryArray['ITEM_STATE'] = 'NO';
419 419
 
420 420
         }
421 421
 
422
-        $entryArray['_OVERRIDE_HREF'] = $this->pi_linkTP_keepPIvars_url(array ('query' => $search['query'], 'fq' => $queryColumn));
422
+        $entryArray['_OVERRIDE_HREF'] = $this->pi_linkTP_keepPIvars_url(array('query' => $search['query'], 'fq' => $queryColumn));
423 423
 
424 424
         return $entryArray;
425 425
 
@@ -447,7 +447,7 @@  discard block
 block discarded – undo
447 447
 
448 448
             if (TYPO3_DLOG) {
449 449
 
450
-                \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_search->main('.$content.', [data])] Incomplete plugin configuration', $this->extKey, SYSLOG_SEVERITY_WARNING, $conf);
450
+                \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_search->main(' . $content . ', [data])] Incomplete plugin configuration', $this->extKey, SYSLOG_SEVERITY_WARNING, $conf);
451 451
 
452 452
             }
453 453
 
@@ -491,16 +491,16 @@  discard block
 block discarded – undo
491 491
             }
492 492
 
493 493
             // Configure @action URL for form.
494
-            $linkConf = array (
494
+            $linkConf = array(
495 495
                 'parameter' => $GLOBALS['TSFE']->id
496 496
             );
497 497
 
498 498
             // Fill markers.
499
-            $markerArray = array (
499
+            $markerArray = array(
500 500
                 '###ACTION_URL###' => $this->cObj->typoLink_URL($linkConf),
501 501
                 '###LABEL_QUERY###' => (!empty($search['query']) ? htmlspecialchars($search['query']) : $this->pi_getLL('label.query')),
502 502
                 '###LABEL_SUBMIT###' => $this->pi_getLL('label.submit'),
503
-                '###FIELD_QUERY###' => $this->prefixId.'[query]',
503
+                '###FIELD_QUERY###' => $this->prefixId . '[query]',
504 504
                 '###QUERY###' => (!empty($search['query']) ? $search['query'] : ''),
505 505
                 '###FULLTEXTSWITCH###' => $this->addFulltextSwitch($list->metadata['fulltextSearch']),
506 506
                 '###FIELD_DOC###' => ($this->conf['searchIn'] == 'document' || $this->conf['searchIn'] == 'all' ? $this->addCurrentDocument() : ''),
@@ -527,7 +527,7 @@  discard block
 block discarded – undo
527 527
 
528 528
                 if (TYPO3_DLOG) {
529 529
 
530
-                    \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_search->main('.$content.', [data])] Apache Solr not available', $this->extKey, SYSLOG_SEVERITY_ERROR, $conf);
530
+                    \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_search->main(' . $content . ', [data])] Apache Solr not available', $this->extKey, SYSLOG_SEVERITY_ERROR, $conf);
531 531
 
532 532
                 }
533 533
 
@@ -545,9 +545,9 @@  discard block
 block discarded – undo
545 545
             }
546 546
 
547 547
             // Prepare query parameters.
548
-            $params = array ();
548
+            $params = array();
549 549
 
550
-            $matches = array ();
550
+            $matches = array();
551 551
 
552 552
             // Set search query.
553 553
             if ((!empty($this->conf['fulltext']) && !empty($this->piVars['fulltext'])) || preg_match('/fulltext:\((.*)\)/', $this->piVars['query'], $matches)) {
@@ -558,7 +558,7 @@  discard block
 block discarded – undo
558 558
                 // Search in fulltext field if applicable. Query must not be empty!
559 559
                 if (!empty($this->piVars['query'])) {
560 560
 
561
-                    $query = 'fulltext:('.tx_dlf_solr::escapeQuery($this->piVars['query']).')';
561
+                    $query = 'fulltext:(' . tx_dlf_solr::escapeQuery($this->piVars['query']) . ')';
562 562
 
563 563
                 }
564 564
 
@@ -571,7 +571,7 @@  discard block
 block discarded – undo
571 571
             // Add extended search query.
572 572
             if (!empty($this->piVars['extQuery']) && is_array($this->piVars['extQuery'])) {
573 573
 
574
-                $allowedOperators = array ('AND', 'OR', 'NOT');
574
+                $allowedOperators = array('AND', 'OR', 'NOT');
575 575
 
576 576
                 $allowedFields = \TYPO3\CMS\Core\Utility\GeneralUtility::trimExplode(',', $this->conf['extendedFields'], TRUE);
577 577
 
@@ -583,11 +583,11 @@  discard block
 block discarded – undo
583 583
 
584 584
                             if (!empty($query)) {
585 585
 
586
-                                $query .= ' '.$this->piVars['extOperator'][$i].' ';
586
+                                $query .= ' ' . $this->piVars['extOperator'][$i] . ' ';
587 587
 
588 588
                             }
589 589
 
590
-                            $query .= tx_dlf_indexing::getIndexFieldName($this->piVars['extField'][$i], $this->conf['pages']).':('.tx_dlf_solr::escapeQuery($this->piVars['extQuery'][$i]).')';
590
+                            $query .= tx_dlf_indexing::getIndexFieldName($this->piVars['extField'][$i], $this->conf['pages']) . ':(' . tx_dlf_solr::escapeQuery($this->piVars['extQuery'][$i]) . ')';
591 591
 
592 592
                         }
593 593
 
@@ -613,7 +613,7 @@  discard block
 block discarded – undo
613 613
 
614 614
                 if (!empty($this->piVars['id']) && \TYPO3\CMS\Core\Utility\MathUtility::canBeInterpretedAsInteger($this->piVars['id'])) {
615 615
 
616
-                    $params['filterquery'][]['query'] = 'uid:('.$this->piVars['id'].') OR partof:('.$this->piVars['id'].')';
616
+                    $params['filterquery'][]['query'] = 'uid:(' . $this->piVars['id'] . ') OR partof:(' . $this->piVars['id'] . ')';
617 617
 
618 618
                     $label .= htmlspecialchars(sprintf($this->pi_getLL('in', ''), tx_dlf_document::getTitle($this->piVars['id'])));
619 619
 
@@ -628,7 +628,7 @@  discard block
 block discarded – undo
628 628
 
629 629
                     $index_name = tx_dlf_helper::getIndexName($this->piVars['collection'], 'tx_dlf_collections', $this->conf['pages']);
630 630
 
631
-                    $params['filterquery'][]['query'] = 'collection_faceting:("'.tx_dlf_solr::escapeQuery($index_name).'")';
631
+                    $params['filterquery'][]['query'] = 'collection_faceting:("' . tx_dlf_solr::escapeQuery($index_name) . '")';
632 632
 
633 633
                     $label .= sprintf($this->pi_getLL('in', '', TRUE), tx_dlf_helper::translate($index_name, 'tx_dlf_collections', $this->conf['pages']));
634 634
 
@@ -641,7 +641,7 @@  discard block
 block discarded – undo
641 641
 
642 642
                 $collIds = explode(',', $this->conf['collections']);
643 643
 
644
-                $collIndexNames = array ();
644
+                $collIndexNames = array();
645 645
 
646 646
                 foreach ($collIds as $collId) {
647 647
 
@@ -650,7 +650,7 @@  discard block
 block discarded – undo
650 650
                 }
651 651
 
652 652
                 // Last value is fake and used for distinction in $this->addCurrentCollection()
653
-                $params['filterquery'][]['query'] = 'collection_faceting:("'.implode('" OR "', $collIndexNames).'" OR "FakeValueForDistinction")';
653
+                $params['filterquery'][]['query'] = 'collection_faceting:("' . implode('" OR "', $collIndexNames) . '" OR "FakeValueForDistinction")';
654 654
 
655 655
             }
656 656
 
@@ -658,7 +658,7 @@  discard block
 block discarded – undo
658 658
             $params['query'] = !empty($query) ? $query : '*';
659 659
             $params['start'] = 0;
660 660
             $params['rows'] = 0;
661
-            $params['sort'] = array ('score' => 'desc');
661
+            $params['sort'] = array('score' => 'desc');
662 662
 
663 663
             // Instantiate search object.
664 664
             $solr = tx_dlf_solr::getInstance($this->conf['solrcore']);
@@ -667,7 +667,7 @@  discard block
 block discarded – undo
667 667
 
668 668
                 if (TYPO3_DLOG) {
669 669
 
670
-                    \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_search->main('.$content.', [data])] Apache Solr not available', $this->extKey, SYSLOG_SEVERITY_ERROR, $conf);
670
+                    \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_search->main(' . $content . ', [data])] Apache Solr not available', $this->extKey, SYSLOG_SEVERITY_ERROR, $conf);
671 671
 
672 672
                 }
673 673
 
@@ -682,7 +682,7 @@  discard block
 block discarded – undo
682 682
             // Perform search.
683 683
             $list = $solr->search();
684 684
 
685
-            $list->metadata = array (
685
+            $list->metadata = array(
686 686
                 'label' => $label,
687 687
                 'thumbnail' => '',
688 688
                 'searchString' => $this->piVars['query'],
@@ -695,7 +695,7 @@  discard block
 block discarded – undo
695 695
             // Clean output buffer.
696 696
             \TYPO3\CMS\Core\Utility\GeneralUtility::cleanOutputBuffers();
697 697
 
698
-            $additionalParams = array ();
698
+            $additionalParams = array();
699 699
 
700 700
             if (!empty($this->piVars['logicalPage'])) {
701 701
 
@@ -729,7 +729,7 @@  discard block
 block discarded – undo
729 729
             $linkConf['additionalParams'] = \TYPO3\CMS\Core\Utility\GeneralUtility::implodeArrayForUrl($this->prefixId, $additionalParams, '', TRUE, FALSE);
730 730
 
731 731
             // Send headers.
732
-            header('Location: '.\TYPO3\CMS\Core\Utility\GeneralUtility::locationHeaderUrl($this->cObj->typoLink_URL($linkConf)));
732
+            header('Location: ' . \TYPO3\CMS\Core\Utility\GeneralUtility::locationHeaderUrl($this->cObj->typoLink_URL($linkConf)));
733 733
 
734 734
             // Flush output buffer and end script processing.
735 735
             ob_end_flush();
@@ -754,15 +754,15 @@  discard block
 block discarded – undo
754 754
 
755 755
         $this->init($conf);
756 756
 
757
-        $menuArray = array ();
757
+        $menuArray = array();
758 758
 
759 759
         // Set default value for facet search.
760
-        $search = array (
760
+        $search = array(
761 761
             'query' => '*',
762
-            'params' => array (
763
-                'component' => array (
764
-                    'facetset' => array (
765
-                        'facet' => array ()
762
+            'params' => array(
763
+                'component' => array(
764
+                    'facetset' => array(
765
+                        'facet' => array()
766 766
                     )
767 767
                 )
768 768
             )
@@ -790,24 +790,24 @@  discard block
 block discarded – undo
790 790
 
791 791
             if (TYPO3_DLOG) {
792 792
 
793
-                \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_search->makeFacetsMenuArray('.$content.', [data])] Apache Solr not available', $this->extKey, SYSLOG_SEVERITY_ERROR, $conf);
793
+                \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_search->makeFacetsMenuArray(' . $content . ', [data])] Apache Solr not available', $this->extKey, SYSLOG_SEVERITY_ERROR, $conf);
794 794
 
795 795
             }
796 796
 
797
-            return array ();
797
+            return array();
798 798
 
799 799
         }
800 800
 
801 801
         // Set needed parameters for facet search.
802 802
         if (empty($search['params']['filterquery'])) {
803 803
 
804
-            $search['params']['filterquery'] = array ();
804
+            $search['params']['filterquery'] = array();
805 805
 
806 806
         }
807 807
 
808 808
         foreach ($this->conf['facets'] as $field => $name) {
809 809
 
810
-            $search['params']['component']['facetset']['facet'][] = array (
810
+            $search['params']['component']['facetset']['facet'][] = array(
811 811
                 'type' => 'field',
812 812
                 'key' => $field,
813 813
                 'field' => $field,
@@ -832,7 +832,7 @@  discard block
 block discarded – undo
832 832
         // Process results.
833 833
         foreach ($facet as $field => $values) {
834 834
 
835
-            $entryArray = array ();
835
+            $entryArray = array();
836 836
 
837 837
             $entryArray['title'] = htmlspecialchars($this->conf['facets'][$field]);
838 838
 
Please login to merge, or discard this patch.
common/class.tx_dlf_indexing.php 1 patch
Spacing   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -34,14 +34,14 @@  discard block
 block discarded – undo
34 34
      * @var	array
35 35
      * @access protected
36 36
      */
37
-    protected static $fields = array (
38
-        'autocomplete' => array (),
39
-        'facets' => array (),
40
-        'sortables' => array (),
41
-        'indexed' => array (),
42
-        'stored' => array (),
43
-        'tokenized' => array (),
44
-        'fieldboost' => array ()
37
+    protected static $fields = array(
38
+        'autocomplete' => array(),
39
+        'facets' => array(),
40
+        'sortables' => array(),
41
+        'indexed' => array(),
42
+        'stored' => array(),
43
+        'tokenized' => array(),
44
+        'fieldboost' => array()
45 45
     );
46 46
 
47 47
     /**
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
      * @var	array
60 60
      * @access protected
61 61
      */
62
-    protected static $processedDocs = array ();
62
+    protected static $processedDocs = array();
63 63
 
64 64
     /**
65 65
      * Instance of tx_dlf_solr class
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
 
103 103
                     if (TYPO3_DLOG) {
104 104
 
105
-                        \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_indexing->add(['.$doc->uid.'], '.$core.')] Could not load parent document with UID "'.$doc->parentId.'"', self::$extKey, SYSLOG_SEVERITY_ERROR);
105
+                        \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_indexing->add([' . $doc->uid . '], ' . $core . ')] Could not load parent document with UID "' . $doc->parentId . '"', self::$extKey, SYSLOG_SEVERITY_ERROR);
106 106
 
107 107
                     }
108 108
 
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
 
120 120
                 // Delete old Solr documents.
121 121
                 $updateQuery = self::$solr->service->createUpdate();
122
-                $updateQuery->addDeleteQuery('uid:'.$doc->uid);
122
+                $updateQuery->addDeleteQuery('uid:' . $doc->uid);
123 123
                 self::$solr->service->update($updateQuery);
124 124
 
125 125
                 // Index every logical unit as separate Solr document.
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
                 $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
166 166
                     'tx_dlf_documents.title AS title',
167 167
                     'tx_dlf_documents',
168
-                    'tx_dlf_documents.uid='.intval($doc->uid).tx_dlf_helper::whereClause('tx_dlf_documents'),
168
+                    'tx_dlf_documents.uid=' . intval($doc->uid) . tx_dlf_helper::whereClause('tx_dlf_documents'),
169 169
                     '',
170 170
                     '',
171 171
                     '1'
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
 
210 210
                     $message = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
211 211
                         'TYPO3\\CMS\\Core\\Messaging\\FlashMessage',
212
-                        tx_dlf_helper::getLL('flash.solrException', TRUE).'<br />'.htmlspecialchars($e->getMessage()),
212
+                        tx_dlf_helper::getLL('flash.solrException', TRUE) . '<br />' . htmlspecialchars($e->getMessage()),
213 213
                         tx_dlf_helper::getLL('flash.error', TRUE),
214 214
                         \TYPO3\CMS\Core\Messaging\FlashMessage::ERROR,
215 215
                         TRUE
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
 
222 222
                 if (TYPO3_DLOG) {
223 223
 
224
-                    \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_indexing->add(['.$doc->uid.'], '.$core.')] Apache Solr threw exception: "'.$e->getMessage().'"', self::$extKey, SYSLOG_SEVERITY_ERROR);
224
+                    \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_indexing->add([' . $doc->uid . '], ' . $core . ')] Apache Solr threw exception: "' . $e->getMessage() . '"', self::$extKey, SYSLOG_SEVERITY_ERROR);
225 225
 
226 226
                 }
227 227
 
@@ -247,7 +247,7 @@  discard block
 block discarded – undo
247 247
 
248 248
             if (TYPO3_DLOG) {
249 249
 
250
-                \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_indexing->add(['.$doc->uid.'], '.$core.')] Could not connect to Apache Solr server', self::$extKey, SYSLOG_SEVERITY_ERROR);
250
+                \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_indexing->add([' . $doc->uid . '], ' . $core . ')] Could not connect to Apache Solr server', self::$extKey, SYSLOG_SEVERITY_ERROR);
251 251
 
252 252
             }
253 253
 
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
         $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
279 279
             'tx_dlf_solrcores.uid AS uid,tx_dlf_documents.title AS title',
280 280
             'tx_dlf_solrcores,tx_dlf_documents',
281
-            'tx_dlf_solrcores.uid=tx_dlf_documents.solrcore AND tx_dlf_documents.uid='.$uid.tx_dlf_helper::whereClause('tx_dlf_solrcores'),
281
+            'tx_dlf_solrcores.uid=tx_dlf_documents.solrcore AND tx_dlf_documents.uid=' . $uid . tx_dlf_helper::whereClause('tx_dlf_solrcores'),
282 282
             '',
283 283
             '',
284 284
             '1'
@@ -295,7 +295,7 @@  discard block
 block discarded – undo
295 295
 
296 296
                     // Delete Solr document.
297 297
                     $updateQuery = self::$solr->service->createUpdate();
298
-                    $updateQuery->addDeleteQuery('uid:'.$uid);
298
+                    $updateQuery->addDeleteQuery('uid:' . $uid);
299 299
                     $updateQuery->addCommit();
300 300
                     self::$solr->service->update($updateQuery);
301 301
 
@@ -305,7 +305,7 @@  discard block
 block discarded – undo
305 305
 
306 306
                         $message = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
307 307
                             'TYPO3\\CMS\\Core\\Messaging\\FlashMessage',
308
-                            tx_dlf_helper::getLL('flash.solrException', TRUE).'<br />'.htmlspecialchars($e->getMessage()),
308
+                            tx_dlf_helper::getLL('flash.solrException', TRUE) . '<br />' . htmlspecialchars($e->getMessage()),
309 309
                             tx_dlf_helper::getLL('flash.error', TRUE),
310 310
                             \TYPO3\CMS\Core\Messaging\FlashMessage::ERROR,
311 311
                             TRUE
@@ -317,7 +317,7 @@  discard block
 block discarded – undo
317 317
 
318 318
                     if (TYPO3_DLOG) {
319 319
 
320
-                        \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_indexing->delete('.$_uid.')] Apache Solr threw exception: "'.$e->getMessage().'"', self::$extKey, SYSLOG_SEVERITY_ERROR);
320
+                        \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_indexing->delete(' . $_uid . ')] Apache Solr threw exception: "' . $e->getMessage() . '"', self::$extKey, SYSLOG_SEVERITY_ERROR);
321 321
 
322 322
                     }
323 323
 
@@ -343,7 +343,7 @@  discard block
 block discarded – undo
343 343
 
344 344
                 if (TYPO3_DLOG) {
345 345
 
346
-                    \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_indexing->delete('.$_uid.')] Could not connect to Apache Solr server', self::$extKey, SYSLOG_SEVERITY_ERROR);
346
+                    \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_indexing->delete(' . $_uid . ')] Could not connect to Apache Solr server', self::$extKey, SYSLOG_SEVERITY_ERROR);
347 347
 
348 348
                 }
349 349
 
@@ -371,7 +371,7 @@  discard block
 block discarded – undo
371 371
 
372 372
             if (TYPO3_DLOG) {
373 373
 
374
-                \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_indexing->delete('.$_uid.')] Invalid UID "'.$uid.'" for document deletion', self::$extKey, SYSLOG_SEVERITY_ERROR);
374
+                \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_indexing->delete(' . $_uid . ')] Invalid UID "' . $uid . '" for document deletion', self::$extKey, SYSLOG_SEVERITY_ERROR);
375 375
 
376 376
             }
377 377
 
@@ -403,7 +403,7 @@  discard block
 block discarded – undo
403 403
 
404 404
             if (TYPO3_DLOG) {
405 405
 
406
-                \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_indexing->getIndexFieldName('.$index_name.', '.$_pid.')] Invalid PID "'.$pid.'" for metadata configuration', self::$extKey, SYSLOG_SEVERITY_ERROR);
406
+                \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_indexing->getIndexFieldName(' . $index_name . ', ' . $_pid . ')] Invalid PID "' . $pid . '" for metadata configuration', self::$extKey, SYSLOG_SEVERITY_ERROR);
407 407
 
408 408
             }
409 409
 
@@ -421,7 +421,7 @@  discard block
 block discarded – undo
421 421
 
422 422
         $suffix .= (in_array($index_name, self::$fields['indexed']) ? 'i' : 'u');
423 423
 
424
-        $index_name .= '_'.$suffix;
424
+        $index_name .= '_' . $suffix;
425 425
 
426 426
         return $index_name;
427 427
 
@@ -444,7 +444,7 @@  discard block
 block discarded – undo
444 444
             $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
445 445
                 'tx_dlf_metadata.index_name AS index_name,tx_dlf_metadata.index_tokenized AS index_tokenized,tx_dlf_metadata.index_stored AS index_stored,tx_dlf_metadata.index_indexed AS index_indexed,tx_dlf_metadata.is_sortable AS is_sortable,tx_dlf_metadata.is_facet AS is_facet,tx_dlf_metadata.is_listed AS is_listed,tx_dlf_metadata.index_autocomplete AS index_autocomplete,tx_dlf_metadata.index_boost AS index_boost',
446 446
                 'tx_dlf_metadata',
447
-                'tx_dlf_metadata.pid='.intval($pid).tx_dlf_helper::whereClause('tx_dlf_metadata'),
447
+                'tx_dlf_metadata.pid=' . intval($pid) . tx_dlf_helper::whereClause('tx_dlf_metadata'),
448 448
                 '',
449 449
                 '',
450 450
                 ''
@@ -538,7 +538,7 @@  discard block
 block discarded – undo
538 538
             $solrDoc = $updateQuery->createDocument();
539 539
 
540 540
             // Create unique identifier from document's UID and unit's XML ID.
541
-            $solrDoc->setField('id', $doc->uid.$logicalUnit['id']);
541
+            $solrDoc->setField('id', $doc->uid . $logicalUnit['id']);
542 542
 
543 543
             $solrDoc->setField('uid', $doc->uid);
544 544
 
@@ -585,7 +585,7 @@  discard block
 block discarded – undo
585 585
 
586 586
             $solrDoc->setField('collection', $doc->metadataArray[$doc->toplevelId]['collection']);
587 587
 
588
-            $autocomplete = array ();
588
+            $autocomplete = array();
589 589
 
590 590
             foreach ($metadata as $index_name => $data) {
591 591
 
@@ -596,14 +596,14 @@  discard block
 block discarded – undo
596 596
                     if (in_array($index_name, self::$fields['sortables'])) {
597 597
 
598 598
                         // Add sortable fields to index.
599
-                        $solrDoc->setField($index_name.'_sorting', $metadata[$index_name.'_sorting'][0]);
599
+                        $solrDoc->setField($index_name . '_sorting', $metadata[$index_name . '_sorting'][0]);
600 600
 
601 601
                     }
602 602
 
603 603
                     if (in_array($index_name, self::$fields['facets'])) {
604 604
 
605 605
                         // Add facets to index.
606
-                        $solrDoc->setField($index_name.'_faceting', $data);
606
+                        $solrDoc->setField($index_name . '_faceting', $data);
607 607
 
608 608
                     }
609 609
 
@@ -644,7 +644,7 @@  discard block
 block discarded – undo
644 644
 
645 645
                     $message = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
646 646
                         'TYPO3\\CMS\\Core\\Messaging\\FlashMessage',
647
-                        tx_dlf_helper::getLL('flash.solrException', TRUE).'<br />'.htmlspecialchars($e->getMessage()),
647
+                        tx_dlf_helper::getLL('flash.solrException', TRUE) . '<br />' . htmlspecialchars($e->getMessage()),
648 648
                         tx_dlf_helper::getLL('flash.error', TRUE),
649 649
                         \TYPO3\CMS\Core\Messaging\FlashMessage::ERROR,
650 650
                         TRUE
@@ -748,7 +748,7 @@  discard block
 block discarded – undo
748 748
             $solrDoc = $updateQuery->createDocument();
749 749
 
750 750
             // Create unique identifier from document's UID and unit's XML ID.
751
-            $solrDoc->setField('id', $doc->uid.$physicalUnit['id']);
751
+            $solrDoc->setField('id', $doc->uid . $physicalUnit['id']);
752 752
 
753 753
             $solrDoc->setField('uid', $doc->uid);
754 754
 
@@ -792,7 +792,7 @@  discard block
 block discarded – undo
792 792
                         }
793 793
 
794 794
                         // Add facets to index.
795
-                        $solrDoc->setField($index_name.'_faceting', $data);
795
+                        $solrDoc->setField($index_name . '_faceting', $data);
796 796
 
797 797
                     }
798 798
 
@@ -819,7 +819,7 @@  discard block
 block discarded – undo
819 819
 
820 820
                     $message = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
821 821
                         'TYPO3\\CMS\\Core\\Messaging\\FlashMessage',
822
-                        tx_dlf_helper::getLL('flash.solrException', TRUE).'<br />'.htmlspecialchars($e->getMessage()),
822
+                        tx_dlf_helper::getLL('flash.solrException', TRUE) . '<br />' . htmlspecialchars($e->getMessage()),
823 823
                         tx_dlf_helper::getLL('flash.error', TRUE),
824 824
                         \TYPO3\CMS\Core\Messaging\FlashMessage::ERROR,
825 825
                         TRUE
Please login to merge, or discard this patch.
plugins/pageview/class.tx_dlf_pageview.php 1 patch
Spacing   +40 added lines, -40 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,31 +54,31 @@  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
-        $output[] = '<link type="text/css" rel="stylesheet" href="'.\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey).'lib/OpenLayers/ol3.css">';
60
+        $output[] = '<link type="text/css" rel="stylesheet" href="' . \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey) . 'lib/OpenLayers/ol3.css">';
61 61
 
62
-        $output[] = '<script type="text/javascript" src="'.\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey).'lib/OpenLayers/glif.min.js"></script>';
62
+        $output[] = '<script type="text/javascript" src="' . \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey) . 'lib/OpenLayers/glif.min.js"></script>';
63 63
 
64
-        $output[] = '<script type="text/javascript" src="'.\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey).'lib/OpenLayers/ol3-dlf.js"></script>';
64
+        $output[] = '<script type="text/javascript" src="' . \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey) . 'lib/OpenLayers/ol3-dlf.js"></script>';
65 65
 
66 66
         // Add viewer library.
67
-        $output[] = '<script type="text/javascript" src="'.\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey).'plugins/pageview/tx_dlf_utils.js"></script>';
67
+        $output[] = '<script type="text/javascript" src="' . \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey) . 'plugins/pageview/tx_dlf_utils.js"></script>';
68 68
 
69
-        $output[] = '<script type="text/javascript" src="'.\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey).'plugins/pageview/tx_dlf_ol3.js"></script>';
69
+        $output[] = '<script type="text/javascript" src="' . \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey) . 'plugins/pageview/tx_dlf_ol3.js"></script>';
70 70
 
71
-        $output[] = '<script type="text/javascript" src="'.\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey).'plugins/pageview/tx_dlf_ol3_styles.js"></script>';
71
+        $output[] = '<script type="text/javascript" src="' . \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey) . 'plugins/pageview/tx_dlf_ol3_styles.js"></script>';
72 72
 
73
-        $output[] = '<script type="text/javascript" src="'.\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey).'plugins/pageview/tx_dlf_ol3_source.js"></script>';
73
+        $output[] = '<script type="text/javascript" src="' . \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey) . 'plugins/pageview/tx_dlf_ol3_source.js"></script>';
74 74
 
75
-        $output[] = '<script type="text/javascript" src="'.\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey).'plugins/pageview/tx_dlf_altoparser.js"></script>';
75
+        $output[] = '<script type="text/javascript" src="' . \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey) . 'plugins/pageview/tx_dlf_altoparser.js"></script>';
76 76
 
77
-        $output[] = '<script type="text/javascript" src="'.\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey).'plugins/pageview/tx_dlf_pageview_imagemanipulation_control.js"></script>';
77
+        $output[] = '<script type="text/javascript" src="' . \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey) . 'plugins/pageview/tx_dlf_pageview_imagemanipulation_control.js"></script>';
78 78
 
79
-        $output[] = '<script type="text/javascript" src="'.\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey).'plugins/pageview/tx_dlf_pageview_fulltext_control.js"></script>';
79
+        $output[] = '<script type="text/javascript" src="' . \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey) . 'plugins/pageview/tx_dlf_pageview_fulltext_control.js"></script>';
80 80
 
81
-        $output[] = '<script type="text/javascript" src="'.\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey).'plugins/pageview/tx_dlf_pageview.js"></script>';
81
+        $output[] = '<script type="text/javascript" src="' . \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey) . 'plugins/pageview/tx_dlf_pageview.js"></script>';
82 82
 
83 83
         // Add viewer configuration.
84 84
         $output[] = '
@@ -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
 			}
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
      */
110 110
     protected function addInteraction() {
111 111
 
112
-        $markerArray = array ();
112
+        $markerArray = array();
113 113
 
114 114
         if ($this->piVars['id']) {
115 115
 
@@ -121,9 +121,9 @@  discard block
 block discarded – undo
121 121
 
122 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 128
             } else {
129 129
 
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
 
136 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 140
             } else {
141 141
 
@@ -157,14 +157,14 @@  discard block
 block discarded – undo
157 157
      */
158 158
     protected function addBasketForm() {
159 159
 
160
-        $markerArray = array ();
160
+        $markerArray = array();
161 161
 
162 162
         // Add basket button
163 163
         if ($this->conf['basketButton'] && $this->conf['targetBasket'] && $this->piVars['id']) {
164 164
 
165 165
             $label = $this->pi_getLL('addBasket', '', TRUE);
166 166
 
167
-            $params = array (
167
+            $params = array(
168 168
                 'id' => $this->piVars['id'],
169 169
                 'addToBasket' => TRUE
170 170
             );
@@ -175,17 +175,17 @@  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
182 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="'.htmlspecialchars($this->piVars['page']).'">';
186
+            $output .= '<input type="hidden" name="tx_dlf[startpage]" id="startpage" value="' . htmlspecialchars($this->piVars['page']) . '">';
187 187
 
188
-            $output .= '<input type="hidden" name="tx_dlf[endpage]" id="endpage" value="'.htmlspecialchars($this->piVars['page']).'">';
188
+            $output .= '<input type="hidden" name="tx_dlf[endpage]" id="endpage" value="' . htmlspecialchars($this->piVars['page']) . '">';
189 189
 
190 190
             $output .= '<input type="hidden" name="tx_dlf[startX]" id="startX">';
191 191
 
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
 
198 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 202
             $output .= '</form>';
203 203
 
@@ -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,9 +248,9 @@  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
-                        'additionalParams' => '&eID=tx_dlf_geturl_eid&url='.urlencode($image['url']),
253
+                        'additionalParams' => '&eID=tx_dlf_geturl_eid&url=' . urlencode($image['url']),
254 254
                     );
255 255
 
256 256
                     $image['url'] = $this->cObj->typoLink_URL($linkConf);
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
 
265 265
                 if (TYPO3_DLOG) {
266 266
 
267
-                    \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_pageview->getImage('.$page.')] File not found in fileGrp "'.$fileGrp.'"', $this->extKey, SYSLOG_SEVERITY_WARNING);
267
+                    \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_pageview->getImage(' . $page . ')] File not found in fileGrp "' . $fileGrp . '"', $this->extKey, SYSLOG_SEVERITY_WARNING);
268 268
 
269 269
                 }
270 270
 
@@ -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,9 +295,9 @@  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
-                'additionalParams' => '&eID=tx_dlf_geturl_eid&url='.urlencode($fulltext['url']),
300
+                'additionalParams' => '&eID=tx_dlf_geturl_eid&url=' . urlencode($fulltext['url']),
301 301
             );
302 302
 
303 303
             $fulltext['url'] = $this->cObj->typoLink_URL($linkConf);
@@ -308,7 +308,7 @@  discard block
 block discarded – undo
308 308
 
309 309
             if (TYPO3_DLOG) {
310 310
 
311
-                \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_pageview->getFulltext('.$page.')] File not found in fileGrp "'.$this->conf['fileGrpFulltext'].'"', $this->extKey, SYSLOG_SEVERITY_WARNING);
311
+                \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_pageview->getFulltext(' . $page . ')] File not found in fileGrp "' . $this->conf['fileGrpFulltext'] . '"', $this->extKey, SYSLOG_SEVERITY_WARNING);
312 312
 
313 313
             }
314 314
 
@@ -392,7 +392,7 @@  discard block
 block discarded – undo
392 392
         $this->controls = explode(',', $this->conf['features']);
393 393
 
394 394
         // Fill in the template markers.
395
-        $markerArray = array (
395
+        $markerArray = array(
396 396
             '###VIEWER_JS###' => $this->addViewerJS()
397 397
         );
398 398
 
Please login to merge, or discard this patch.
ext_emconf.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * LICENSE.txt file that was distributed with this source code.
10 10
  */
11 11
 
12
-$EM_CONF[$_EXTKEY] = array (
12
+$EM_CONF[$_EXTKEY] = array(
13 13
     'title' => 'Kitodo.Presentation',
14 14
     'description' => 'Base plugins, modules, services and API of the Digital Library Framework. It is part of the community-based Kitodo Digitization Suite.',
15 15
     'category' => 'fe',
@@ -22,18 +22,18 @@  discard block
 block discarded – undo
22 22
     'createDirs' => '',
23 23
     'clearCacheOnLoad' => FALSE,
24 24
     'version' => '2.3.1',
25
-    'constraints' => array (
26
-        'depends' => array (
25
+    'constraints' => array(
26
+        'depends' => array(
27 27
             'php' => '7.0.0-',
28 28
             'typo3' => '7.6.0-',
29 29
         ),
30
-        'conflicts' => array (
30
+        'conflicts' => array(
31 31
         ),
32
-        'suggests' => array (
32
+        'suggests' => array(
33 33
         ),
34 34
     ),
35
-    'autoload' => array (
36
-        'classmap' => array (
35
+    'autoload' => array(
36
+        'classmap' => array(
37 37
             'vendor/solarium',
38 38
             'vendor/symfony/event-dispatcher',
39 39
             'cli/class.tx_dlf_cli.php',
Please login to merge, or discard this patch.
plugins/navigation/class.tx_dlf_navigation.php 1 patch
Spacing   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
             if (count($list) > 0) {
39 39
 
40 40
                 // Build typolink configuration array.
41
-                $conf = array (
41
+                $conf = array(
42 42
                     'useCacheHash' => 1,
43 43
                     'parameter' => $this->conf['targetPid'],
44 44
                     'title' => $this->pi_getLL('linkToList', '', TRUE)
@@ -64,31 +64,31 @@  discard block
 block discarded – undo
64 64
     protected function getPageSelector() {
65 65
 
66 66
         // Configure @action URL for form.
67
-        $linkConf = array (
67
+        $linkConf = array(
68 68
             'parameter' => $GLOBALS['TSFE']->id
69 69
         );
70 70
 
71
-        $output = '<form action="'.$this->cObj->typoLink_URL($linkConf).'" method="get"><div><input type="hidden" name="id" value="'.$GLOBALS['TSFE']->id.'" />';
71
+        $output = '<form action="' . $this->cObj->typoLink_URL($linkConf) . '" method="get"><div><input type="hidden" name="id" value="' . $GLOBALS['TSFE']->id . '" />';
72 72
 
73 73
         // Add plugin variables.
74 74
         foreach ($this->piVars as $piVar => $value) {
75 75
 
76 76
             if ($piVar != 'page' && $piVars != 'DATA' && !empty($value)) {
77 77
 
78
-                $output .= '<input type="hidden" name="'.$this->prefixId.'['.preg_replace('/[^A-Za-z0-9_-]/', '', $piVar).']" value="'.htmlspecialchars($value).'" />';
78
+                $output .= '<input type="hidden" name="' . $this->prefixId . '[' . preg_replace('/[^A-Za-z0-9_-]/', '', $piVar) . ']" value="' . htmlspecialchars($value) . '" />';
79 79
 
80 80
             }
81 81
 
82 82
         }
83 83
 
84 84
         // Add page selector.
85
-        $uniqId = uniqid(str_replace('_', '-', get_class($this)).'-');
85
+        $uniqId = uniqid(str_replace('_', '-', get_class($this)) . '-');
86 86
 
87
-        $output .= '<label for="'.$uniqId.'">'.$this->pi_getLL('selectPage', '', TRUE).'</label><select id="'.$uniqId.'" name="'.$this->prefixId.'[page]" onchange="javascript:this.form.submit();"'.($this->doc->numPages < 1 ? ' disabled="disabled"' : '').'>';
87
+        $output .= '<label for="' . $uniqId . '">' . $this->pi_getLL('selectPage', '', TRUE) . '</label><select id="' . $uniqId . '" name="' . $this->prefixId . '[page]" onchange="javascript:this.form.submit();"' . ($this->doc->numPages < 1 ? ' disabled="disabled"' : '') . '>';
88 88
 
89 89
         for ($i = 1; $i <= $this->doc->numPages; $i++) {
90 90
 
91
-            $output .= '<option value="'.$i.'"'.($this->piVars['page'] == $i ? ' selected="selected"' : '').'>['.$i.']'.($this->doc->physicalStructureInfo[$this->doc->physicalStructure[$i]]['orderlabel'] ? ' - '.htmlspecialchars($this->doc->physicalStructureInfo[$this->doc->physicalStructure[$i]]['orderlabel']) : '').'</option>';
91
+            $output .= '<option value="' . $i . '"' . ($this->piVars['page'] == $i ? ' selected="selected"' : '') . '>[' . $i . ']' . ($this->doc->physicalStructureInfo[$this->doc->physicalStructure[$i]]['orderlabel'] ? ' - ' . htmlspecialchars($this->doc->physicalStructureInfo[$this->doc->physicalStructure[$i]]['orderlabel']) : '') . '</option>';
92 92
 
93 93
         }
94 94
 
@@ -177,66 +177,66 @@  discard block
 block discarded – undo
177 177
         // Link to first page.
178 178
         if ($this->piVars['page'] > 1) {
179 179
 
180
-            $markerArray['###FIRST###'] = $this->makeLink($this->pi_getLL('firstPage', '', TRUE), array ('page' => 1));
180
+            $markerArray['###FIRST###'] = $this->makeLink($this->pi_getLL('firstPage', '', TRUE), array('page' => 1));
181 181
 
182 182
         } else {
183 183
 
184
-            $markerArray['###FIRST###'] = '<span>'.$this->pi_getLL('firstPage', '', TRUE).'</span>';
184
+            $markerArray['###FIRST###'] = '<span>' . $this->pi_getLL('firstPage', '', TRUE) . '</span>';
185 185
 
186 186
         }
187 187
 
188 188
         // Link back X pages.
189 189
         if ($this->piVars['page'] > $pageSteps) {
190 190
 
191
-            $markerArray['###BACK###'] = $this->makeLink(sprintf($this->pi_getLL('backXPages', '', TRUE), $pageSteps), array ('page' => $this->piVars['page'] - $pageSteps));
191
+            $markerArray['###BACK###'] = $this->makeLink(sprintf($this->pi_getLL('backXPages', '', TRUE), $pageSteps), array('page' => $this->piVars['page'] - $pageSteps));
192 192
 
193 193
         } else {
194 194
 
195
-            $markerArray['###BACK###'] = '<span>'.sprintf($this->pi_getLL('backXPages', '', TRUE), $pageSteps).'</span>';
195
+            $markerArray['###BACK###'] = '<span>' . sprintf($this->pi_getLL('backXPages', '', TRUE), $pageSteps) . '</span>';
196 196
 
197 197
         }
198 198
 
199 199
         // Link to previous page.
200 200
         if ($this->piVars['page'] > (1 + $this->piVars['double'])) {
201 201
 
202
-            $markerArray['###PREVIOUS###'] = $this->makeLink($this->pi_getLL('prevPage', '', TRUE), array ('page' => $this->piVars['page'] - (1 + $this->piVars['double'])));
202
+            $markerArray['###PREVIOUS###'] = $this->makeLink($this->pi_getLL('prevPage', '', TRUE), array('page' => $this->piVars['page'] - (1 + $this->piVars['double'])));
203 203
 
204 204
         } else {
205 205
 
206
-            $markerArray['###PREVIOUS###'] = '<span>'.$this->pi_getLL('prevPage', '', TRUE).'</span>';
206
+            $markerArray['###PREVIOUS###'] = '<span>' . $this->pi_getLL('prevPage', '', TRUE) . '</span>';
207 207
 
208 208
         }
209 209
 
210 210
         // Link to next page.
211 211
         if ($this->piVars['page'] < ($this->doc->numPages - $this->piVars['double'])) {
212 212
 
213
-            $markerArray['###NEXT###'] = $this->makeLink($this->pi_getLL('nextPage', '', TRUE), array ('page' => $this->piVars['page'] + (1 + $this->piVars['double'])));
213
+            $markerArray['###NEXT###'] = $this->makeLink($this->pi_getLL('nextPage', '', TRUE), array('page' => $this->piVars['page'] + (1 + $this->piVars['double'])));
214 214
 
215 215
         } else {
216 216
 
217
-            $markerArray['###NEXT###'] = '<span>'.$this->pi_getLL('nextPage', '', TRUE).'</span>';
217
+            $markerArray['###NEXT###'] = '<span>' . $this->pi_getLL('nextPage', '', TRUE) . '</span>';
218 218
 
219 219
         }
220 220
 
221 221
         // Link forward X pages.
222 222
         if ($this->piVars['page'] <= ($this->doc->numPages - $pageSteps)) {
223 223
 
224
-            $markerArray['###FORWARD###'] = $this->makeLink(sprintf($this->pi_getLL('forwardXPages', '', TRUE), $pageSteps), array ('page' => $this->piVars['page'] + $pageSteps));
224
+            $markerArray['###FORWARD###'] = $this->makeLink(sprintf($this->pi_getLL('forwardXPages', '', TRUE), $pageSteps), array('page' => $this->piVars['page'] + $pageSteps));
225 225
 
226 226
         } else {
227 227
 
228
-            $markerArray['###FORWARD###'] = '<span>'.sprintf($this->pi_getLL('forwardXPages', '', TRUE), $pageSteps).'</span>';
228
+            $markerArray['###FORWARD###'] = '<span>' . sprintf($this->pi_getLL('forwardXPages', '', TRUE), $pageSteps) . '</span>';
229 229
 
230 230
         }
231 231
 
232 232
         // Link to last page.
233 233
         if ($this->piVars['page'] < $this->doc->numPages) {
234 234
 
235
-            $markerArray['###LAST###'] = $this->makeLink($this->pi_getLL('lastPage', '', TRUE), array ('page' => $this->doc->numPages));
235
+            $markerArray['###LAST###'] = $this->makeLink($this->pi_getLL('lastPage', '', TRUE), array('page' => $this->doc->numPages));
236 236
 
237 237
         } else {
238 238
 
239
-            $markerArray['###LAST###'] = '<span>'.$this->pi_getLL('lastPage', '', TRUE).'</span>';
239
+            $markerArray['###LAST###'] = '<span>' . $this->pi_getLL('lastPage', '', TRUE) . '</span>';
240 240
 
241 241
         }
242 242
 
@@ -245,29 +245,29 @@  discard block
 block discarded – undo
245 245
 
246 246
             if (!$this->piVars['double']) {
247 247
 
248
-                $markerArray['###DOUBLEPAGE###'] = $this->makeLink($this->pi_getLL('doublePageOn', '', TRUE), array ('double' => 1), 'class="tx-dlf-navigation-doubleOn"');
248
+                $markerArray['###DOUBLEPAGE###'] = $this->makeLink($this->pi_getLL('doublePageOn', '', TRUE), array('double' => 1), 'class="tx-dlf-navigation-doubleOn"');
249 249
 
250 250
             } else {
251 251
 
252
-                $markerArray['###DOUBLEPAGE###'] = $this->makeLink($this->pi_getLL('doublePageOff', '', TRUE), array ('double' => 0), 'class="tx-dlf-navigation-doubleOff"');
252
+                $markerArray['###DOUBLEPAGE###'] = $this->makeLink($this->pi_getLL('doublePageOff', '', TRUE), array('double' => 0), 'class="tx-dlf-navigation-doubleOff"');
253 253
 
254 254
             }
255 255
 
256 256
             if ($this->piVars['double'] && $this->piVars['page'] < $this->doc->numPages) {
257 257
 
258
-                $markerArray['###DOUBLEPAGE+1###'] = $this->makeLink($this->pi_getLL('doublePage+1', '', TRUE), array ('page' => $this->piVars['page'] + 1));
258
+                $markerArray['###DOUBLEPAGE+1###'] = $this->makeLink($this->pi_getLL('doublePage+1', '', TRUE), array('page' => $this->piVars['page'] + 1));
259 259
 
260 260
             } else {
261 261
 
262
-                $markerArray['###DOUBLEPAGE+1###'] = '<span>'.$this->pi_getLL('doublePage+1', '', TRUE).'</span>';
262
+                $markerArray['###DOUBLEPAGE+1###'] = '<span>' . $this->pi_getLL('doublePage+1', '', TRUE) . '</span>';
263 263
 
264 264
             }
265 265
 
266 266
         } else {
267 267
 
268
-            $markerArray['###DOUBLEPAGE###'] = '<span>'.$this->pi_getLL('doublePageOn', '', TRUE).'</span>';
268
+            $markerArray['###DOUBLEPAGE###'] = '<span>' . $this->pi_getLL('doublePageOn', '', TRUE) . '</span>';
269 269
 
270
-            $markerArray['###DOUBLEPAGE+1###'] = '<span>'.$this->pi_getLL('doublePage+1', '', TRUE).'</span>';
270
+            $markerArray['###DOUBLEPAGE+1###'] = '<span>' . $this->pi_getLL('doublePage+1', '', TRUE) . '</span>';
271 271
 
272 272
         }
273 273
 
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
      *
304 304
      * @return	string		Typolink ready to output
305 305
      */
306
-    protected function makeLink($label, array $overrulePIvars = array (), $aTagParams = '') {
306
+    protected function makeLink($label, array $overrulePIvars = array(), $aTagParams = '') {
307 307
 
308 308
         // Merge plugin variables with new set of values.
309 309
         if (is_array($this->piVars)) {
@@ -317,7 +317,7 @@  discard block
 block discarded – undo
317 317
         }
318 318
 
319 319
         // Build typolink configuration array.
320
-        $conf = array (
320
+        $conf = array(
321 321
             'useCacheHash' => 1,
322 322
             'parameter' => $GLOBALS['TSFE']->id,
323 323
             'ATagParams' => $aTagParams,
Please login to merge, or discard this patch.
plugins/listview/class.tx_dlf_listview.php 1 patch
Spacing   +42 added lines, -42 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
      * @var	array
30 30
      * @access	private
31 31
      */
32
-    private $fieldwrap = array ();
32
+    private $fieldwrap = array();
33 33
 
34 34
     /**
35 35
      * This holds the list
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      * @var	array
46 46
      * @access	protected
47 47
      */
48
-    protected $metadata = array ();
48
+    protected $metadata = array();
49 49
 
50 50
     /**
51 51
      * Array of sortable metadata
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
      * @var	array
54 54
      * @access	protected
55 55
      */
56
-    protected $sortables = array ();
56
+    protected $sortables = array();
57 57
 
58 58
     /**
59 59
      * Renders the page browser
@@ -80,11 +80,11 @@  discard block
 block discarded – undo
80 80
         // Add link to previous page.
81 81
         if ($this->piVars['pointer'] > 0) {
82 82
 
83
-            $output = $this->pi_linkTP_keepPIvars($this->pi_getLL('prevPage', '&lt;', TRUE), array ('pointer' => $this->piVars['pointer'] - 1), TRUE).$separator;
83
+            $output = $this->pi_linkTP_keepPIvars($this->pi_getLL('prevPage', '&lt;', TRUE), array('pointer' => $this->piVars['pointer'] - 1), TRUE) . $separator;
84 84
 
85 85
         } else {
86 86
 
87
-            $output = $this->pi_getLL('prevPage', '&lt;', TRUE).$separator;
87
+            $output = $this->pi_getLL('prevPage', '&lt;', TRUE) . $separator;
88 88
 
89 89
         }
90 90
 
@@ -99,11 +99,11 @@  discard block
 block discarded – undo
99 99
 
100 100
                 if ($this->piVars['pointer'] != $i) {
101 101
 
102
-                    $output .= $this->pi_linkTP_keepPIvars(sprintf($this->pi_getLL('page', '%d', TRUE), $i + 1), array ('pointer' => $i), TRUE).$separator;
102
+                    $output .= $this->pi_linkTP_keepPIvars(sprintf($this->pi_getLL('page', '%d', TRUE), $i + 1), array('pointer' => $i), TRUE) . $separator;
103 103
 
104 104
                 } else {
105 105
 
106
-                    $output .= sprintf($this->pi_getLL('page', '%d', TRUE), $i + 1).$separator;
106
+                    $output .= sprintf($this->pi_getLL('page', '%d', TRUE), $i + 1) . $separator;
107 107
 
108 108
                 }
109 109
 
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
 
112 112
             } elseif ($skip === TRUE) {
113 113
 
114
-                $output .= $this->pi_getLL('skip', '...', TRUE).$separator;
114
+                $output .= $this->pi_getLL('skip', '...', TRUE) . $separator;
115 115
 
116 116
                 $skip = FALSE;
117 117
 
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
         // Add link to next page.
125 125
         if ($this->piVars['pointer'] < $maxPages - 1) {
126 126
 
127
-            $output .= $this->pi_linkTP_keepPIvars($this->pi_getLL('nextPage', '&gt;', TRUE), array ('pointer' => $this->piVars['pointer'] + 1), TRUE);
127
+            $output .= $this->pi_linkTP_keepPIvars($this->pi_getLL('nextPage', '&gt;', TRUE), array('pointer' => $this->piVars['pointer'] + 1), TRUE);
128 128
 
129 129
         } else {
130 130
 
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
 
185 185
                         if (!empty($superiorTitle)) {
186 186
 
187
-                            $value = '['.$superiorTitle.']';
187
+                            $value = '[' . $superiorTitle . ']';
188 188
 
189 189
                         }
190 190
 
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
 
200 200
                     $imgAlt = htmlspecialchars($value);
201 201
 
202
-                    $additionalParams = array (
202
+                    $additionalParams = array(
203 203
                         'id' => $this->list[$number]['uid'],
204 204
                         'page' => $this->list[$number]['page']
205 205
                     );
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
 
211 211
                     }
212 212
 
213
-                    $conf = array (
213
+                    $conf = array(
214 214
                         'useCacheHash' => 1,
215 215
                         'parameter' => $this->conf['targetPid'],
216 216
                         'additionalParams' => \TYPO3\CMS\Core\Utility\GeneralUtility::implodeArrayForUrl($this->prefixId, $additionalParams, '', TRUE, FALSE)
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
         // Add thumbnail.
265 265
         if (!empty($this->list[$number]['thumbnail'])) {
266 266
 
267
-            $markerArray['###THUMBNAIL###'] = '<img alt="'.$imgAlt.'" src="'.$this->list[$number]['thumbnail'].'" />';
267
+            $markerArray['###THUMBNAIL###'] = '<img alt="' . $imgAlt . '" src="' . $this->list[$number]['thumbnail'] . '" />';
268 268
 
269 269
         }
270 270
 
@@ -286,9 +286,9 @@  discard block
 block discarded – undo
286 286
 
287 287
         if (!empty($this->conf['basketButton']) && !empty($this->conf['targetBasket'])) {
288 288
 
289
-            $additionalParams = array ('id' => $this->list[$number]['uid'], 'startpage' => $this->list[$number]['page'], 'addToBasket' => 'list');
289
+            $additionalParams = array('id' => $this->list[$number]['uid'], 'startpage' => $this->list[$number]['page'], 'addToBasket' => 'list');
290 290
 
291
-            $conf = array (
291
+            $conf = array(
292 292
                 'useCacheHash' => 1,
293 293
                 'parameter' => $this->conf['targetBasket'],
294 294
                 'additionalParams' => \TYPO3\CMS\Core\Utility\GeneralUtility::implodeArrayForUrl($this->prefixId, $additionalParams, '', TRUE, FALSE)
@@ -348,57 +348,57 @@  discard block
 block discarded – undo
348 348
         $prefix = str_replace('_', '-', get_class($this));
349 349
 
350 350
         // Configure @action URL for form.
351
-        $linkConf = array (
351
+        $linkConf = array(
352 352
             'parameter' => $GLOBALS['TSFE']->id
353 353
         );
354 354
 
355 355
         if (!empty($this->piVars['logicalPage'])) {
356 356
 
357
-            $linkConf['additionalParams'] = \TYPO3\CMS\Core\Utility\GeneralUtility::implodeArrayForUrl($this->prefixId, array ('logicalPage' => $this->piVars['logicalPage']), '', TRUE, FALSE);
357
+            $linkConf['additionalParams'] = \TYPO3\CMS\Core\Utility\GeneralUtility::implodeArrayForUrl($this->prefixId, array('logicalPage' => $this->piVars['logicalPage']), '', TRUE, FALSE);
358 358
 
359 359
         }
360 360
 
361 361
         // Build HTML form.
362
-        $sorting = '<form action="'.$this->cObj->typoLink_URL($linkConf).'" method="get"><div><input type="hidden" name="id" value="'.$GLOBALS['TSFE']->id.'" />';
362
+        $sorting = '<form action="' . $this->cObj->typoLink_URL($linkConf) . '" method="get"><div><input type="hidden" name="id" value="' . $GLOBALS['TSFE']->id . '" />';
363 363
 
364 364
         foreach ($this->piVars as $piVar => $value) {
365 365
 
366 366
             if ($piVar != 'order' && $piVar != 'DATA' && !empty($value)) {
367 367
 
368
-                $sorting .= '<input type="hidden" name="'.$this->prefixId.'['.preg_replace('/[^A-Za-z0-9_-]/', '', $piVar).']" value="'.htmlspecialchars($value).'" />';
368
+                $sorting .= '<input type="hidden" name="' . $this->prefixId . '[' . preg_replace('/[^A-Za-z0-9_-]/', '', $piVar) . ']" value="' . htmlspecialchars($value) . '" />';
369 369
 
370 370
             }
371 371
 
372 372
         }
373 373
 
374 374
         // Select sort field.
375
-        $uniqId = uniqid($prefix.'-');
375
+        $uniqId = uniqid($prefix . '-');
376 376
 
377
-        $sorting .= '<label for="'.$uniqId.'">'.$this->pi_getLL('orderBy', '', TRUE).'</label><select id="'.$uniqId.'" name="'.$this->prefixId.'[order]" onchange="javascript:this.form.submit();">';
377
+        $sorting .= '<label for="' . $uniqId . '">' . $this->pi_getLL('orderBy', '', TRUE) . '</label><select id="' . $uniqId . '" name="' . $this->prefixId . '[order]" onchange="javascript:this.form.submit();">';
378 378
 
379 379
         // Add relevance sorting if this is a search result list.
380 380
         if ($this->list->metadata['options']['source'] == 'search') {
381 381
 
382
-            $sorting .= '<option value="score"'.(($this->list->metadata['options']['order'] == 'score') ? ' selected="selected"' : '').'>'.$this->pi_getLL('relevance', '', TRUE).'</option>';
382
+            $sorting .= '<option value="score"' . (($this->list->metadata['options']['order'] == 'score') ? ' selected="selected"' : '') . '>' . $this->pi_getLL('relevance', '', TRUE) . '</option>';
383 383
 
384 384
         }
385 385
 
386 386
         foreach ($this->sortables as $index_name => $label) {
387 387
 
388
-            $sorting .= '<option value="'.htmlspecialchars($index_name).'"'.(($this->list->metadata['options']['order'] == $index_name) ? ' selected="selected"' : '').'>'.htmlspecialchars($label).'</option>';
388
+            $sorting .= '<option value="' . htmlspecialchars($index_name) . '"' . (($this->list->metadata['options']['order'] == $index_name) ? ' selected="selected"' : '') . '>' . htmlspecialchars($label) . '</option>';
389 389
 
390 390
         }
391 391
 
392 392
         $sorting .= '</select>';
393 393
 
394 394
         // Select sort direction.
395
-        $uniqId = uniqid($prefix.'-');
395
+        $uniqId = uniqid($prefix . '-');
396 396
 
397
-        $sorting .= '<label for="'.$uniqId.'">'.$this->pi_getLL('direction', '', TRUE).'</label><select id="'.$uniqId.'" name="'.$this->prefixId.'[asc]" onchange="javascript:this.form.submit();">';
397
+        $sorting .= '<label for="' . $uniqId . '">' . $this->pi_getLL('direction', '', TRUE) . '</label><select id="' . $uniqId . '" name="' . $this->prefixId . '[asc]" onchange="javascript:this.form.submit();">';
398 398
 
399
-        $sorting .= '<option value="1" '.($this->list->metadata['options']['order.asc'] ? ' selected="selected"' : '').'>'.$this->pi_getLL('direction.asc', '', TRUE).'</option>';
399
+        $sorting .= '<option value="1" ' . ($this->list->metadata['options']['order.asc'] ? ' selected="selected"' : '') . '>' . $this->pi_getLL('direction.asc', '', TRUE) . '</option>';
400 400
 
401
-        $sorting .= '<option value="0" '.(!$this->list->metadata['options']['order.asc'] ? ' selected="selected"' : '').'>'.$this->pi_getLL('direction.desc', '', TRUE).'</option>';
401
+        $sorting .= '<option value="0" ' . (!$this->list->metadata['options']['order.asc'] ? ' selected="selected"' : '') . '>' . $this->pi_getLL('direction.desc', '', TRUE) . '</option>';
402 402
 
403 403
         $sorting .= '</select></div></form>';
404 404
 
@@ -454,7 +454,7 @@  discard block
 block discarded – undo
454 454
 
455 455
                             if (!empty($superiorTitle)) {
456 456
 
457
-                                $value = '['.$superiorTitle.']';
457
+                                $value = '[' . $superiorTitle . ']';
458 458
 
459 459
                             }
460 460
 
@@ -469,7 +469,7 @@  discard block
 block discarded – undo
469 469
 
470 470
                         $imgAlt = htmlspecialchars($value);
471 471
 
472
-                        $additionalParams = array (
472
+                        $additionalParams = array(
473 473
                             'id' => $subpart['uid'],
474 474
                             'page' => $subpart['page'],
475 475
                             'highlight_word' => $highlight_word
@@ -481,7 +481,7 @@  discard block
 block discarded – undo
481 481
 
482 482
                         }
483 483
 
484
-                        $conf = array (
484
+                        $conf = array(
485 485
                             // we don't want cHash in case of search parameters
486 486
                             'useCacheHash' => empty($this->list->metadata['searchString']) ? 1 : 0,
487 487
                             'parameter' => $this->conf['targetPid'],
@@ -505,7 +505,7 @@  discard block
 block discarded – undo
505 505
                         // Add page number for single pages.
506 506
                         if ($_value == 'page') {
507 507
 
508
-                            $value .= ' '.intval($subpart['page']);
508
+                            $value .= ' ' . intval($subpart['page']);
509 509
 
510 510
                         }
511 511
 
@@ -545,7 +545,7 @@  discard block
 block discarded – undo
545 545
             // Add thumbnail.
546 546
             if (!empty($subpart['thumbnail'])) {
547 547
 
548
-                $markerArray['###SUBTHUMBNAIL###'] = '<img alt="'.$imgAlt.'" src="'.$subpart['thumbnail'].'" />';
548
+                $markerArray['###SUBTHUMBNAIL###'] = '<img alt="' . $imgAlt . '" src="' . $subpart['thumbnail'] . '" />';
549 549
 
550 550
             }
551 551
 
@@ -561,9 +561,9 @@  discard block
 block discarded – undo
561 561
 
562 562
             if (!empty($this->conf['basketButton']) && !empty($this->conf['targetBasket'])) {
563 563
 
564
-                $additionalParams = array ('id' => $this->list[$number]['uid'], 'startpage' => $subpart['page'], 'endpage' => $subpart['page'], 'logId' => $subpart['sid'], 'addToBasket' => 'subentry');
564
+                $additionalParams = array('id' => $this->list[$number]['uid'], 'startpage' => $subpart['page'], 'endpage' => $subpart['page'], 'logId' => $subpart['sid'], 'addToBasket' => 'subentry');
565 565
 
566
-                $conf = array (
566
+                $conf = array(
567 567
                     'useCacheHash' => 1,
568 568
                     'parameter' => $this->conf['targetBasket'],
569 569
                     'additionalParams' => \TYPO3\CMS\Core\Utility\GeneralUtility::implodeArrayForUrl($this->prefixId, $additionalParams, '', TRUE, FALSE)
@@ -595,7 +595,7 @@  discard block
 block discarded – undo
595 595
         $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
596 596
             'tx_dlf_metadata.index_name AS index_name,tx_dlf_metadata.wrap AS wrap,tx_dlf_metadata.is_listed AS is_listed,tx_dlf_metadata.is_sortable AS is_sortable',
597 597
             'tx_dlf_metadata',
598
-            '(tx_dlf_metadata.is_listed=1 OR tx_dlf_metadata.is_sortable=1) AND tx_dlf_metadata.pid='.intval($this->conf['pages']).tx_dlf_helper::whereClause('tx_dlf_metadata'),
598
+            '(tx_dlf_metadata.is_listed=1 OR tx_dlf_metadata.is_sortable=1) AND tx_dlf_metadata.pid=' . intval($this->conf['pages']) . tx_dlf_helper::whereClause('tx_dlf_metadata'),
599 599
             '',
600 600
             'tx_dlf_metadata.sorting ASC',
601 601
             ''
@@ -605,7 +605,7 @@  discard block
 block discarded – undo
605 605
 
606 606
             if ($resArray['is_listed']) {
607 607
 
608
-                $this->metadata[$resArray['index_name']] = array (
608
+                $this->metadata[$resArray['index_name']] = array(
609 609
                     'wrap' => $resArray['wrap'],
610 610
                     'label' => tx_dlf_helper::translate($resArray['index_name'], 'tx_dlf_metadata', $this->conf['pages'])
611 611
                 );
@@ -678,7 +678,7 @@  discard block
 block discarded – undo
678 678
                 || (isset($this->piVars['asc']) && $this->piVars['asc'] != $listMetadata['options']['order.asc'])) {
679 679
 
680 680
                 // Update list's metadata.
681
-                $listMetadata['options']['params']['sort'] = array ($this->piVars['order']."_sorting" => (boolean) $this->piVars['asc']?'asc':'desc');
681
+                $listMetadata['options']['params']['sort'] = array($this->piVars['order'] . "_sorting" => (boolean) $this->piVars['asc'] ? 'asc' : 'desc');
682 682
 
683 683
                 $listMetadata['options']['order'] = $this->piVars['order'];
684 684
                 $listMetadata['options']['order.asc'] = (boolean) $this->piVars['asc'];
@@ -702,7 +702,7 @@  discard block
 block discarded – undo
702 702
 
703 703
                     if (TYPO3_DLOG) {
704 704
 
705
-                        \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_listview->main('.$content.', [data])] Apache Solr not available', $this->extKey, SYSLOG_SEVERITY_ERROR, $conf);
705
+                        \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_listview->main(' . $content . ', [data])] Apache Solr not available', $this->extKey, SYSLOG_SEVERITY_ERROR, $conf);
706 706
 
707 707
                     }
708 708
 
@@ -711,7 +711,7 @@  discard block
 block discarded – undo
711 711
                 }
712 712
 
713 713
                 // Set search parameters.
714
-                $solr->cPid =  $listMetadata['options']['pid'];
714
+                $solr->cPid = $listMetadata['options']['pid'];
715 715
                 $solr->params = $listMetadata['options']['params'];
716 716
 
717 717
                 // Perform search.
@@ -720,7 +720,7 @@  discard block
 block discarded – undo
720 720
             }
721 721
 
722 722
             // Add list description
723
-            $listMetadata['description'] = '<p class="tx-dlf-search-numHits">'.htmlspecialchars(sprintf($this->pi_getLL('hits', ''), $this->list->metadata['options']['numberOfHits'], $this->list->metadata['options']['numberOfToplevelHits'])).'</p>';
723
+            $listMetadata['description'] = '<p class="tx-dlf-search-numHits">' . htmlspecialchars(sprintf($this->pi_getLL('hits', ''), $this->list->metadata['options']['numberOfHits'], $this->list->metadata['options']['numberOfToplevelHits'])) . '</p>';
724 724
             $this->list->metadata = $listMetadata;
725 725
 
726 726
             // Save updated list.
@@ -780,7 +780,7 @@  discard block
 block discarded – undo
780 780
 
781 781
         if (!empty($this->list->metadata['thumbnail'])) {
782 782
 
783
-            $markerArray['###LISTTHUMBNAIL###'] = '<img alt="" src="'.$this->list->metadata['thumbnail'].'" />';
783
+            $markerArray['###LISTTHUMBNAIL###'] = '<img alt="" src="' . $this->list->metadata['thumbnail'] . '" />';
784 784
 
785 785
         } else {
786 786
 
@@ -790,7 +790,7 @@  discard block
 block discarded – undo
790 790
 
791 791
         if ($currentEntry) {
792 792
 
793
-            $currentEntry =  ($this->piVars['pointer'] * $this->conf['limit']) + 1;
793
+            $currentEntry = ($this->piVars['pointer'] * $this->conf['limit']) + 1;
794 794
             $lastEntry = ($this->piVars['pointer'] * $this->conf['limit']) + $this->conf['limit'];
795 795
 
796 796
             $markerArray['###COUNT###'] = htmlspecialchars(sprintf($this->pi_getLL('count'), $currentEntry, $lastEntry < $this->list->metadata['options']['numberOfToplevelHits'] ? $lastEntry : $this->list->metadata['options']['numberOfToplevelHits'], $this->list->metadata['options']['numberOfToplevelHits']));
Please login to merge, or discard this patch.