Scrutinizer GitHub App not installed

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

Install GitHub App

GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Push — 2.x ( b02829...059be3 )
by Alexander
05:39 queued 27s
created
modules/newclient/index.php 1 patch
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -21,11 +21,11 @@  discard block
 block discarded – undo
21 21
 
22 22
     protected $modPath = 'newclient/';
23 23
 
24
-    protected $buttonArray = array (
24
+    protected $buttonArray = array(
25 25
         'SHORTCUT' => '',
26 26
     );
27 27
 
28
-    protected $markerArray = array (
28
+    protected $markerArray = array(
29 29
         'CSH' => '',
30 30
         'MOD_MENU' => '',
31 31
         'CONTENT' => '',
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
         $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
45 45
                 'uid,db_mountpoints',
46 46
                 'be_groups',
47
-                'title='.$GLOBALS['TYPO3_DB']->fullQuoteStr('_cli_dlf', 'be_groups').' AND '.$GLOBALS['TCA']['be_groups']['ctrl']['enablecolumns']['disabled'].'=0'.\TYPO3\CMS\Backend\Utility\BackendUtility::deleteClause('be_groups')
47
+                'title=' . $GLOBALS['TYPO3_DB']->fullQuoteStr('_cli_dlf', 'be_groups') . ' AND ' . $GLOBALS['TCA']['be_groups']['ctrl']['enablecolumns']['disabled'] . '=0' . \TYPO3\CMS\Backend\Utility\BackendUtility::deleteClause('be_groups')
48 48
         );
49 49
 
50 50
         if ($GLOBALS['TYPO3_DB']->sql_num_rows($result)) {
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
             // Add current page to mountpoints.
55 55
             if (!\TYPO3\CMS\Core\Utility\GeneralUtility::inList($resArray['db_mountpoints'], $this->id)) {
56 56
 
57
-                $data['be_groups'][$resArray['uid']]['db_mountpoints'] = $resArray['db_mountpoints'].','.$this->id;
57
+                $data['be_groups'][$resArray['uid']]['db_mountpoints'] = $resArray['db_mountpoints'] . ',' . $this->id;
58 58
 
59 59
                 tx_dlf_helper::processDBasAdmin($data);
60 60
 
@@ -85,14 +85,14 @@  discard block
 block discarded – undo
85 85
     protected function cmdAddMetadata() {
86 86
 
87 87
         // Include metadata definition file.
88
-        include_once(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($this->extKey).'modules/'.$this->modPath.'metadata.inc.php');
88
+        include_once(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($this->extKey) . 'modules/' . $this->modPath . 'metadata.inc.php');
89 89
 
90 90
         $i = 0;
91 91
 
92 92
         // Build data array.
93 93
         foreach ($metadata as $index_name => $values) {
94 94
 
95
-            $formatIds = array ();
95
+            $formatIds = array();
96 96
 
97 97
             foreach ($values['format'] as $format) {
98 98
 
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
 
107 107
             }
108 108
 
109
-            $data['tx_dlf_metadata'][uniqid('NEW')] = array (
109
+            $data['tx_dlf_metadata'][uniqid('NEW')] = array(
110 110
                 'pid' => intval($this->id),
111 111
                 'label' => $GLOBALS['LANG']->getLL($index_name),
112 112
                 'index_name' => $index_name,
@@ -168,9 +168,9 @@  discard block
 block discarded – undo
168 168
     protected function cmdAddSolrCore() {
169 169
 
170 170
         // Build data array.
171
-        $data['tx_dlf_solrcores'][uniqid('NEW')] = array (
171
+        $data['tx_dlf_solrcores'][uniqid('NEW')] = array(
172 172
             'pid' => intval($this->id),
173
-            'label' => $GLOBALS['LANG']->getLL('solrcore').' (PID '.$this->id.')',
173
+            'label' => $GLOBALS['LANG']->getLL('solrcore') . ' (PID ' . $this->id . ')',
174 174
             'index_name' => '',
175 175
         );
176 176
 
@@ -215,12 +215,12 @@  discard block
 block discarded – undo
215 215
     protected function cmdAddStructure() {
216 216
 
217 217
         // Include structure definition file.
218
-        include_once(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($this->extKey).'modules/'.$this->modPath.'structures.inc.php');
218
+        include_once(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($this->extKey) . 'modules/' . $this->modPath . 'structures.inc.php');
219 219
 
220 220
         // Build data array.
221 221
         foreach ($structures as $index_name => $values) {
222 222
 
223
-            $data['tx_dlf_structures'][uniqid('NEW')] = array (
223
+            $data['tx_dlf_structures'][uniqid('NEW')] = array(
224 224
                 'pid' => intval($this->id),
225 225
                 'toplevel' => $values['toplevel'],
226 226
                 'label' => $GLOBALS['LANG']->getLL($index_name),
@@ -301,7 +301,7 @@  discard block
 block discarded – undo
301 301
             if (!empty($this->CMD)) {
302 302
 
303 303
                 // Sanitize input...
304
-                $_method = 'cmd'.ucfirst($this->CMD);
304
+                $_method = 'cmd' . ucfirst($this->CMD);
305 305
 
306 306
                 // ...and unset to prevent infinite looping.
307 307
                 unset ($this->CMD);
@@ -318,7 +318,7 @@  discard block
 block discarded – undo
318 318
             $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
319 319
                 'uid',
320 320
                 'tx_dlf_structures',
321
-                'pid='.intval($this->id).tx_dlf_helper::whereClause('tx_dlf_structures')
321
+                'pid=' . intval($this->id) . tx_dlf_helper::whereClause('tx_dlf_structures')
322 322
             );
323 323
 
324 324
             if ($GLOBALS['TYPO3_DB']->sql_num_rows($result)) {
@@ -335,7 +335,7 @@  discard block
 block discarded – undo
335 335
             } else {
336 336
 
337 337
                 // Configuration missing.
338
-                $_url = \TYPO3\CMS\Core\Utility\GeneralUtility::locationHeaderUrl(\TYPO3\CMS\Core\Utility\GeneralUtility::linkThisScript(array ('id' => $this->id, 'CMD' => 'addStructure')));
338
+                $_url = \TYPO3\CMS\Core\Utility\GeneralUtility::locationHeaderUrl(\TYPO3\CMS\Core\Utility\GeneralUtility::linkThisScript(array('id' => $this->id, 'CMD' => 'addStructure')));
339 339
 
340 340
                 $_message = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
341 341
                     'TYPO3\\CMS\\Core\\Messaging\\FlashMessage',
@@ -353,7 +353,7 @@  discard block
 block discarded – undo
353 353
             $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
354 354
                 'uid',
355 355
                 'tx_dlf_metadata',
356
-                'pid='.intval($this->id).tx_dlf_helper::whereClause('tx_dlf_metadata')
356
+                'pid=' . intval($this->id) . tx_dlf_helper::whereClause('tx_dlf_metadata')
357 357
             );
358 358
 
359 359
             if ($GLOBALS['TYPO3_DB']->sql_num_rows($result)) {
@@ -370,7 +370,7 @@  discard block
 block discarded – undo
370 370
             } else {
371 371
 
372 372
                 // Configuration missing.
373
-                $_url = \TYPO3\CMS\Core\Utility\GeneralUtility::locationHeaderUrl(\TYPO3\CMS\Core\Utility\GeneralUtility::linkThisScript(array ('id' => $this->id, 'CMD' => 'addMetadata')));
373
+                $_url = \TYPO3\CMS\Core\Utility\GeneralUtility::locationHeaderUrl(\TYPO3\CMS\Core\Utility\GeneralUtility::linkThisScript(array('id' => $this->id, 'CMD' => 'addMetadata')));
374 374
 
375 375
                 $_message = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
376 376
                     'TYPO3\\CMS\\Core\\Messaging\\FlashMessage',
@@ -388,7 +388,7 @@  discard block
 block discarded – undo
388 388
             $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
389 389
                 'uid,db_mountpoints',
390 390
                 'be_groups',
391
-                'title='.$GLOBALS['TYPO3_DB']->fullQuoteStr('_cli_dlf', 'be_groups').' AND '.$GLOBALS['TCA']['be_groups']['ctrl']['enablecolumns']['disabled'].'=0'.\TYPO3\CMS\Backend\Utility\BackendUtility::deleteClause('be_groups')
391
+                'title=' . $GLOBALS['TYPO3_DB']->fullQuoteStr('_cli_dlf', 'be_groups') . ' AND ' . $GLOBALS['TCA']['be_groups']['ctrl']['enablecolumns']['disabled'] . '=0' . \TYPO3\CMS\Backend\Utility\BackendUtility::deleteClause('be_groups')
392 392
             );
393 393
 
394 394
             if ($GLOBALS['TYPO3_DB']->sql_num_rows($result)) {
@@ -409,7 +409,7 @@  discard block
 block discarded – undo
409 409
                 } else {
410 410
 
411 411
                     // Configuration missing.
412
-                    $_url = \TYPO3\CMS\Core\Utility\GeneralUtility::locationHeaderUrl(\TYPO3\CMS\Core\Utility\GeneralUtility::linkThisScript(array ('id' => $this->id, 'CMD' => 'addAccessRights')));
412
+                    $_url = \TYPO3\CMS\Core\Utility\GeneralUtility::locationHeaderUrl(\TYPO3\CMS\Core\Utility\GeneralUtility::linkThisScript(array('id' => $this->id, 'CMD' => 'addAccessRights')));
413 413
 
414 414
                     $_message = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
415 415
                         'TYPO3\\CMS\\Core\\Messaging\\FlashMessage',
@@ -440,7 +440,7 @@  discard block
 block discarded – undo
440 440
             $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
441 441
                 'uid,pid',
442 442
                 'tx_dlf_solrcores',
443
-                'pid IN ('.intval($this->id).',0)'.tx_dlf_helper::whereClause('tx_dlf_solrcores')
443
+                'pid IN (' . intval($this->id) . ',0)' . tx_dlf_helper::whereClause('tx_dlf_solrcores')
444 444
             );
445 445
 
446 446
             if ($GLOBALS['TYPO3_DB']->sql_num_rows($result)) {
@@ -461,7 +461,7 @@  discard block
 block discarded – undo
461 461
                 } else {
462 462
 
463 463
                     // Default core available, but this is deprecated.
464
-                    $_url = \TYPO3\CMS\Core\Utility\GeneralUtility::locationHeaderUrl(\TYPO3\CMS\Core\Utility\GeneralUtility::linkThisScript(array ('id' => $this->id, 'CMD' => 'addSolrcore')));
464
+                    $_url = \TYPO3\CMS\Core\Utility\GeneralUtility::locationHeaderUrl(\TYPO3\CMS\Core\Utility\GeneralUtility::linkThisScript(array('id' => $this->id, 'CMD' => 'addSolrcore')));
465 465
 
466 466
                     $_message = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
467 467
                         'TYPO3\\CMS\\Core\\Messaging\\FlashMessage',
@@ -476,7 +476,7 @@  discard block
 block discarded – undo
476 476
             } else {
477 477
 
478 478
                 // Solr core missing.
479
-                $_url = \TYPO3\CMS\Core\Utility\GeneralUtility::locationHeaderUrl(\TYPO3\CMS\Core\Utility\GeneralUtility::linkThisScript(array ('id' => $this->id, 'CMD' => 'addSolrcore')));
479
+                $_url = \TYPO3\CMS\Core\Utility\GeneralUtility::locationHeaderUrl(\TYPO3\CMS\Core\Utility\GeneralUtility::linkThisScript(array('id' => $this->id, 'CMD' => 'addSolrcore')));
480 480
 
481 481
                 $_message = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
482 482
                     'TYPO3\\CMS\\Core\\Messaging\\FlashMessage',
Please login to merge, or discard this patch.
modules/newclient/structures.inc.php 1 patch
Spacing   +88 added lines, -88 removed lines patch added patch discarded remove patch
@@ -11,352 +11,352 @@
 block discarded – undo
11 11
 
12 12
 // Define structure elements.
13 13
 // @see http://dfg-viewer.de/en/structural-data-set/
14
-$structures = array (
15
-    'act' => array (
14
+$structures = array(
15
+    'act' => array(
16 16
         'toplevel' => 1,
17 17
         'oai_name' => '',
18 18
     ),
19
-    'additional' => array (
19
+    'additional' => array(
20 20
         'toplevel' => 0,
21 21
         'oai_name' => ''
22 22
     ),
23
-    'address' => array (
23
+    'address' => array(
24 24
         'toplevel' => 0,
25 25
         'oai_name' => ''
26 26
     ),
27
-    'album' => array (
27
+    'album' => array(
28 28
         'toplevel' => 1,
29 29
         'oai_name' => '',
30 30
     ),
31
-    'annotation' => array (
31
+    'annotation' => array(
32 32
         'toplevel' => 0,
33 33
         'oai_name' => ''
34 34
     ),
35
-    'article' => array (
35
+    'article' => array(
36 36
         'toplevel' => 0,
37 37
         'oai_name' => ''
38 38
     ),
39
-    'atlas' => array (
39
+    'atlas' => array(
40 40
         'toplevel' => 1,
41 41
         'oai_name' => '',
42 42
     ),
43
-    'bachelor_thesis' => array (
43
+    'bachelor_thesis' => array(
44 44
         'toplevel' => 1,
45 45
         'oai_name' => '',
46 46
     ),
47
-    'binding' => array (
47
+    'binding' => array(
48 48
         'toplevel' => 0,
49 49
         'oai_name' => ''
50 50
     ),
51
-    'bookplate' => array (
51
+    'bookplate' => array(
52 52
         'toplevel' => 0,
53 53
         'oai_name' => ''
54 54
     ),
55
-    'cartulary' => array (
55
+    'cartulary' => array(
56 56
         'toplevel' => 1,
57 57
         'oai_name' => '',
58 58
     ),
59
-    'chapter' => array (
59
+    'chapter' => array(
60 60
         'toplevel' => 0,
61 61
         'oai_name' => ''
62 62
     ),
63
-    'collation' => array (
63
+    'collation' => array(
64 64
         'toplevel' => 0,
65 65
         'oai_name' => ''
66 66
     ),
67
-    'colophon' => array (
67
+    'colophon' => array(
68 68
         'toplevel' => 0,
69 69
         'oai_name' => ''
70 70
     ),
71
-    'contained_work' => array (
71
+    'contained_work' => array(
72 72
         'toplevel' => 0,
73 73
         'oai_name' => ''
74 74
     ),
75
-    'contents' => array (
75
+    'contents' => array(
76 76
         'toplevel' => 0,
77 77
         'oai_name' => ''
78 78
     ),
79
-    'corrigenda' => array (
79
+    'corrigenda' => array(
80 80
         'toplevel' => 0,
81 81
         'oai_name' => ''
82 82
     ),
83
-    'cover' => array (
83
+    'cover' => array(
84 84
         'toplevel' => 0,
85 85
         'oai_name' => ''
86 86
     ),
87
-    'cover_front' => array (
87
+    'cover_front' => array(
88 88
         'toplevel' => 0,
89 89
         'oai_name' => ''
90 90
     ),
91
-    'cover_back' => array (
91
+    'cover_back' => array(
92 92
         'toplevel' => 0,
93 93
         'oai_name' => ''
94 94
     ),
95
-    'day' => array (
95
+    'day' => array(
96 96
         'toplevel' => 0,
97 97
         'oai_name' => ''
98 98
     ),
99
-    'dedication' => array (
99
+    'dedication' => array(
100 100
         'toplevel' => 0,
101 101
         'oai_name' => ''
102 102
     ),
103
-    'diploma_thesis' => array (
103
+    'diploma_thesis' => array(
104 104
         'toplevel' => 1,
105 105
         'oai_name' => '',
106 106
     ),
107
-    'doctoral_thesis' => array (
107
+    'doctoral_thesis' => array(
108 108
         'toplevel' => 1,
109 109
         'oai_name' => '',
110 110
     ),
111
-    'document' => array (
111
+    'document' => array(
112 112
         'toplevel' => 1,
113 113
         'oai_name' => '',
114 114
     ),
115
-    'dossier' => array (
115
+    'dossier' => array(
116 116
         'toplevel' => 1,
117 117
         'oai_name' => '',
118 118
     ),
119
-    'edge' => array (
119
+    'edge' => array(
120 120
         'toplevel' => 0,
121 121
         'oai_name' => ''
122 122
     ),
123
-    'endsheet' => array (
123
+    'endsheet' => array(
124 124
         'toplevel' => 0,
125 125
         'oai_name' => ''
126 126
     ),
127
-    'engraved_titlepage' => array (
127
+    'engraved_titlepage' => array(
128 128
         'toplevel' => 0,
129 129
         'oai_name' => ''
130 130
     ),
131
-    'entry' => array (
131
+    'entry' => array(
132 132
         'toplevel' => 0,
133 133
         'oai_name' => ''
134 134
     ),
135
-    'fascicle' => array (
135
+    'fascicle' => array(
136 136
         'toplevel' => 0,
137 137
         'oai_name' => ''
138 138
     ),
139
-    'file' => array (
139
+    'file' => array(
140 140
         'toplevel' => 1,
141 141
         'oai_name' => '',
142 142
     ),
143
-    'folder' => array (
143
+    'folder' => array(
144 144
         'toplevel' => 1,
145 145
         'oai_name' => '',
146 146
     ),
147
-    'fragment' => array (
147
+    'fragment' => array(
148 148
         'toplevel' => 1,
149 149
         'oai_name' => ''
150 150
     ),
151
-    'ground_plan' => array (
151
+    'ground_plan' => array(
152 152
         'toplevel' => 1,
153 153
         'oai_name' => '',
154 154
     ),
155
-    'habilitation_thesis' => array (
155
+    'habilitation_thesis' => array(
156 156
         'toplevel' => 1,
157 157
         'oai_name' => '',
158 158
     ),
159
-    'illustration' => array (
159
+    'illustration' => array(
160 160
         'toplevel' => 0,
161 161
         'oai_name' => ''
162 162
     ),
163
-    'image' => array (
163
+    'image' => array(
164 164
         'toplevel' => 1,
165 165
         'oai_name' => '',
166 166
     ),
167
-    'imprint' => array (
167
+    'imprint' => array(
168 168
         'toplevel' => 0,
169 169
         'oai_name' => ''
170 170
     ),
171
-    'index' => array (
171
+    'index' => array(
172 172
         'toplevel' => 0,
173 173
         'oai_name' => ''
174 174
     ),
175
-    'initial_decoration' => array (
175
+    'initial_decoration' => array(
176 176
         'toplevel' => 0,
177 177
         'oai_name' => ''
178 178
     ),
179
-    'issue' => array (
179
+    'issue' => array(
180 180
         'toplevel' => 0,
181 181
         'oai_name' => ''
182 182
     ),
183
-    'judgement' => array (
183
+    'judgement' => array(
184 184
         'toplevel' => 1,
185 185
         'oai_name' => '',
186 186
     ),
187
-    'land_register' => array (
187
+    'land_register' => array(
188 188
         'toplevel' => 1,
189 189
         'oai_name' => '',
190 190
     ),
191
-    'leaflet' => array (
191
+    'leaflet' => array(
192 192
         'toplevel' => 1,
193 193
         'oai_name' => '',
194 194
     ),
195
-    'lecture' => array (
195
+    'lecture' => array(
196 196
         'toplevel' => 1,
197 197
         'oai_name' => '',
198 198
     ),
199
-    'letter' => array (
199
+    'letter' => array(
200 200
         'toplevel' => 0,
201 201
         'oai_name' => '',
202 202
     ),
203
-    'magister_thesis' => array (
203
+    'magister_thesis' => array(
204 204
         'toplevel' => 1,
205 205
         'oai_name' => '',
206 206
     ),
207
-    'master_thesis' => array (
207
+    'master_thesis' => array(
208 208
         'toplevel' => 1,
209 209
         'oai_name' => '',
210 210
     ),
211
-    'manuscript' => array (
211
+    'manuscript' => array(
212 212
         'toplevel' => 1,
213 213
         'oai_name' => ''
214 214
     ),
215
-    'map' => array (
215
+    'map' => array(
216 216
         'toplevel' => 0,
217 217
         'oai_name' => ''
218 218
     ),
219
-    'monograph' => array (
219
+    'monograph' => array(
220 220
         'toplevel' => 1,
221 221
         'oai_name' => ''
222 222
     ),
223
-    'month' => array (
223
+    'month' => array(
224 224
         'toplevel' => 0,
225 225
         'oai_name' => ''
226 226
     ),
227
-    'multivolume_work' => array (
227
+    'multivolume_work' => array(
228 228
         'toplevel' => 1,
229 229
         'oai_name' => ''
230 230
     ),
231
-    'musical_notation' => array (
231
+    'musical_notation' => array(
232 232
         'toplevel' => 0,
233 233
         'oai_name' => ''
234 234
     ),
235
-    'newspaper' => array (
235
+    'newspaper' => array(
236 236
         'toplevel' => 1,
237 237
         'oai_name' => ''
238 238
     ),
239
-    'note' => array (
239
+    'note' => array(
240 240
         'toplevel' => 0,
241 241
         'oai_name' => '',
242 242
     ),
243
-    'official_notification' => array (
243
+    'official_notification' => array(
244 244
         'toplevel' => 1,
245 245
         'oai_name' => '',
246 246
     ),
247
-    'ornament' => array (
247
+    'ornament' => array(
248 248
         'toplevel' => 0,
249 249
         'oai_name' => ''
250 250
     ),
251
-    'paper' => array (
251
+    'paper' => array(
252 252
         'toplevel' => 1,
253 253
         'oai_name' => '',
254 254
     ),
255
-    'paste_down' => array (
255
+    'paste_down' => array(
256 256
         'toplevel' => 0,
257 257
         'oai_name' => ''
258 258
     ),
259
-    'periodical' => array (
259
+    'periodical' => array(
260 260
         'toplevel' => 1,
261 261
         'oai_name' => ''
262 262
     ),
263
-    'photograph' => array (
263
+    'photograph' => array(
264 264
         'toplevel' => 1,
265 265
         'oai_name' => '',
266 266
     ),
267
-    'plan' => array (
267
+    'plan' => array(
268 268
         'toplevel' => 1,
269 269
         'oai_name' => '',
270 270
     ),
271
-    'poster' => array (
271
+    'poster' => array(
272 272
         'toplevel' => 1,
273 273
         'oai_name' => '',
274 274
     ),
275
-    'preface' => array (
275
+    'preface' => array(
276 276
         'toplevel' => 0,
277 277
         'oai_name' => ''
278 278
     ),
279
-    'preprint' => array (
279
+    'preprint' => array(
280 280
         'toplevel' => 1,
281 281
         'oai_name' => '',
282 282
     ),
283
-    'printed_archives' => array (
283
+    'printed_archives' => array(
284 284
         'toplevel' => 1,
285 285
         'oai_name' => '',
286 286
     ),
287
-    'printers_mark' => array (
287
+    'printers_mark' => array(
288 288
         'toplevel' => 0,
289 289
         'oai_name' => ''
290 290
     ),
291
-    'privileges' => array (
291
+    'privileges' => array(
292 292
         'toplevel' => 0,
293 293
         'oai_name' => ''
294 294
     ),
295
-    'proceeding' => array (
295
+    'proceeding' => array(
296 296
         'toplevel' => 1,
297 297
         'oai_name' => '',
298 298
     ),
299
-    'provenance' => array (
299
+    'provenance' => array(
300 300
         'toplevel' => 0,
301 301
         'oai_name' => ''
302 302
     ),
303
-    'register' => array (
303
+    'register' => array(
304 304
         'toplevel' => 1,
305 305
         'oai_name' => '',
306 306
     ),
307
-    'report' => array (
307
+    'report' => array(
308 308
         'toplevel' => 1,
309 309
         'oai_name' => '',
310 310
     ),
311
-    'research_paper' => array (
311
+    'research_paper' => array(
312 312
         'toplevel' => 1,
313 313
         'oai_name' => '',
314 314
     ),
315
-    'scheme' => array (
315
+    'scheme' => array(
316 316
         'toplevel' => 0,
317 317
         'oai_name' => ''
318 318
     ),
319
-    'seal' => array (
319
+    'seal' => array(
320 320
         'toplevel' => 0,
321 321
         'oai_name' => '',
322 322
     ),
323
-    'section' => array (
323
+    'section' => array(
324 324
         'toplevel' => 0,
325 325
         'oai_name' => ''
326 326
     ),
327
-    'spine' => array (
327
+    'spine' => array(
328 328
         'toplevel' => 0,
329 329
         'oai_name' => ''
330 330
     ),
331
-    'stamp' => array (
331
+    'stamp' => array(
332 332
         'toplevel' => 0,
333 333
         'oai_name' => ''
334 334
     ),
335
-    'study' => array (
335
+    'study' => array(
336 336
         'toplevel' => 1,
337 337
         'oai_name' => '',
338 338
     ),
339
-    'table' => array (
339
+    'table' => array(
340 340
         'toplevel' => 0,
341 341
         'oai_name' => ''
342 342
     ),
343
-    'text' => array (
343
+    'text' => array(
344 344
         'toplevel' => 0,
345 345
         'oai_name' => ''
346 346
     ),
347
-    'title_page' => array (
347
+    'title_page' => array(
348 348
         'toplevel' => 0,
349 349
         'oai_name' => ''
350 350
     ),
351
-    'verse' => array (
351
+    'verse' => array(
352 352
         'toplevel' => 0,
353 353
         'oai_name' => ''
354 354
     ),
355
-    'volume' => array (
355
+    'volume' => array(
356 356
         'toplevel' => 1,
357 357
         'oai_name' => ''
358 358
     ),
359
-    'year' => array (
359
+    'year' => array(
360 360
         'toplevel' => 1,
361 361
         'oai_name' => ''
362 362
     )
Please login to merge, or discard this patch.
plugins/basket/class.tx_dlf_basket.php 1 patch
Spacing   +62 added lines, -62 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
             $query = $GLOBALS['TYPO3_DB']->SELECTquery(
64 64
                 '*',
65 65
                 'tx_dlf_basket',
66
-                'tx_dlf_basket.fe_user_id='.intval($insertArray['fe_user_id']).tx_dlf_helper::whereClause('tx_dlf_basket'),
66
+                'tx_dlf_basket.fe_user_id=' . intval($insertArray['fe_user_id']) . tx_dlf_helper::whereClause('tx_dlf_basket'),
67 67
                 '',
68 68
                 '',
69 69
                 '1'
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
             $query = $GLOBALS['TYPO3_DB']->SELECTquery(
81 81
                 '*',
82 82
                 'tx_dlf_basket',
83
-                'tx_dlf_basket.session_id='.$GLOBALS['TYPO3_DB']->fullQuoteStr($sessionId, 'tx_dlf_basket').tx_dlf_helper::whereClause('tx_dlf_basket'),
83
+                'tx_dlf_basket.session_id=' . $GLOBALS['TYPO3_DB']->fullQuoteStr($sessionId, 'tx_dlf_basket') . tx_dlf_helper::whereClause('tx_dlf_basket'),
84 84
                 '',
85 85
                 '',
86 86
                 '1'
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
         $resultMail = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
203 203
             '*',
204 204
             'tx_dlf_mail',
205
-            '1'.tx_dlf_helper::whereClause('tx_dlf_mail'),
205
+            '1' . tx_dlf_helper::whereClause('tx_dlf_mail'),
206 206
             '',
207 207
             'tx_dlf_mail.sorting',
208 208
             ''
@@ -212,11 +212,11 @@  discard block
 block discarded – undo
212 212
 
213 213
             $mailForm = '<select name="tx_dlf[mail_action]">';
214 214
 
215
-            $mailForm .= '<option value="">'.$this->pi_getLL('chooseMail', '', TRUE).'</option>';
215
+            $mailForm .= '<option value="">' . $this->pi_getLL('chooseMail', '', TRUE) . '</option>';
216 216
 
217 217
             while ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($resultMail)) {
218 218
 
219
-                $mailForm .= '<option value="'.$row['uid'].'">'.$row['name'].' ('.$row['mail'].')</option>';
219
+                $mailForm .= '<option value="' . $row['uid'] . '">' . $row['name'] . ' (' . $row['mail'] . ')</option>';
220 220
 
221 221
             }
222 222
 
@@ -230,9 +230,9 @@  discard block
 block discarded – undo
230 230
         // remove action form
231 231
         $markerArray['###REMOVEACTION###'] = '
232 232
 			<select name="tx_dlf[basket_action]">
233
-				<option value="">'.$this->pi_getLL('chooseAction', '', TRUE).'</option>
234
-				<option value="open">'.$this->pi_getLL('download', '', TRUE).'</option>
235
-				<option value="remove">'.$this->pi_getLL('remove', '', TRUE).'</option>
233
+				<option value="">'.$this->pi_getLL('chooseAction', '', TRUE) . '</option>
234
+				<option value="open">'.$this->pi_getLL('download', '', TRUE) . '</option>
235
+				<option value="remove">'.$this->pi_getLL('remove', '', TRUE) . '</option>
236 236
 			</select>
237 237
 			<input type="submit">
238 238
 		';
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
         $resultPrinter = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
242 242
             '*',
243 243
             'tx_dlf_printer',
244
-            '1'.tx_dlf_helper::whereClause('tx_dlf_printer'),
244
+            '1' . tx_dlf_helper::whereClause('tx_dlf_printer'),
245 245
             '',
246 246
             '',
247 247
             ''
@@ -253,11 +253,11 @@  discard block
 block discarded – undo
253 253
 
254 254
             $printForm = '<select name="tx_dlf[print_action]">';
255 255
 
256
-            $printForm .= '<option value="">'.$this->pi_getLL('choosePrinter', '', TRUE).'</option>';
256
+            $printForm .= '<option value="">' . $this->pi_getLL('choosePrinter', '', TRUE) . '</option>';
257 257
 
258 258
             while ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($resultPrinter)) {
259 259
 
260
-                $printForm .= '<option value="'.$row['uid'].'">'.$row['label'].'</option>';
260
+                $printForm .= '<option value="' . $row['uid'] . '">' . $row['label'] . '</option>';
261 261
 
262 262
             }
263 263
 
@@ -290,7 +290,7 @@  discard block
 block discarded – undo
290 290
 
291 291
             $label = $this->pi_getLL('goBasket', '', TRUE);
292 292
 
293
-            $basketConf = array (
293
+            $basketConf = array(
294 294
                 'parameter' => $this->conf['targetBasket'],
295 295
                 'title' => $label
296 296
             );
@@ -343,38 +343,38 @@  discard block
 block discarded – undo
343 343
 
344 344
         $markerArray['###BASKETDATA###'] = $docData['downloadLink'];
345 345
 
346
-        $arrayKey = $id.'_'.$startpage;
346
+        $arrayKey = $id . '_' . $startpage;
347 347
 
348 348
         if (isset($startX)) {
349 349
 
350
-            $arrayKey .= '_'.$startX;
350
+            $arrayKey .= '_' . $startX;
351 351
 
352 352
         }
353 353
 
354 354
         if (isset($endX)) {
355 355
 
356
-            $arrayKey .= '_'.$endX;
356
+            $arrayKey .= '_' . $endX;
357 357
 
358 358
         }
359 359
 
360
-        $controlMark = '<input value="'.$id.'" name="tx_dlf[selected]['.$arrayKey.'][id]" type="checkbox">';
360
+        $controlMark = '<input value="' . $id . '" name="tx_dlf[selected][' . $arrayKey . '][id]" type="checkbox">';
361 361
 
362
-        $controlMark .= '<input value="'.$startpage.'" name="tx_dlf[selected]['.$arrayKey.'][startpage]" type="hidden">';
362
+        $controlMark .= '<input value="' . $startpage . '" name="tx_dlf[selected][' . $arrayKey . '][startpage]" type="hidden">';
363 363
 
364
-        $controlMark .= '<input value="'.$endpage.'" name="tx_dlf[selected]['.$arrayKey.'][endpage]" type="hidden">';
364
+        $controlMark .= '<input value="' . $endpage . '" name="tx_dlf[selected][' . $arrayKey . '][endpage]" type="hidden">';
365 365
 
366 366
         // add hidden fields for detail information
367 367
         if ($startX) {
368 368
 
369
-            $controlMark .= '<input type="hidden" name="tx_dlf[selected]['.$arrayKey.'][startX]" value="'.$startX.'">';
369
+            $controlMark .= '<input type="hidden" name="tx_dlf[selected][' . $arrayKey . '][startX]" value="' . $startX . '">';
370 370
 
371
-            $controlMark .= '<input type="hidden" name="tx_dlf[selected]['.$arrayKey.'][startY]"  value="'.$startY.'">';
371
+            $controlMark .= '<input type="hidden" name="tx_dlf[selected][' . $arrayKey . '][startY]"  value="' . $startY . '">';
372 372
 
373
-            $controlMark .= '<input type="hidden" name="tx_dlf[selected]['.$arrayKey.'][endX]"  value="'.$endX.'">';
373
+            $controlMark .= '<input type="hidden" name="tx_dlf[selected][' . $arrayKey . '][endX]"  value="' . $endX . '">';
374 374
 
375
-            $controlMark .= '<input type="hidden" name="tx_dlf[selected]['.$arrayKey.'][endY]"  value="'.$endY.'">';
375
+            $controlMark .= '<input type="hidden" name="tx_dlf[selected][' . $arrayKey . '][endY]"  value="' . $endY . '">';
376 376
 
377
-            $controlMark .= '<input type="hidden" name="tx_dlf[selected]['.$arrayKey.'][rotation]"  value="'.$rotation.'">';
377
+            $controlMark .= '<input type="hidden" name="tx_dlf[selected][' . $arrayKey . '][rotation]"  value="' . $rotation . '">';
378 378
 
379 379
         }
380 380
 
@@ -408,7 +408,7 @@  discard block
 block discarded – undo
408 408
 
409 409
         if ($page != NULL || $_piVars['addToBasket'] == 'list') {
410 410
 
411
-            $documentItem = array (
411
+            $documentItem = array(
412 412
                 'id' => intval($_piVars['id']),
413 413
                 'startpage' => intval($_piVars['startpage']),
414 414
                 'endpage' => !isset($_piVars['endpage']) || $_piVars['endpage'] === "" ? "" : intval($_piVars['endpage']),
@@ -428,7 +428,7 @@  discard block
 block discarded – undo
428 428
 
429 429
             } else {
430 430
 
431
-                $items = array ();
431
+                $items = array();
432 432
 
433 433
             }
434 434
 
@@ -453,17 +453,17 @@  discard block
 block discarded – undo
453 453
 
454 454
             }
455 455
 
456
-            $arrayKey = $documentItem['id'].'_'.$page;
456
+            $arrayKey = $documentItem['id'] . '_' . $page;
457 457
 
458 458
             if (!empty($documentItem['startX'])) {
459 459
 
460
-                $arrayKey .= '_'.$documentItem['startX'];
460
+                $arrayKey .= '_' . $documentItem['startX'];
461 461
 
462 462
             }
463 463
 
464 464
             if (!empty($documentItem['endX'])) {
465 465
 
466
-                $arrayKey .= '_'.$documentItem['endX'];
466
+                $arrayKey .= '_' . $documentItem['endX'];
467 467
 
468 468
             }
469 469
 
@@ -498,7 +498,7 @@  discard block
 block discarded – undo
498 498
 
499 499
                 }
500 500
 
501
-                $pdfGenerateUrl = $this->conf['pdfgenerate'].$pdfParams;
501
+                $pdfGenerateUrl = $this->conf['pdfgenerate'] . $pdfParams;
502 502
 
503 503
                 if ($this->conf['pregeneration']) {
504 504
 
@@ -507,7 +507,7 @@  discard block
 block discarded – undo
507 507
 					<script>
508 508
 						$(document).ready(function(){
509 509
 							$.ajax({
510
-							  url: "'.$pdfGenerateUrl.'",
510
+							  url: "'.$pdfGenerateUrl . '",
511 511
 							}).done(function() {
512 512
 							});
513 513
 						});
@@ -517,15 +517,15 @@  discard block
 block discarded – undo
517 517
 
518 518
             }
519 519
 
520
-            $update = array ('doc_ids' => json_encode($items));
520
+            $update = array('doc_ids' => json_encode($items));
521 521
 
522
-            $GLOBALS['TYPO3_DB']->exec_UPDATEquery('tx_dlf_basket', 'uid='.intval($basketData['uid']), $update);
522
+            $GLOBALS['TYPO3_DB']->exec_UPDATEquery('tx_dlf_basket', 'uid=' . intval($basketData['uid']), $update);
523 523
 
524 524
             $basketData['doc_ids'] = $items;
525 525
 
526 526
         }
527 527
 
528
-        return array ('basketData' => $basketData, 'jsOutput' => $output);
528
+        return array('basketData' => $basketData, 'jsOutput' => $output);
529 529
 
530 530
     }
531 531
 
@@ -549,17 +549,17 @@  discard block
 block discarded – undo
549 549
 
550 550
             if (isset($value['id'])) {
551 551
 
552
-                $arrayKey = $value['id'].'_'.$value['startpage'];
552
+                $arrayKey = $value['id'] . '_' . $value['startpage'];
553 553
 
554 554
                 if (isset($value['startX'])) {
555 555
 
556
-                    $arrayKey .= '_'.$value['startX'];
556
+                    $arrayKey .= '_' . $value['startX'];
557 557
 
558 558
                 }
559 559
 
560 560
                 if (isset($value['endX'])) {
561 561
 
562
-                    $arrayKey .= '_'.$value['endX'];
562
+                    $arrayKey .= '_' . $value['endX'];
563 563
 
564 564
                 }
565 565
 
@@ -575,15 +575,15 @@  discard block
 block discarded – undo
575 575
 
576 576
         if (empty($items)) {
577 577
 
578
-            $update = array ('doc_ids' => '');
578
+            $update = array('doc_ids' => '');
579 579
 
580 580
         } else {
581 581
 
582
-            $update = array ('doc_ids' => json_encode($items));
582
+            $update = array('doc_ids' => json_encode($items));
583 583
 
584 584
         }
585 585
 
586
-        $GLOBALS['TYPO3_DB']->exec_UPDATEquery('tx_dlf_basket', 'uid='.intval($basketData['uid']), $update);
586
+        $GLOBALS['TYPO3_DB']->exec_UPDATEquery('tx_dlf_basket', 'uid=' . intval($basketData['uid']), $update);
587 587
 
588 588
         $basketData['doc_ids'] = $items;
589 589
 
@@ -607,13 +607,13 @@  discard block
 block discarded – undo
607 607
 
608 608
                 $docData = $this->getDocumentData($docValue['id'], $docValue);
609 609
 
610
-                $pdfUrl .= $docData['urlParams'].$this->conf['pdfparamseparator'];
610
+                $pdfUrl .= $docData['urlParams'] . $this->conf['pdfparamseparator'];
611 611
 
612 612
             }
613 613
 
614 614
         }
615 615
 
616
-        header('Location: '.$pdfUrl);
616
+        header('Location: ' . $pdfUrl);
617 617
 
618 618
         ob_end_flush();
619 619
 
@@ -661,7 +661,7 @@  discard block
 block discarded – undo
661 661
 
662 662
             $urlParams = str_replace("##rotation##", $data['rotation'] === "" ? "" : intval($data['rotation']), $urlParams);
663 663
 
664
-            $downloadUrl = $this->conf['pdfgenerate'].$urlParams;
664
+            $downloadUrl = $this->conf['pdfgenerate'] . $urlParams;
665 665
 
666 666
             $title = $document->getTitle($id, TRUE);
667 667
 
@@ -677,22 +677,22 @@  discard block
 block discarded – undo
677 677
             if ($data['startX'] != '' && $data['endX'] != '') {
678 678
 
679 679
                 // cutout
680
-                $info .= $this->pi_getLL('cutout', '', TRUE).' ';
680
+                $info .= $this->pi_getLL('cutout', '', TRUE) . ' ';
681 681
 
682 682
             }
683 683
 
684 684
             if ($data['startpage'] == $data['endpage']) {
685 685
 
686 686
                 // One page
687
-                $info .= $this->pi_getLL('page', '', TRUE).' '.$data['startpage'];
687
+                $info .= $this->pi_getLL('page', '', TRUE) . ' ' . $data['startpage'];
688 688
 
689 689
             } else {
690 690
 
691
-                $info .= $this->pi_getLL('page', '', TRUE).' '.$data['startpage'].'-'.$data['endpage'];
691
+                $info .= $this->pi_getLL('page', '', TRUE) . ' ' . $data['startpage'] . '-' . $data['endpage'];
692 692
 
693 693
             }
694 694
 
695
-            $downloadLink = '<a href="'.$downloadUrl.'" target="_blank">'.$title.'</a> ('.$info.')';
695
+            $downloadLink = '<a href="' . $downloadUrl . '" target="_blank">' . $title . '</a> (' . $info . ')';
696 696
 
697 697
             if ($data['startpage'] == $data['endpage']) {
698 698
 
@@ -704,7 +704,7 @@  discard block
 block discarded – undo
704 704
 
705 705
             }
706 706
 
707
-            return array (
707
+            return array(
708 708
                 'downloadUrl' => $downloadUrl,
709 709
                 'downloadLink' => $downloadLink,
710 710
                 'pageNums'	=> $pageNums,
@@ -730,7 +730,7 @@  discard block
 block discarded – undo
730 730
         $resultMail = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
731 731
             '*',
732 732
             'tx_dlf_mail',
733
-            'tx_dlf_mail.uid="'.intval($mailId).'"'.tx_dlf_helper::whereClause('tx_dlf_mail'),
733
+            'tx_dlf_mail.uid="' . intval($mailId) . '"' . tx_dlf_helper::whereClause('tx_dlf_mail'),
734 734
             '',
735 735
             '',
736 736
             '1'
@@ -738,7 +738,7 @@  discard block
 block discarded – undo
738 738
 
739 739
         $mailData = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($resultMail);
740 740
 
741
-        $mailText = $this->pi_getLL('mailBody', '', TRUE)."\n";
741
+        $mailText = $this->pi_getLL('mailBody', '', TRUE) . "\n";
742 742
 
743 743
         $numberOfPages = 0;
744 744
 
@@ -753,7 +753,7 @@  discard block
 block discarded – undo
753 753
 
754 754
                 $docData = $this->getDocumentData($explodeId[0], $docValue);
755 755
 
756
-                $pdfUrl .= $docData['urlParams'].$this->conf['pdfparamseparator'];
756
+                $pdfUrl .= $docData['urlParams'] . $this->conf['pdfparamseparator'];
757 757
 
758 758
                 $pages = (abs(intval($docValue['startpage']) - intval($docValue['endpage'])));
759 759
 
@@ -774,7 +774,7 @@  discard block
 block discarded – undo
774 774
         // Remove leading/tailing pdfparamseperator
775 775
         $pdfUrl = trim($pdfUrl, $this->conf['pdfparamseparator']);
776 776
 
777
-        $mailBody = $mailText.$pdfUrl;
777
+        $mailBody = $mailText . $pdfUrl;
778 778
 
779 779
         // Get hook objects.
780 780
         $hookObjects = tx_dlf_helper::getHookObjects($this->scriptRelPath);
@@ -804,7 +804,7 @@  discard block
 block discarded – undo
804 804
             ->setFrom($from)
805 805
 
806 806
             // Set the To addresses with an associative array
807
-            ->setTo(array ($mailData['mail'] => $mailData['name']))
807
+            ->setTo(array($mailData['mail'] => $mailData['name']))
808 808
 
809 809
             ->setBody($mailBody, 'text/html')
810 810
 
@@ -812,7 +812,7 @@  discard block
 block discarded – undo
812 812
         ;
813 813
 
814 814
         // protocol
815
-        $insertArray = array (
815
+        $insertArray = array(
816 816
             'pid' => $this->conf['pages'],
817 817
             'file_name' => $pdfUrl,
818 818
             'count_pages' => $numberOfPages,
@@ -826,7 +826,7 @@  discard block
 block discarded – undo
826 826
 
827 827
             $insertArray['name'] = $GLOBALS["TSFE"]->fe_user->user['username'];
828 828
 
829
-            $insertArray['label'] = 'Mail: '.$mailData['mail'];
829
+            $insertArray['label'] = 'Mail: ' . $mailData['mail'];
830 830
 
831 831
         } else {
832 832
 
@@ -835,7 +835,7 @@  discard block
 block discarded – undo
835 835
 
836 836
             $insertArray['name'] = 'n/a';
837 837
 
838
-            $insertArray['label'] = 'Mail: '.$mailData['mail'];
838
+            $insertArray['label'] = 'Mail: ' . $mailData['mail'];
839 839
 
840 840
         }
841 841
 
@@ -859,7 +859,7 @@  discard block
 block discarded – undo
859 859
 
860 860
                 $docData = $this->getDocumentData($docValue['id'], $docValue);
861 861
 
862
-                $pdfUrl .= $docData['urlParams'].$this->conf['pdfparamseparator'];
862
+                $pdfUrl .= $docData['urlParams'] . $this->conf['pdfparamseparator'];
863 863
 
864 864
                 $numberOfPages += $docData['pageNums'];
865 865
 
@@ -874,7 +874,7 @@  discard block
 block discarded – undo
874 874
         $resultPrinter = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
875 875
             '*',
876 876
             'tx_dlf_printer',
877
-            'tx_dlf_printer.uid="'.intval($printerId).'"'.tx_dlf_helper::whereClause('tx_dlf_basket'),
877
+            'tx_dlf_printer.uid="' . intval($printerId) . '"' . tx_dlf_helper::whereClause('tx_dlf_basket'),
878 878
             '',
879 879
             '',
880 880
             '1'
@@ -897,7 +897,7 @@  discard block
 block discarded – undo
897 897
 
898 898
                     $docData = $this->getDocumentData($explodeId[0], $docValue);
899 899
 
900
-                    $pdfUrl .= $docData['urlParams'].$this->conf['pdfparamseparator'];
900
+                    $pdfUrl .= $docData['urlParams'] . $this->conf['pdfparamseparator'];
901 901
 
902 902
                     $numberOfPages += $docData['pageNums'];
903 903
 
@@ -910,7 +910,7 @@  discard block
 block discarded – undo
910 910
         }
911 911
 
912 912
         // protocol
913
-        $insertArray = array (
913
+        $insertArray = array(
914 914
             'pid' => $this->conf['pages'],
915 915
             'file_name' => $pdfUrl,
916 916
             'count_pages' => $numberOfPages,
@@ -924,7 +924,7 @@  discard block
 block discarded – undo
924 924
 
925 925
             $insertArray['name'] = $GLOBALS["TSFE"]->fe_user->user['username'];
926 926
 
927
-            $insertArray['label'] = 'Print: '.$printerData['label'];
927
+            $insertArray['label'] = 'Print: ' . $printerData['label'];
928 928
 
929 929
         } else {
930 930
 
@@ -933,14 +933,14 @@  discard block
 block discarded – undo
933 933
 
934 934
             $insertArray['name'] = 'n/a';
935 935
 
936
-            $insertArray['label'] = 'Print: '.$printerData['label'];
936
+            $insertArray['label'] = 'Print: ' . $printerData['label'];
937 937
 
938 938
         }
939 939
 
940 940
         // add action to protocol
941 941
         $GLOBALS['TYPO3_DB']->exec_INSERTquery('tx_dlf_actionlog', $insertArray);
942 942
 
943
-        header('Location: '.$pdfUrl);
943
+        header('Location: ' . $pdfUrl);
944 944
 
945 945
         ob_end_flush();
946 946
 
Please login to merge, or discard this patch.
plugins/oai/class.tx_dlf_oai.php 1 patch
Spacing   +47 added lines, -47 removed lines patch added patch discarded remove patch
@@ -43,21 +43,21 @@  discard block
 block discarded – undo
43 43
      * @var	array
44 44
      * @access protected
45 45
      */
46
-    protected $formats = array (
47
-        'oai_dc' => array (
46
+    protected $formats = array(
47
+        'oai_dc' => array(
48 48
             'schema' => 'http://www.openarchives.org/OAI/2.0/oai_dc.xsd',
49 49
             'namespace' => 'http://www.openarchives.org/OAI/2.0/oai_dc/',
50
-            'requiredFields' => array ('record_id'),
50
+            'requiredFields' => array('record_id'),
51 51
         ),
52
-        'epicur' => array (
52
+        'epicur' => array(
53 53
             'schema' => 'http://www.persistent-identifier.de/xepicur/version1.0/xepicur.xsd',
54 54
             'namespace' => 'urn:nbn:de:1111-2004033116',
55
-            'requiredFields' => array ('purl', 'urn'),
55
+            'requiredFields' => array('purl', 'urn'),
56 56
         ),
57
-        'mets' => array (
57
+        'mets' => array(
58 58
             'schema' => 'http://www.loc.gov/standards/mets/version17/mets.v1-7.xsd',
59 59
             'namespace' => 'http://www.loc.gov/METS/',
60
-            'requiredFields' => array ('location'),
60
+            'requiredFields' => array('location'),
61 61
         )
62 62
     );
63 63
 
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
         // Delete expired resumption tokens.
74 74
         $result = $GLOBALS['TYPO3_DB']->exec_DELETEquery(
75 75
             'tx_dlf_tokens',
76
-            'tx_dlf_tokens.ident="oai" AND tx_dlf_tokens.tstamp<'.intval($GLOBALS['EXEC_TIME'] - $this->conf['expired'])
76
+            'tx_dlf_tokens.ident="oai" AND tx_dlf_tokens.tstamp<' . intval($GLOBALS['EXEC_TIME'] - $this->conf['expired'])
77 77
         );
78 78
 
79 79
         if ($GLOBALS['TYPO3_DB']->sql_affected_rows() === -1) {
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
      */
110 110
     protected function getUrlParams() {
111 111
 
112
-        $allowedParams = array (
112
+        $allowedParams = array(
113 113
             'verb',
114 114
             'identifier',
115 115
             'metadataPrefix',
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
         );
121 121
 
122 122
         // Clear plugin variables.
123
-        $this->piVars = array ();
123
+        $this->piVars = array();
124 124
 
125 125
         // Set only allowed parameters.
126 126
         foreach ($allowedParams as $param) {
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
 
147 147
         $oai_dc->setAttributeNS('http://www.w3.org/2000/xmlns/', 'xmlns:dc', 'http://purl.org/dc/elements/1.1/');
148 148
         $oai_dc->setAttributeNS('http://www.w3.org/2000/xmlns/', 'xmlns:xsi', 'http://www.w3.org/2001/XMLSchema-instance');
149
-        $oai_dc->setAttributeNS('http://www.w3.org/2001/XMLSchema-instance', 'xsi:schemaLocation', $this->formats['oai_dc']['namespace'].' '.$this->formats['oai_dc']['schema']);
149
+        $oai_dc->setAttributeNS('http://www.w3.org/2001/XMLSchema-instance', 'xsi:schemaLocation', $this->formats['oai_dc']['namespace'] . ' ' . $this->formats['oai_dc']['schema']);
150 150
 
151 151
         $oai_dc->appendChild($this->oai->createElementNS('http://purl.org/dc/elements/1.1/', 'dc:identifier', htmlspecialchars($metadata['record_id'], ENT_NOQUOTES, 'UTF-8')));
152 152
 
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
             $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
182 182
                 'tx_dlf_documents.record_id',
183 183
                 'tx_dlf_documents',
184
-                'tx_dlf_documents.uid='.intval($metadata['partof']).tx_dlf_helper::whereClause('tx_dlf_documents'),
184
+                'tx_dlf_documents.uid=' . intval($metadata['partof']) . tx_dlf_helper::whereClause('tx_dlf_documents'),
185 185
                 '',
186 186
                 '',
187 187
                 '1'
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
 
257 257
         // Add attributes and build XML tree.
258 258
         $epicur->setAttributeNS('http://www.w3.org/2000/xmlns/', 'xmlns:xsi', 'http://www.w3.org/2001/XMLSchema-instance');
259
-        $epicur->setAttributeNS('http://www.w3.org/2001/XMLSchema-instance', 'xsi:schemaLocation', $this->formats['epicur']['namespace'].' '.$this->formats['epicur']['schema']);
259
+        $epicur->setAttributeNS('http://www.w3.org/2001/XMLSchema-instance', 'xsi:schemaLocation', $this->formats['epicur']['namespace'] . ' ' . $this->formats['epicur']['schema']);
260 260
 
261 261
         // Do we update an URN or register a new one?
262 262
         if ($metadata['tstamp'] == $metadata['crdate']) {
@@ -321,10 +321,10 @@  discard block
 block discarded – undo
321 321
                 // Import node into DOMDocument.
322 322
                 $mets = $this->oai->importNode($root->item(0), TRUE);
323 323
             } else {
324
-                    $this->devLog('[tx_dlf_oai->getMetsData([data])] No METS part found in document with location "'.$metadata['location'].'"', SYSLOG_SEVERITY_ERROR, $metadata);
324
+                    $this->devLog('[tx_dlf_oai->getMetsData([data])] No METS part found in document with location "' . $metadata['location'] . '"', SYSLOG_SEVERITY_ERROR, $metadata);
325 325
             }
326 326
         } else {
327
-            $this->devLog('[tx_dlf_oai->getMetsData([data])] Could not load XML file from "'.$metadata['location'].'"', SYSLOG_SEVERITY_ERROR, $metadata);
327
+            $this->devLog('[tx_dlf_oai->getMetsData([data])] Could not load XML file from "' . $metadata['location'] . '"', SYSLOG_SEVERITY_ERROR, $metadata);
328 328
         }
329 329
 
330 330
         if ($mets === NULL) {
@@ -369,7 +369,7 @@  discard block
 block discarded – undo
369 369
                 list ($extKey, $filePath) = explode('/', substr($this->conf['stylesheet'], 4), 2);
370 370
 
371 371
                 if (\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded($extKey)) {
372
-                    $this->conf['stylesheet'] = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($extKey).$filePath;
372
+                    $this->conf['stylesheet'] = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($extKey) . $filePath;
373 373
                 }
374 374
             }
375 375
 
@@ -377,10 +377,10 @@  discard block
 block discarded – undo
377 377
 
378 378
         } else {
379 379
             // Use default stylesheet if no custom stylesheet is given.
380
-            $stylesheet = \TYPO3\CMS\Core\Utility\GeneralUtility::locationHeaderUrl(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey).'plugins/oai/transform.xsl');
380
+            $stylesheet = \TYPO3\CMS\Core\Utility\GeneralUtility::locationHeaderUrl(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey) . 'plugins/oai/transform.xsl');
381 381
         }
382 382
 
383
-        $this->oai->appendChild($this->oai->createProcessingInstruction('xml-stylesheet', 'type="text/xsl" href="'.htmlspecialchars($stylesheet, ENT_NOQUOTES, 'UTF-8').'"'));
383
+        $this->oai->appendChild($this->oai->createProcessingInstruction('xml-stylesheet', 'type="text/xsl" href="' . htmlspecialchars($stylesheet, ENT_NOQUOTES, 'UTF-8') . '"'));
384 384
 
385 385
         // Create root element.
386 386
         $root = $this->oai->createElementNS('http://www.openarchives.org/OAI/2.0/', 'OAI-PMH');
@@ -422,7 +422,7 @@  discard block
 block discarded – undo
422 422
         }
423 423
 
424 424
         // Add request.
425
-        $linkConf = array (
425
+        $linkConf = array(
426 426
             'parameter' => $GLOBALS['TSFE']->id,
427 427
             'forceAbsoluteUrl' => 1
428 428
         );
@@ -448,10 +448,10 @@  discard block
 block discarded – undo
448 448
         // Send headers.
449 449
         header('HTTP/1.1 200 OK');
450 450
         header('Cache-Control: no-cache');
451
-        header('Content-Length: '.strlen($content));
451
+        header('Content-Length: ' . strlen($content));
452 452
         header('Content-Type: text/xml; charset=utf-8');
453
-        header('Date: '.date('r', $GLOBALS['EXEC_TIME']));
454
-        header('Expires: '.date('r', $GLOBALS['EXEC_TIME'] + $this->conf['expired']));
453
+        header('Date: ' . date('r', $GLOBALS['EXEC_TIME']));
454
+        header('Expires: ' . date('r', $GLOBALS['EXEC_TIME'] + $this->conf['expired']));
455 455
 
456 456
         echo $content;
457 457
 
@@ -473,7 +473,7 @@  discard block
 block discarded – undo
473 473
         $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
474 474
             'tx_dlf_tokens.options AS options',
475 475
             'tx_dlf_tokens',
476
-            'tx_dlf_tokens.ident="oai" AND tx_dlf_tokens.token='.$GLOBALS['TYPO3_DB']->fullQuoteStr($this->piVars['resumptionToken'], 'tx_dlf_tokens'),
476
+            'tx_dlf_tokens.ident="oai" AND tx_dlf_tokens.token=' . $GLOBALS['TYPO3_DB']->fullQuoteStr($this->piVars['resumptionToken'], 'tx_dlf_tokens'),
477 477
             '',
478 478
             '',
479 479
             '1'
@@ -520,7 +520,7 @@  discard block
 block discarded – undo
520 520
             'tx_dlf_documents',
521 521
             'tx_dlf_relations',
522 522
             'tx_dlf_collections',
523
-            'AND tx_dlf_documents.record_id='.$GLOBALS['TYPO3_DB']->fullQuoteStr($this->piVars['identifier'], 'tx_dlf_documents').' AND tx_dlf_documents.pid='.intval($this->conf['pages']).' AND tx_dlf_collections.pid='.intval($this->conf['pages']).' AND tx_dlf_relations.ident='.$GLOBALS['TYPO3_DB']->fullQuoteStr('docs_colls', 'tx_dlf_relations').$where.tx_dlf_helper::whereClause('tx_dlf_collections'),
523
+            'AND tx_dlf_documents.record_id=' . $GLOBALS['TYPO3_DB']->fullQuoteStr($this->piVars['identifier'], 'tx_dlf_documents') . ' AND tx_dlf_documents.pid=' . intval($this->conf['pages']) . ' AND tx_dlf_collections.pid=' . intval($this->conf['pages']) . ' AND tx_dlf_relations.ident=' . $GLOBALS['TYPO3_DB']->fullQuoteStr('docs_colls', 'tx_dlf_relations') . $where . tx_dlf_helper::whereClause('tx_dlf_collections'),
524 524
             '',
525 525
             '',
526 526
             '1'
@@ -608,7 +608,7 @@  discard block
 block discarded – undo
608 608
         $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
609 609
             'tx_dlf_libraries.oai_label AS oai_label,tx_dlf_libraries.contact AS contact',
610 610
             'tx_dlf_libraries',
611
-            'tx_dlf_libraries.pid='.intval($this->conf['pages']).' AND tx_dlf_libraries.uid='.intval($this->conf['library']).tx_dlf_helper::whereClause('tx_dlf_libraries'),
611
+            'tx_dlf_libraries.pid=' . intval($this->conf['pages']) . ' AND tx_dlf_libraries.uid=' . intval($this->conf['library']) . tx_dlf_helper::whereClause('tx_dlf_libraries'),
612 612
             '',
613 613
             '',
614 614
             ''
@@ -631,7 +631,7 @@  discard block
 block discarded – undo
631 631
         $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
632 632
             'tx_dlf_documents.tstamp AS tstamp',
633 633
             'tx_dlf_documents',
634
-            'tx_dlf_documents.pid='.intval($this->conf['pages']),
634
+            'tx_dlf_documents.pid=' . intval($this->conf['pages']),
635 635
             '',
636 636
             'tx_dlf_documents.tstamp ASC',
637 637
             '1'
@@ -641,10 +641,10 @@  discard block
 block discarded – undo
641 641
             list ($timestamp) = $GLOBALS['TYPO3_DB']->sql_fetch_row($result);
642 642
             $earliestDatestamp = gmdate('Y-m-d\TH:i:s\Z', $timestamp);
643 643
         } else {
644
-            $this->devLog('[tx_dlf_oai->verbIdentify()] No records found with PID "'.$this->conf['pages'].'"', SYSLOG_SEVERITY_NOTICE);
644
+            $this->devLog('[tx_dlf_oai->verbIdentify()] No records found with PID "' . $this->conf['pages'] . '"', SYSLOG_SEVERITY_NOTICE);
645 645
         }
646 646
 
647
-        $linkConf = array (
647
+        $linkConf = array(
648 648
             'parameter' => $GLOBALS['TSFE']->id,
649 649
             'forceAbsoluteUrl' => 1
650 650
         );
@@ -701,7 +701,7 @@  discard block
 block discarded – undo
701 701
 
702 702
         $resultSet->reset();
703 703
         $resultSet->add($documentSet);
704
-        $resultSet->metadata = array (
704
+        $resultSet->metadata = array(
705 705
             'completeListSize' => count($documentSet),
706 706
             'metadataPrefix' => $this->piVars['metadataPrefix'],
707 707
         );
@@ -719,7 +719,7 @@  discard block
 block discarded – undo
719 719
      */
720 720
     protected function verbListMetadataFormats() {
721 721
 
722
-        $resArray = array ();
722
+        $resArray = array();
723 723
 
724 724
         // Check for invalid arguments.
725 725
         if (count($this->piVars) > 1) {
@@ -731,7 +731,7 @@  discard block
 block discarded – undo
731 731
             $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
732 732
                 'tx_dlf_documents.*',
733 733
                 'tx_dlf_documents',
734
-                'tx_dlf_documents.pid='.intval($this->conf['pages']).' AND tx_dlf_documents.record_id='.$GLOBALS['TYPO3_DB']->fullQuoteStr($this->piVars['identifier'], 'tx_dlf_documents'),
734
+                'tx_dlf_documents.pid=' . intval($this->conf['pages']) . ' AND tx_dlf_documents.record_id=' . $GLOBALS['TYPO3_DB']->fullQuoteStr($this->piVars['identifier'], 'tx_dlf_documents'),
735 735
                 '',
736 736
                 '',
737 737
                 '1'
@@ -810,7 +810,7 @@  discard block
 block discarded – undo
810 810
 
811 811
         $resultSet->reset();
812 812
         $resultSet->add($documentSet);
813
-        $resultSet->metadata = array (
813
+        $resultSet->metadata = array(
814 814
             'completeListSize' => count($documentSet),
815 815
             'metadataPrefix' => $this->piVars['metadataPrefix'],
816 816
         );
@@ -845,7 +845,7 @@  discard block
 block discarded – undo
845 845
         $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
846 846
             'tx_dlf_collections.oai_name AS oai_name,tx_dlf_collections.label AS label',
847 847
             'tx_dlf_collections',
848
-            'tx_dlf_collections.sys_language_uid IN (-1,0) AND NOT tx_dlf_collections.oai_name=\'\' AND tx_dlf_collections.pid='.intval($this->conf['pages']).$where.tx_dlf_helper::whereClause('tx_dlf_collections'),
848
+            'tx_dlf_collections.sys_language_uid IN (-1,0) AND NOT tx_dlf_collections.oai_name=\'\' AND tx_dlf_collections.pid=' . intval($this->conf['pages']) . $where . tx_dlf_helper::whereClause('tx_dlf_collections'),
849 849
             'tx_dlf_collections.oai_name',
850 850
             'tx_dlf_collections.oai_name',
851 851
             ''
@@ -891,8 +891,8 @@  discard block
 block discarded – undo
891 891
             $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
892 892
                 'tx_dlf_collections.index_name AS index_name, tx_dlf_collections.uid AS uid, tx_dlf_collections.index_search as index_query ',
893 893
                 'tx_dlf_collections',
894
-                'tx_dlf_collections.pid='.intval($this->conf['pages']).' AND tx_dlf_collections.oai_name='.$GLOBALS['TYPO3_DB']->fullQuoteStr($this->piVars['set'],
895
-                    'tx_dlf_collections').$where.tx_dlf_helper::whereClause('tx_dlf_collections'),
894
+                'tx_dlf_collections.pid=' . intval($this->conf['pages']) . ' AND tx_dlf_collections.oai_name=' . $GLOBALS['TYPO3_DB']->fullQuoteStr($this->piVars['set'],
895
+                    'tx_dlf_collections') . $where . tx_dlf_helper::whereClause('tx_dlf_collections'),
896 896
                 '',
897 897
                 '',
898 898
                 '1'
@@ -905,9 +905,9 @@  discard block
 block discarded – undo
905 905
             $resArray = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($result);
906 906
 
907 907
             if ($resArray['index_query'] != "") {
908
-                $solr_query .= '('.$resArray['index_query'].')';
908
+                $solr_query .= '(' . $resArray['index_query'] . ')';
909 909
             } else {
910
-                $solr_query .= 'collection:'.'"'.$resArray['index_name'].'"';
910
+                $solr_query .= 'collection:' . '"' . $resArray['index_name'] . '"';
911 911
             }
912 912
 
913 913
         } else {
@@ -918,7 +918,7 @@  discard block
 block discarded – undo
918 918
 
919 919
         // Check for required fields.
920 920
         foreach ($this->formats[$this->piVars['metadataPrefix']]['requiredFields'] as $required) {
921
-            $solr_query .= ' NOT '.$required.':""';
921
+            $solr_query .= ' NOT ' . $required . ':""';
922 922
         }
923 923
 
924 924
         // toplevel="true" is always required
@@ -935,7 +935,7 @@  discard block
 block discarded – undo
935 935
                 $timestamp = gmmktime($date_array['tm_hour'], $date_array['tm_min'], $date_array['tm_sec'], $date_array['tm_mon'] + 1,
936 936
                     $date_array['tm_mday'], $date_array['tm_year'] + 1900);
937 937
 
938
-                $from = date("Y-m-d", $timestamp).'T'.date("H:i:s", $timestamp).'.000Z';
938
+                $from = date("Y-m-d", $timestamp) . 'T' . date("H:i:s", $timestamp) . '.000Z';
939 939
 
940 940
             } else {
941 941
                 throw new Exception('badArgument');
@@ -953,7 +953,7 @@  discard block
 block discarded – undo
953 953
                 $timestamp = gmmktime($date_array['tm_hour'], $date_array['tm_min'], $date_array['tm_sec'], $date_array['tm_mon'] + 1,
954 954
                     $date_array['tm_mday'], $date_array['tm_year'] + 1900);
955 955
 
956
-                $until = date("Y-m-d", $timestamp).'T'.date("H:i:s", $timestamp).'.999Z';
956
+                $until = date("Y-m-d", $timestamp) . 'T' . date("H:i:s", $timestamp) . '.999Z';
957 957
 
958 958
                 if ($from != "*" && $from > $until) {
959 959
                     throw new Exception('badArgument');
@@ -971,9 +971,9 @@  discard block
 block discarded – undo
971 971
             }
972 972
         }
973 973
 
974
-        $solr_query .= ' AND timestamp:['.$from.' TO '.$until.']';
974
+        $solr_query .= ' AND timestamp:[' . $from . ' TO ' . $until . ']';
975 975
 
976
-        $documentSet = array ();
976
+        $documentSet = array();
977 977
 
978 978
         $solr = tx_dlf_solr::getInstance($this->conf['solrcore']);
979 979
 
@@ -982,9 +982,9 @@  discard block
 block discarded – undo
982 982
         }
983 983
 
984 984
         // We only care about the UID in the results and want them sorted
985
-        $parameters = array (
985
+        $parameters = array(
986 986
             "fields" => "uid",
987
-            "sort" => array (
987
+            "sort" => array(
988 988
                 "uid" => "asc"
989 989
             )
990 990
         );
@@ -1016,7 +1016,7 @@  discard block
 block discarded – undo
1016 1016
             'tx_dlf_documents',
1017 1017
             'tx_dlf_relations',
1018 1018
             'tx_dlf_collections',
1019
-            'AND tx_dlf_documents.uid IN ('.implode(',', $GLOBALS['TYPO3_DB']->cleanIntArray($documentsToProcess)).') AND tx_dlf_documents.pid='.intval($this->conf['pages']).' AND tx_dlf_collections.pid='.intval($this->conf['pages']).' AND tx_dlf_relations.ident='.$GLOBALS['TYPO3_DB']->fullQuoteStr('docs_colls', 'tx_dlf_relations').tx_dlf_helper::whereClause('tx_dlf_collections'),
1019
+            'AND tx_dlf_documents.uid IN (' . implode(',', $GLOBALS['TYPO3_DB']->cleanIntArray($documentsToProcess)) . ') AND tx_dlf_documents.pid=' . intval($this->conf['pages']) . ' AND tx_dlf_collections.pid=' . intval($this->conf['pages']) . ' AND tx_dlf_relations.ident=' . $GLOBALS['TYPO3_DB']->fullQuoteStr('docs_colls', 'tx_dlf_relations') . tx_dlf_helper::whereClause('tx_dlf_collections'),
1020 1020
             'tx_dlf_documents.uid',
1021 1021
             'tx_dlf_documents.tstamp',
1022 1022
             $this->conf['limit']
@@ -1109,7 +1109,7 @@  discard block
 block discarded – undo
1109 1109
 
1110 1110
             $GLOBALS['TYPO3_DB']->exec_INSERTquery(
1111 1111
                 'tx_dlf_tokens',
1112
-                array (
1112
+                array(
1113 1113
                     'tstamp' => $GLOBALS['EXEC_TIME'],
1114 1114
                     'token' => $token,
1115 1115
                     'options' => serialize($documentListSet),
@@ -1122,7 +1122,7 @@  discard block
 block discarded – undo
1122 1122
                 $resumptionToken = $this->oai->createElementNS('http://www.openarchives.org/OAI/2.0/', 'resumptionToken', htmlspecialchars($token, ENT_NOQUOTES, 'UTF-8'));
1123 1123
 
1124 1124
             } else {
1125
-                $this->devLog('[tx_dlf_oai->verb'.$this->piVars['verb'].'()] Could not create resumption token', SYSLOG_SEVERITY_ERROR);
1125
+                $this->devLog('[tx_dlf_oai->verb' . $this->piVars['verb'] . '()] Could not create resumption token', SYSLOG_SEVERITY_ERROR);
1126 1126
 
1127 1127
             }
1128 1128
         } else {
Please login to merge, or discard this patch.
plugins/search/class.tx_dlf_search_suggest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      *
33 33
      * @return	void
34 34
      */
35
-    public function main($content = '', $conf = array ()) {
35
+    public function main($content = '', $conf = array()) {
36 36
 
37 37
         if (\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('encrypted') != '' && \TYPO3\CMS\Core\Utility\GeneralUtility::_GP('hashed') != '') {
38 38
 
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 
43 43
         if (!empty($core)) {
44 44
 
45
-            $url = trim(tx_dlf_solr::getSolrUrl($core), '/').'/suggest/?wt=xml&q='.tx_dlf_solr::escapeQuery(\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('q'));
45
+            $url = trim(tx_dlf_solr::getSolrUrl($core), '/') . '/suggest/?wt=xml&q=' . tx_dlf_solr::escapeQuery(\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('q'));
46 46
 
47 47
             if ($stream = fopen($url, 'r')) {
48 48
 
Please login to merge, or discard this patch.
plugins/toolbox/tools/fulltext/class.tx_dlf_toolsFulltext.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -88,10 +88,10 @@
 block discarded – undo
88 88
 
89 89
         if (!empty($fullTextFile)) {
90 90
             $markerArray['###FULLTEXT_SELECT###'] = '<a class="select switchoff" id="tx-dlf-tools-fulltext" title="" data-dic="fulltext-on:'
91
-                    .$this->pi_getLL('fulltext-on', '', TRUE).';fulltext-off:'
92
-                    .$this->pi_getLL('fulltext-off', '', TRUE).'">&nbsp;</a>';
91
+                    .$this->pi_getLL('fulltext-on', '', TRUE) . ';fulltext-off:'
92
+                    .$this->pi_getLL('fulltext-off', '', TRUE) . '">&nbsp;</a>';
93 93
         } else {
94
-            $markerArray['###FULLTEXT_SELECT###'] = '<span class="no-fulltext">'.$this->pi_getLL('fulltext-not-available', '', TRUE).'</span>';
94
+            $markerArray['###FULLTEXT_SELECT###'] = '<span class="no-fulltext">' . $this->pi_getLL('fulltext-not-available', '', TRUE) . '</span>';
95 95
         }
96 96
 
97 97
         $content .= $this->cObj->substituteMarkerArray($this->template, $markerArray);
Please login to merge, or discard this patch.
plugins/toolbox/tools/pdf/class.tx_dlf_toolsPdf.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -126,9 +126,9 @@  discard block
 block discarded – undo
126 126
         }
127 127
 
128 128
         if (TYPO3_DLOG && empty($page1Link) && empty($page2Link)) {
129
-            \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_toolsPdf->getPageLink()] '.
130
-                        'File not found in fileGrp "'.
131
-                        $this->conf['fileGrpDownload'].'"',
129
+            \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_toolsPdf->getPageLink()] ' .
130
+                        'File not found in fileGrp "' .
131
+                        $this->conf['fileGrpDownload'] . '"',
132 132
                         $this->extKey,
133 133
                         SYSLOG_SEVERITY_WARNING);
134 134
         }
@@ -137,18 +137,18 @@  discard block
 block discarded – undo
137 137
         if (!empty($page1Link)) {
138 138
             if ($this->piVars['double']) {
139 139
                 $page1Link = $this->cObj->typoLink($this->pi_getLL('leftPage', ''),
140
-                    array ('parameter' => $page1Link, 'title' => $this->pi_getLL('leftPage', '')));
140
+                    array('parameter' => $page1Link, 'title' => $this->pi_getLL('leftPage', '')));
141 141
             } else {
142 142
                 $page1Link = $this->cObj->typoLink($this->pi_getLL('singlePage', ''),
143
-                    array ('parameter' => $page1Link, 'title' => $this->pi_getLL('singlePage', '')));
143
+                    array('parameter' => $page1Link, 'title' => $this->pi_getLL('singlePage', '')));
144 144
             }
145 145
         }
146 146
         if (!empty($page2Link)) {
147 147
             $page2Link = $this->cObj->typoLink($this->pi_getLL('rightPage', ''),
148
-                array ('parameter' => $page2Link, 'title' => $this->pi_getLL('rightPage', '')));
148
+                array('parameter' => $page2Link, 'title' => $this->pi_getLL('rightPage', '')));
149 149
         }
150 150
 
151
-        return $page1Link.$page2Link;
151
+        return $page1Link . $page2Link;
152 152
     }
153 153
 
154 154
     /**
@@ -182,13 +182,13 @@  discard block
 block discarded – undo
182 182
         // Wrap URLs with HTML.
183 183
         if (!empty($workLink)) {
184 184
 
185
-            $workLink = $this->cObj->typoLink($this->pi_getLL('work', ''), array ('parameter' => $workLink, 'title' => $this->pi_getLL('work', '')));
185
+            $workLink = $this->cObj->typoLink($this->pi_getLL('work', ''), array('parameter' => $workLink, 'title' => $this->pi_getLL('work', '')));
186 186
 
187 187
         } else {
188 188
 
189 189
             if (TYPO3_DLOG) {
190 190
 
191
-                \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_toolsPdf->getWorkLink()] File not found in fileGrp "'.$this->conf['fileGrpDownload'].'"', $this->extKey, SYSLOG_SEVERITY_WARNING);
191
+                \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_toolsPdf->getWorkLink()] File not found in fileGrp "' . $this->conf['fileGrpDownload'] . '"', $this->extKey, SYSLOG_SEVERITY_WARNING);
192 192
 
193 193
             }
194 194
 
Please login to merge, or discard this patch.
toolbox/tools/searchindocument/class.tx_dlf_toolsSearchindocument.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@
 block discarded – undo
110 110
      */
111 111
     protected function addSearchInDocumentJS() {
112 112
         $pageRenderer = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Page\PageRenderer::class);
113
-        $pageRenderer->addJsFooterFile(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey).'plugins/toolbox/tools/searchindocument/tx_dlf_search_in_document.js');
113
+        $pageRenderer->addJsFooterFile(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey) . 'plugins/toolbox/tools/searchindocument/tx_dlf_search_in_document.js');
114 114
     }
115 115
 
116 116
     /**
Please login to merge, or discard this patch.
toolbox/tools/searchindocument/class.tx_dlf_search_in_document_eid.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      *
32 32
      * @return	string JSON response of search suggestions
33 33
      */
34
-    public function main($content = '', $conf = array ()) {
34
+    public function main($content = '', $conf = array()) {
35 35
 
36 36
         if (\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('encrypted') != '' && \TYPO3\CMS\Core\Utility\GeneralUtility::_GP('hashed') != '') {
37 37
 
@@ -41,9 +41,9 @@  discard block
 block discarded – undo
41 41
 
42 42
         if (!empty($core)) {
43 43
 
44
-            $url = trim(tx_dlf_solr::getSolrUrl($core), '/').'/select?wt=json&q='.urlencode('fulltext:('.tx_dlf_solr::escapeQuery(\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('q'))).')%20AND%20uid:'.\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('uid')
44
+            $url = trim(tx_dlf_solr::getSolrUrl($core), '/') . '/select?wt=json&q=' . urlencode('fulltext:(' . tx_dlf_solr::escapeQuery(\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('q'))) . ')%20AND%20uid:' . \TYPO3\CMS\Core\Utility\GeneralUtility::_GP('uid')
45 45
               .'&hl=on&hl.fl=fulltext&fl=uid,id,page&hl.method=fastVector'
46
-              .'&start='.\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('start').'&rows=20';
46
+              .'&start=' . \TYPO3\CMS\Core\Utility\GeneralUtility::_GP('start') . '&rows=20';
47 47
 
48 48
             $output = \TYPO3\CMS\Core\Utility\GeneralUtility::getUrl($url);
49 49
         }
Please login to merge, or discard this patch.