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
Pull Request — 2.x (#526)
by Sebastian
05:03
created
class.ext_update.php 3 patches
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
      */
64 64
     protected function getMetadataConfig() {
65 65
 
66
-        $uids = array ();
66
+        $uids = array();
67 67
 
68 68
         // check if tx_dlf_metadata.xpath exists anyhow
69 69
         $fieldsInDatabase = $GLOBALS['TYPO3_DB']->admin_get_fields('tx_dlf_metadata');
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
         $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
79 79
             'tx_dlf_metadata.uid AS uid',
80 80
             'tx_dlf_metadata',
81
-            'tx_dlf_metadata.format=0 AND NOT tx_dlf_metadata.xpath=\'\''.tx_dlf_helper::whereClause('tx_dlf_metadata'),
81
+            'tx_dlf_metadata.format=0 AND NOT tx_dlf_metadata.xpath=\'\'' . tx_dlf_helper::whereClause('tx_dlf_metadata'),
82 82
             '',
83 83
             '',
84 84
             ''
@@ -222,13 +222,13 @@  discard block
 block discarded – undo
222 222
 
223 223
         if (!empty($metadataUids)) {
224 224
 
225
-            $data = array ();
225
+            $data = array();
226 226
 
227 227
             // Get all old metadata configuration records.
228 228
             $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
229 229
                 'tx_dlf_metadata.uid AS uid,tx_dlf_metadata.pid AS pid,tx_dlf_metadata.cruser_id AS cruser_id,tx_dlf_metadata.encoded AS encoded,tx_dlf_metadata.xpath AS xpath,tx_dlf_metadata.xpath_sorting AS xpath_sorting',
230 230
                 'tx_dlf_metadata',
231
-                'tx_dlf_metadata.uid IN ('.implode(',', $metadataUids).')'.tx_dlf_helper::whereClause('tx_dlf_metadata'),
231
+                'tx_dlf_metadata.uid IN (' . implode(',', $metadataUids) . ')' . tx_dlf_helper::whereClause('tx_dlf_metadata'),
232 232
                 '',
233 233
                 '',
234 234
                 ''
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
                 $newId = uniqid('NEW');
240 240
 
241 241
                 // Copy record to new table.
242
-                $data['tx_dlf_metadataformat'][$newId] = array (
242
+                $data['tx_dlf_metadataformat'][$newId] = array(
243 243
                     'pid' => $resArray['pid'],
244 244
                     'cruser_id' => $resArray['cruser_id'],
245 245
                     'parent_id' => $resArray['uid'],
@@ -359,7 +359,7 @@  discard block
 block discarded – undo
359 359
                 // Prepend username and password to hostname.
360 360
                 if ($solrInfo['username'] && $solrInfo['password']) {
361 361
 
362
-                    $host = $solrInfo['username'].':'.$solrInfo['password'].'@'.$solrInfo['host'];
362
+                    $host = $solrInfo['username'] . ':' . $solrInfo['password'] . '@' . $solrInfo['host'];
363 363
 
364 364
                 } else {
365 365
 
@@ -367,8 +367,8 @@  discard block
 block discarded – undo
367 367
 
368 368
                 }
369 369
 
370
-                $context = stream_context_create(array (
371
-                    'http' => array (
370
+                $context = stream_context_create(array(
371
+                    'http' => array(
372 372
                         'method' => 'GET',
373 373
                         'user_agent' => ($conf['useragent'] ? $conf['useragent'] : ini_get('user_agent'))
374 374
                     )
@@ -376,7 +376,7 @@  discard block
 block discarded – undo
376 376
 
377 377
                 // Build request for adding new Solr core.
378 378
                 // @see http://wiki.apache.org/solr/CoreAdmin
379
-                $url = $solrInfo['scheme'].'://'.$host.':'.$solrInfo['port'].'/'.$solrInfo['path'].'/admin/cores?wt=xml&action=CREATE&name='.$resArray['index_name'].'&instanceDir=dlfCore'.$resArray['index_name'].'&dataDir=data&configSet=dlf';
379
+                $url = $solrInfo['scheme'] . '://' . $host . ':' . $solrInfo['port'] . '/' . $solrInfo['path'] . '/admin/cores?wt=xml&action=CREATE&name=' . $resArray['index_name'] . '&instanceDir=dlfCore' . $resArray['index_name'] . '&dataDir=data&configSet=dlf';
380 380
 
381 381
                 $response = @simplexml_load_string(file_get_contents($url, FALSE, $context));
382 382
 
Please login to merge, or discard this patch.
Braces   +18 added lines, -9 removed lines patch added patch discarded remove patch
@@ -17,7 +17,8 @@  discard block
 block discarded – undo
17 17
  * @subpackage	tx_dlf
18 18
  * @access	public
19 19
  */
20
-class ext_update {
20
+class ext_update
21
+{
21 22
 
22 23
     /**
23 24
      * This holds the output ready to return
@@ -34,7 +35,8 @@  discard block
 block discarded – undo
34 35
      *
35 36
      * @return	boolean		Should the update option be shown?
36 37
      */
37
-    public function access() {
38
+    public function access()
39
+    {
38 40
 
39 41
         if (count($this->getMetadataConfig())) {
40 42
 
@@ -61,7 +63,8 @@  discard block
 block discarded – undo
61 63
      *
62 64
      * @return	array		Array of UIDs of outdated records
63 65
      */
64
-    protected function getMetadataConfig() {
66
+    protected function getMetadataConfig()
67
+    {
65 68
 
66 69
         $uids = array ();
67 70
 
@@ -105,7 +108,8 @@  discard block
 block discarded – undo
105 108
      *
106 109
      * @return	string		The content that is displayed on the website
107 110
      */
108
-    public function main() {
111
+    public function main()
112
+    {
109 113
 
110 114
         // Load localization file.
111 115
         $GLOBALS['LANG']->includeLLFile('EXT:dlf/locallang.xml');
@@ -138,7 +142,8 @@  discard block
 block discarded – undo
138 142
      *
139 143
      * @return	boolean		true if old index related columns exist
140 144
      */
141
-    protected function oldIndexRelatedTableNames() {
145
+    protected function oldIndexRelatedTableNames()
146
+    {
142 147
 
143 148
         $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
144 149
             'column_name',
@@ -172,7 +177,8 @@  discard block
 block discarded – undo
172 177
      *
173 178
      * @return	void
174 179
      */
175
-    protected function renameIndexRelatedColumns() {
180
+    protected function renameIndexRelatedColumns()
181
+    {
176 182
 
177 183
         $sqlQuery = "UPDATE tx_dlf_metadata SET `index_tokenized` = `tokenized`
178 184
 											, `index_stored` = `stored`
@@ -216,7 +222,8 @@  discard block
 block discarded – undo
216 222
      *
217 223
      * @return	void
218 224
      */
219
-    protected function updateMetadataConfig() {
225
+    protected function updateMetadataConfig()
226
+    {
220 227
 
221 228
         $metadataUids = $this->getMetadataConfig();
222 229
 
@@ -297,7 +304,8 @@  discard block
 block discarded – undo
297 304
      *
298 305
      * @return	boolean
299 306
      */
300
-    protected function solariumSolrUpdateRequired() {
307
+    protected function solariumSolrUpdateRequired()
308
+    {
301 309
 
302 310
         // Get all Solr cores that were not deleted.
303 311
         $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
@@ -333,7 +341,8 @@  discard block
 block discarded – undo
333 341
      *
334 342
      * @return	void
335 343
      */
336
-    protected function doSolariumSolrUpdate() {
344
+    protected function doSolariumSolrUpdate()
345
+    {
337 346
 
338 347
         // Get all Solr cores that were not deleted.
339 348
         $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
Please login to merge, or discard this patch.
Upper-Lower-Casing   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -38,19 +38,19 @@  discard block
 block discarded – undo
38 38
 
39 39
         if (count($this->getMetadataConfig())) {
40 40
 
41
-            return TRUE;
41
+            return true;
42 42
 
43 43
         } else if ($this->oldIndexRelatedTableNames()) {
44 44
 
45
-            return TRUE;
45
+            return true;
46 46
 
47 47
         } else if ($this->solariumSolrUpdateRequired()) {
48 48
 
49
-            return TRUE;
49
+            return true;
50 50
 
51 51
         }
52 52
 
53
-        return FALSE;
53
+        return false;
54 54
 
55 55
     }
56 56
 
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
                 || $resArray['column_name'] == 'boost'
158 158
                 || $resArray['column_name'] == 'autocomplete') {
159 159
 
160
-                    return TRUE;
160
+                    return true;
161 161
 
162 162
             }
163 163
 
@@ -187,20 +187,20 @@  discard block
 block discarded – undo
187 187
 
188 188
             $message = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
189 189
                 'TYPO3\\CMS\\Core\\Messaging\\FlashMessage',
190
-                $GLOBALS['LANG']->getLL('update.copyIndexRelatedColumnsOkay', TRUE),
191
-                $GLOBALS['LANG']->getLL('update.copyIndexRelatedColumns', TRUE),
190
+                $GLOBALS['LANG']->getLL('update.copyIndexRelatedColumnsOkay', true),
191
+                $GLOBALS['LANG']->getLL('update.copyIndexRelatedColumns', true),
192 192
                 \TYPO3\CMS\Core\Messaging\FlashMessage::OK,
193
-                FALSE
193
+                false
194 194
                 );
195 195
 
196 196
         } else {
197 197
 
198 198
             $message = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
199 199
                 'TYPO3\\CMS\\Core\\Messaging\\FlashMessage',
200
-                $GLOBALS['LANG']->getLL('update.copyIndexRelatedColumnsNotOkay', TRUE),
201
-                $GLOBALS['LANG']->getLL('update.copyIndexRelatedColumns', TRUE),
200
+                $GLOBALS['LANG']->getLL('update.copyIndexRelatedColumnsNotOkay', true),
201
+                $GLOBALS['LANG']->getLL('update.copyIndexRelatedColumns', true),
202 202
                 \TYPO3\CMS\Core\Messaging\FlashMessage::WARNING,
203
-                FALSE
203
+                false
204 204
                 );
205 205
 
206 206
         }
@@ -264,20 +264,20 @@  discard block
 block discarded – undo
264 264
 
265 265
                     $message = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
266 266
                         'TYPO3\\CMS\\Core\\Messaging\\FlashMessage',
267
-                        $GLOBALS['LANG']->getLL('update.metadataConfigOkay', TRUE),
268
-                        $GLOBALS['LANG']->getLL('update.metadataConfig', TRUE),
267
+                        $GLOBALS['LANG']->getLL('update.metadataConfigOkay', true),
268
+                        $GLOBALS['LANG']->getLL('update.metadataConfig', true),
269 269
                         \TYPO3\CMS\Core\Messaging\FlashMessage::OK,
270
-                        FALSE
270
+                        false
271 271
                     );
272 272
 
273 273
                 } else {
274 274
 
275 275
                     $message = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
276 276
                         'TYPO3\\CMS\\Core\\Messaging\\FlashMessage',
277
-                        $GLOBALS['LANG']->getLL('update.metadataConfigNotOkay', TRUE),
278
-                        $GLOBALS['LANG']->getLL('update.metadataConfig', TRUE),
277
+                        $GLOBALS['LANG']->getLL('update.metadataConfigNotOkay', true),
278
+                        $GLOBALS['LANG']->getLL('update.metadataConfig', true),
279 279
                         \TYPO3\CMS\Core\Messaging\FlashMessage::WARNING,
280
-                        FALSE
280
+                        false
281 281
                     );
282 282
 
283 283
                 }
@@ -316,13 +316,13 @@  discard block
 block discarded – undo
316 316
 
317 317
             if (!$solr->ready) {
318 318
 
319
-                return TRUE;
319
+                return true;
320 320
 
321 321
             }
322 322
 
323 323
         }
324 324
 
325
-        return FALSE;
325
+        return false;
326 326
 
327 327
     }
328 328
 
@@ -378,7 +378,7 @@  discard block
 block discarded – undo
378 378
                 // @see http://wiki.apache.org/solr/CoreAdmin
379 379
                 $url = $solrInfo['scheme'].'://'.$host.':'.$solrInfo['port'].'/'.$solrInfo['path'].'/admin/cores?wt=xml&action=CREATE&name='.$resArray['index_name'].'&instanceDir=dlfCore'.$resArray['index_name'].'&dataDir=data&configSet=dlf';
380 380
 
381
-                $response = @simplexml_load_string(file_get_contents($url, FALSE, $context));
381
+                $response = @simplexml_load_string(file_get_contents($url, false, $context));
382 382
 
383 383
                 // Process response.
384 384
                 if ($response) {
@@ -395,10 +395,10 @@  discard block
 block discarded – undo
395 395
 
396 396
                 $message = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
397 397
                     'TYPO3\\CMS\\Core\\Messaging\\FlashMessage',
398
-                    $GLOBALS['LANG']->getLL('update.solariumSolrUpdateNotOkay', TRUE),
399
-                    sprintf($GLOBALS['LANG']->getLL('update.solariumSolrUpdate', TRUE), $resArray['index_name']),
398
+                    $GLOBALS['LANG']->getLL('update.solariumSolrUpdateNotOkay', true),
399
+                    sprintf($GLOBALS['LANG']->getLL('update.solariumSolrUpdate', true), $resArray['index_name']),
400 400
                     \TYPO3\CMS\Core\Messaging\FlashMessage::ERROR,
401
-                    FALSE
401
+                    false
402 402
                     );
403 403
 
404 404
                 $this->content .= $message->render();
@@ -411,10 +411,10 @@  discard block
 block discarded – undo
411 411
 
412 412
         $message = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
413 413
             'TYPO3\\CMS\\Core\\Messaging\\FlashMessage',
414
-            $GLOBALS['LANG']->getLL('update.solariumSolrUpdateOkay', TRUE),
415
-            $GLOBALS['LANG']->getLL('update.solariumSolrUpdate', TRUE),
414
+            $GLOBALS['LANG']->getLL('update.solariumSolrUpdateOkay', true),
415
+            $GLOBALS['LANG']->getLL('update.solariumSolrUpdate', true),
416 416
             \TYPO3\CMS\Core\Messaging\FlashMessage::OK,
417
-            FALSE
417
+            false
418 418
             );
419 419
 
420 420
         $this->content .= $message->render();
Please login to merge, or discard this patch.
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.
plugins/pageview/class.tx_dlf_pageview.php 3 patches
Upper-Lower-Casing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -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
 
@@ -162,11 +162,11 @@  discard block
 block discarded – undo
162 162
         // Add basket button
163 163
         if ($this->conf['basketButton'] && $this->conf['targetBasket'] && $this->piVars['id']) {
164 164
 
165
-            $label = $this->pi_getLL('addBasket', '', TRUE);
165
+            $label = $this->pi_getLL('addBasket', '', true);
166 166
 
167 167
             $params = array (
168 168
                 'id' => $this->piVars['id'],
169
-                'addToBasket' => TRUE
169
+                'addToBasket' => true
170 170
             );
171 171
 
172 172
             if (empty($this->piVars['page'])) {
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
 
178 178
             $basketConf = array (
179 179
                 'parameter' => $this->conf['targetBasket'],
180
-                'additionalParams' => \TYPO3\CMS\Core\Utility\GeneralUtility::implodeArrayForUrl($this->prefixId, $params, '', TRUE, FALSE),
180
+                'additionalParams' => \TYPO3\CMS\Core\Utility\GeneralUtility::implodeArrayForUrl($this->prefixId, $params, '', true, false),
181 181
                 'title' => $label
182 182
             );
183 183
 
@@ -335,7 +335,7 @@  discard block
 block discarded – undo
335 335
         // Load current document.
336 336
         $this->loadDocument();
337 337
 
338
-        if ($this->doc === NULL || $this->doc->numPages < 1) {
338
+        if ($this->doc === null || $this->doc->numPages < 1) {
339 339
 
340 340
             // Quit without doing anything if required variables are not set.
341 341
             return $content;
Please login to merge, or discard this patch.
Braces   +14 added lines, -7 removed lines patch added patch discarded remove patch
@@ -17,7 +17,8 @@  discard block
 block discarded – undo
17 17
  * @subpackage	tx_dlf
18 18
  * @access	public
19 19
  */
20
-class tx_dlf_pageview extends tx_dlf_plugin {
20
+class tx_dlf_pageview extends tx_dlf_plugin
21
+{
21 22
 
22 23
     public $scriptRelPath = 'plugins/pageview/class.tx_dlf_pageview.php';
23 24
 
@@ -52,7 +53,8 @@  discard block
 block discarded – undo
52 53
      *
53 54
      * @return	string		Viewer script tags ready for output
54 55
      */
55
-    protected function addViewerJS() {
56
+    protected function addViewerJS()
57
+    {
56 58
 
57 59
         $output = array ();
58 60
         $tmp = $this->getFulltext($this->piVars['page']);
@@ -121,7 +123,8 @@  discard block
 block discarded – undo
121 123
      *
122 124
      * @return	array		Marker array
123 125
      */
124
-    protected function addInteraction() {
126
+    protected function addInteraction()
127
+    {
125 128
 
126 129
         $markerArray = array ();
127 130
 
@@ -169,7 +172,8 @@  discard block
 block discarded – undo
169 172
      *
170 173
      * @return	array		Marker array
171 174
      */
172
-    protected function addBasketForm() {
175
+    protected function addBasketForm()
176
+    {
173 177
 
174 178
         $markerArray = array ();
175 179
 
@@ -246,7 +250,8 @@  discard block
 block discarded – undo
246 250
      *
247 251
      * @return	array		URL and MIME type of image file
248 252
      */
249
-    protected function getImage($page) {
253
+    protected function getImage($page)
254
+    {
250 255
 
251 256
         $image = array ();
252 257
 
@@ -299,7 +304,8 @@  discard block
 block discarded – undo
299 304
      *
300 305
      * @return	array		URL and MIME type of fulltext file
301 306
      */
302
-    protected function getFulltext($page) {
307
+    protected function getFulltext($page)
308
+    {
303 309
 
304 310
         $fulltext = array ();
305 311
 
@@ -342,7 +348,8 @@  discard block
 block discarded – undo
342 348
      *
343 349
      * @return	string		The content that is displayed on the website
344 350
      */
345
-    public function main($content, $conf) {
351
+    public function main($content, $conf)
352
+    {
346 353
 
347 354
         $this->init($conf);
348 355
 
Please login to merge, or discard this patch.
Spacing   +43 added lines, -43 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
      * @var	array
28 28
      * @access protected
29 29
      */
30
-    protected $controls = array ();
30
+    protected $controls = array();
31 31
 
32 32
     /**
33 33
      * Holds the current images' URLs and MIME types
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
      * @var	array
36 36
      * @access protected
37 37
      */
38
-    protected $images = array ();
38
+    protected $images = array();
39 39
 
40 40
     /**
41 41
      * Holds the current fulltexts' URLs
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
      * @var	array
44 44
      * @access protected
45 45
      */
46
-    protected $fulltexts = array ();
46
+    protected $fulltexts = array();
47 47
 
48 48
     /**
49 49
      * Adds Viewer javascript
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
      */
55 55
     protected function addViewerJS() {
56 56
 
57
-        $output = array ();
57
+        $output = array();
58 58
         $tmp = $this->getFulltext($this->piVars['page']);
59 59
         $bTeiXml = false;
60 60
         if (isset($tmp['mimetype']) && $tmp['mimetype'] == 'application/tei+xml') {
@@ -62,36 +62,36 @@  discard block
 block discarded – undo
62 62
         }
63 63
 
64 64
         // Add OpenLayers library.
65
-        $output[] = '<link type="text/css" rel="stylesheet" href="'.\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey).'lib/OpenLayers/ol3.css">';
65
+        $output[] = '<link type="text/css" rel="stylesheet" href="' . \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey) . 'lib/OpenLayers/ol3.css">';
66 66
 
67
-        $output[] = '<script type="text/javascript" src="'.\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey).'lib/OpenLayers/glif.min.js"></script>';
67
+        $output[] = '<script type="text/javascript" src="' . \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey) . 'lib/OpenLayers/glif.min.js"></script>';
68 68
 
69
-        $output[] = '<script type="text/javascript" src="'.\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey).'lib/OpenLayers/ol3-dlf.js"></script>';
69
+        $output[] = '<script type="text/javascript" src="' . \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey) . 'lib/OpenLayers/ol3-dlf.js"></script>';
70 70
 
71 71
         // Add viewer library.
72
-        $output[] = '<script type="text/javascript" src="'.\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey).'plugins/pageview/tx_dlf_utils.js"></script>';
72
+        $output[] = '<script type="text/javascript" src="' . \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey) . 'plugins/pageview/tx_dlf_utils.js"></script>';
73 73
 
74
-        $output[] = '<script type="text/javascript" src="'.\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey).'plugins/pageview/tx_dlf_ol3.js"></script>';
74
+        $output[] = '<script type="text/javascript" src="' . \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey) . 'plugins/pageview/tx_dlf_ol3.js"></script>';
75 75
 
76
-        $output[] = '<script type="text/javascript" src="'.\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey).'plugins/pageview/tx_dlf_ol3_styles.js"></script>';
76
+        $output[] = '<script type="text/javascript" src="' . \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey) . 'plugins/pageview/tx_dlf_ol3_styles.js"></script>';
77 77
 
78
-        $output[] = '<script type="text/javascript" src="'.\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey).'plugins/pageview/tx_dlf_ol3_source.js"></script>';
78
+        $output[] = '<script type="text/javascript" src="' . \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey) . 'plugins/pageview/tx_dlf_ol3_source.js"></script>';
79 79
 
80 80
         if ($bTeiXml) {
81
-            $output[] = '<script type="text/javascript" src="'.\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey).'plugins/pageview/tx_dlf_teiparser.js"></script>';
81
+            $output[] = '<script type="text/javascript" src="' . \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey) . 'plugins/pageview/tx_dlf_teiparser.js"></script>';
82 82
         } else {
83
-            $output[] = '<script type="text/javascript" src="'.\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey).'plugins/pageview/tx_dlf_altoparser.js"></script>';
83
+            $output[] = '<script type="text/javascript" src="' . \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey) . 'plugins/pageview/tx_dlf_altoparser.js"></script>';
84 84
         }
85 85
 
86
-        $output[] = '<script type="text/javascript" src="'.\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey).'plugins/pageview/tx_dlf_pageview_imagemanipulation_control.js"></script>';
86
+        $output[] = '<script type="text/javascript" src="' . \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey) . 'plugins/pageview/tx_dlf_pageview_imagemanipulation_control.js"></script>';
87 87
 
88 88
         if ($bTeiXml) {
89
-            $output[] = '<script type="text/javascript" src="'.\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey).'plugins/pageview/tx_dlf_pageview_teifulltext_control.js"></script>';
89
+            $output[] = '<script type="text/javascript" src="' . \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey) . 'plugins/pageview/tx_dlf_pageview_teifulltext_control.js"></script>';
90 90
         } else {
91
-            $output[] = '<script type="text/javascript" src="'.\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey).'plugins/pageview/tx_dlf_pageview_fulltext_control.js"></script>';
91
+            $output[] = '<script type="text/javascript" src="' . \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey) . 'plugins/pageview/tx_dlf_pageview_fulltext_control.js"></script>';
92 92
         }
93 93
 
94
-        $output[] = '<script type="text/javascript" src="'.\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey).'plugins/pageview/tx_dlf_pageview.js"></script>';
94
+        $output[] = '<script type="text/javascript" src="' . \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::siteRelPath($this->extKey) . 'plugins/pageview/tx_dlf_pageview.js"></script>';
95 95
 
96 96
         // Add viewer configuration.
97 97
         $output[] = '
@@ -99,12 +99,12 @@  discard block
 block discarded – undo
99 99
 			window.onload = function() {
100 100
 				if (dlfUtils.exists(dlfViewer)) {
101 101
 					tx_dlf_viewer = new dlfViewer({
102
-						controls: ["'.implode('", "', $this->controls).'"],
103
-						div: "'.$this->conf['elementId'].'",
104
-						images: '.json_encode($this->images).',
105
-						fulltexts: '.json_encode($this->fulltexts).',
106
-                        teifulltext: '.(($bTeiXml) ? 'true' : 'false').',
107
-						useInternalProxy: '.($this->conf['useInternalProxy'] ? 1 : 0).'
102
+						controls: ["'.implode('", "', $this->controls) . '"],
103
+						div: "'.$this->conf['elementId'] . '",
104
+						images: '.json_encode($this->images) . ',
105
+						fulltexts: '.json_encode($this->fulltexts) . ',
106
+                        teifulltext: '.(($bTeiXml) ? 'true' : 'false') . ',
107
+						useInternalProxy: '.($this->conf['useInternalProxy'] ? 1 : 0) . '
108 108
 					})
109 109
 				}
110 110
 			}
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
      */
124 124
     protected function addInteraction() {
125 125
 
126
-        $markerArray = array ();
126
+        $markerArray = array();
127 127
 
128 128
         if ($this->piVars['id']) {
129 129
 
@@ -135,9 +135,9 @@  discard block
 block discarded – undo
135 135
 
136 136
             if ($this->conf['crop']) {
137 137
 
138
-                $markerArray['###EDITBUTTON###'] = '<a href="javascript: tx_dlf_viewer.activateSelection();">'.$this->pi_getLL('editMode', '', TRUE).'</a>';
138
+                $markerArray['###EDITBUTTON###'] = '<a href="javascript: tx_dlf_viewer.activateSelection();">' . $this->pi_getLL('editMode', '', TRUE) . '</a>';
139 139
 
140
-                $markerArray['###EDITREMOVE###'] = '<a href="javascript: tx_dlf_viewer.resetCropSelection();">'.$this->pi_getLL('editRemove', '', TRUE).'</a>';
140
+                $markerArray['###EDITREMOVE###'] = '<a href="javascript: tx_dlf_viewer.resetCropSelection();">' . $this->pi_getLL('editRemove', '', TRUE) . '</a>';
141 141
 
142 142
             } else {
143 143
 
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
 
150 150
             if ($this->conf['magnifier']) {
151 151
 
152
-                $markerArray['###MAGNIFIER###'] = '<a href="javascript: tx_dlf_viewer.activateMagnifier();">'.$this->pi_getLL('magnifier', '', TRUE).'</a>';
152
+                $markerArray['###MAGNIFIER###'] = '<a href="javascript: tx_dlf_viewer.activateMagnifier();">' . $this->pi_getLL('magnifier', '', TRUE) . '</a>';
153 153
 
154 154
             } else {
155 155
 
@@ -171,14 +171,14 @@  discard block
 block discarded – undo
171 171
      */
172 172
     protected function addBasketForm() {
173 173
 
174
-        $markerArray = array ();
174
+        $markerArray = array();
175 175
 
176 176
         // Add basket button
177 177
         if ($this->conf['basketButton'] && $this->conf['targetBasket'] && $this->piVars['id']) {
178 178
 
179 179
             $label = $this->pi_getLL('addBasket', '', TRUE);
180 180
 
181
-            $params = array (
181
+            $params = array(
182 182
                 'id' => $this->piVars['id'],
183 183
                 'addToBasket' => TRUE
184 184
             );
@@ -189,17 +189,17 @@  discard block
 block discarded – undo
189 189
 
190 190
             }
191 191
 
192
-            $basketConf = array (
192
+            $basketConf = array(
193 193
                 'parameter' => $this->conf['targetBasket'],
194 194
                 'additionalParams' => \TYPO3\CMS\Core\Utility\GeneralUtility::implodeArrayForUrl($this->prefixId, $params, '', TRUE, FALSE),
195 195
                 'title' => $label
196 196
             );
197 197
 
198
-            $output = '<form id="addToBasketForm" action="'.$this->cObj->typoLink_URL($basketConf).'" method="post">';
198
+            $output = '<form id="addToBasketForm" action="' . $this->cObj->typoLink_URL($basketConf) . '" method="post">';
199 199
 
200
-            $output .= '<input type="hidden" name="tx_dlf[startpage]" id="startpage" value="'.htmlspecialchars($this->piVars['page']).'">';
200
+            $output .= '<input type="hidden" name="tx_dlf[startpage]" id="startpage" value="' . htmlspecialchars($this->piVars['page']) . '">';
201 201
 
202
-            $output .= '<input type="hidden" name="tx_dlf[endpage]" id="endpage" value="'.htmlspecialchars($this->piVars['page']).'">';
202
+            $output .= '<input type="hidden" name="tx_dlf[endpage]" id="endpage" value="' . htmlspecialchars($this->piVars['page']) . '">';
203 203
 
204 204
             $output .= '<input type="hidden" name="tx_dlf[startX]" id="startX">';
205 205
 
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
 
212 212
             $output .= '<input type="hidden" name="tx_dlf[rotation]" id="rotation">';
213 213
 
214
-            $output .= '<button id="submitBasketForm" onclick="this.form.submit()">'.$label.'</button>';
214
+            $output .= '<button id="submitBasketForm" onclick="this.form.submit()">' . $label . '</button>';
215 215
 
216 216
             $output .= '</form>';
217 217
 
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
      */
249 249
     protected function getImage($page) {
250 250
 
251
-        $image = array ();
251
+        $image = array();
252 252
 
253 253
         // Get @USE value of METS fileGrp.
254 254
         $fileGrps = \TYPO3\CMS\Core\Utility\GeneralUtility::trimExplode(',', $this->conf['fileGrps']);
@@ -262,9 +262,9 @@  discard block
 block discarded – undo
262 262
 
263 263
                 if ($this->conf['useInternalProxy']) {
264 264
                     // Configure @action URL for form.
265
-                    $linkConf = array (
265
+                    $linkConf = array(
266 266
                         'parameter' => $GLOBALS['TSFE']->id,
267
-                        'additionalParams' => '&eID=tx_dlf_geturl_eid&url='.urlencode($image['url']),
267
+                        'additionalParams' => '&eID=tx_dlf_geturl_eid&url=' . urlencode($image['url']),
268 268
                     );
269 269
 
270 270
                     $image['url'] = $this->cObj->typoLink_URL($linkConf);
@@ -278,7 +278,7 @@  discard block
 block discarded – undo
278 278
 
279 279
                 if (TYPO3_DLOG) {
280 280
 
281
-                    \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_pageview->getImage('.$page.')] File not found in fileGrp "'.$fileGrp.'"', $this->extKey, SYSLOG_SEVERITY_WARNING);
281
+                    \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_pageview->getImage(' . $page . ')] File not found in fileGrp "' . $fileGrp . '"', $this->extKey, SYSLOG_SEVERITY_WARNING);
282 282
 
283 283
                 }
284 284
 
@@ -301,7 +301,7 @@  discard block
 block discarded – undo
301 301
      */
302 302
     protected function getFulltext($page) {
303 303
 
304
-        $fulltext = array ();
304
+        $fulltext = array();
305 305
 
306 306
         // Get fulltext link.
307 307
         if (!empty($this->doc->physicalStructureInfo[$this->doc->physicalStructure[$page]]['files'][$this->conf['fileGrpFulltext']])) {
@@ -309,9 +309,9 @@  discard block
 block discarded – undo
309 309
             $fulltext['url'] = $this->doc->getFileLocation($this->doc->physicalStructureInfo[$this->doc->physicalStructure[$page]]['files'][$this->conf['fileGrpFulltext']]);
310 310
 
311 311
             // Configure @action URL for form.
312
-            $linkConf = array (
312
+            $linkConf = array(
313 313
                 'parameter' => $GLOBALS['TSFE']->id,
314
-                'additionalParams' => '&eID=tx_dlf_geturl_eid&url='.urlencode($fulltext['url']),
314
+                'additionalParams' => '&eID=tx_dlf_geturl_eid&url=' . urlencode($fulltext['url']),
315 315
             );
316 316
 
317 317
             $fulltext['url'] = $this->cObj->typoLink_URL($linkConf);
@@ -322,7 +322,7 @@  discard block
 block discarded – undo
322 322
 
323 323
             if (TYPO3_DLOG) {
324 324
 
325
-                \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_pageview->getFulltext('.$page.')] File not found in fileGrp "'.$this->conf['fileGrpFulltext'].'"', $this->extKey, SYSLOG_SEVERITY_WARNING);
325
+                \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[tx_dlf_pageview->getFulltext(' . $page . ')] File not found in fileGrp "' . $this->conf['fileGrpFulltext'] . '"', $this->extKey, SYSLOG_SEVERITY_WARNING);
326 326
 
327 327
             }
328 328
 
@@ -406,7 +406,7 @@  discard block
 block discarded – undo
406 406
         $this->controls = explode(',', $this->conf['features']);
407 407
 
408 408
         // Fill in the template markers.
409
-        $markerArray = array (
409
+        $markerArray = array(
410 410
             '###VIEWER_JS###' => $this->addViewerJS()
411 411
         );
412 412
 
Please login to merge, or discard this patch.
ext_emconf.php 2 patches
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.
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,9 +18,9 @@
 block discarded – undo
18 18
     'author_company' => 'http://www.kitodo.org/',
19 19
     'state' => 'stable',
20 20
     'internal' => '',
21
-    'uploadfolder' => TRUE,
21
+    'uploadfolder' => true,
22 22
     'createDirs' => '',
23
-    'clearCacheOnLoad' => FALSE,
23
+    'clearCacheOnLoad' => false,
24 24
     'version' => '2.3.1',
25 25
     'constraints' => array (
26 26
         'depends' => array (
Please login to merge, or discard this patch.