Passed
Pull Request — master (#13)
by
unknown
05:42
created
ext_localconf.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -169,20 +169,20 @@
 block discarded – undo
169 169
 
170 170
 // Register tools for toolbox plugin.
171 171
 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Plugin/Toolbox.php']['tools'] = [];
172
-$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Plugin/Toolbox.php']['tools'][\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getCN($_EXTKEY) . '_fulltexttool'] = 'LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tx_dlf_toolbox.fulltexttool';
173
-$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Plugin/Toolbox.php']['tools'][\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getCN($_EXTKEY) . '_annotationtool'] = 'LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tx_dlf_toolbox.annotationtool';
174
-$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Plugin/Toolbox.php']['tools'][\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getCN($_EXTKEY) . '_imagedownloadtool'] = 'LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tx_dlf_toolbox.imagedownloadtool';
175
-$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Plugin/Toolbox.php']['tools'][\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getCN($_EXTKEY) . '_imagemanipulationtool'] = 'LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tx_dlf_toolbox.imagemanipulationtool';
176
-$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Plugin/Toolbox.php']['tools'][\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getCN($_EXTKEY) . '_pdfdownloadtool'] = 'LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tx_dlf_toolbox.pdfdownloadtool';
177
-$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Plugin/Toolbox.php']['tools'][\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getCN($_EXTKEY) . '_searchindocumenttool'] = 'LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tx_dlf_toolbox.searchindocumenttool';
172
+$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Plugin/Toolbox.php']['tools'][\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getCN($_EXTKEY).'_fulltexttool'] = 'LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tx_dlf_toolbox.fulltexttool';
173
+$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Plugin/Toolbox.php']['tools'][\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getCN($_EXTKEY).'_annotationtool'] = 'LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tx_dlf_toolbox.annotationtool';
174
+$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Plugin/Toolbox.php']['tools'][\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getCN($_EXTKEY).'_imagedownloadtool'] = 'LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tx_dlf_toolbox.imagedownloadtool';
175
+$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Plugin/Toolbox.php']['tools'][\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getCN($_EXTKEY).'_imagemanipulationtool'] = 'LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tx_dlf_toolbox.imagemanipulationtool';
176
+$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Plugin/Toolbox.php']['tools'][\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getCN($_EXTKEY).'_pdfdownloadtool'] = 'LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tx_dlf_toolbox.pdfdownloadtool';
177
+$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Plugin/Toolbox.php']['tools'][\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getCN($_EXTKEY).'_searchindocumenttool'] = 'LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tx_dlf_toolbox.searchindocumenttool';
178 178
 // Register hooks.
179 179
 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = \Kitodo\Dlf\Hooks\DataHandler::class;
180 180
 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass'][] = \Kitodo\Dlf\Hooks\DataHandler::class;
181 181
 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Common/MetsDocument.php']['hookClass'][] = \Kitodo\Dlf\Hooks\KitodoProductionHacks::class;
182 182
 // Register AJAX eID handlers.
183
-$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['tx_dlf_search_suggest'] = \Kitodo\Dlf\Plugin\Eid\SearchSuggest::class . '::main';
184
-$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['tx_dlf_search_in_document'] = \Kitodo\Dlf\Plugin\Eid\SearchInDocument::class . '::main';
185
-$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['tx_dlf_pageview_proxy'] = \Kitodo\Dlf\Plugin\Eid\PageViewProxy::class . '::main';
183
+$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['tx_dlf_search_suggest'] = \Kitodo\Dlf\Plugin\Eid\SearchSuggest::class.'::main';
184
+$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['tx_dlf_search_in_document'] = \Kitodo\Dlf\Plugin\Eid\SearchInDocument::class.'::main';
185
+$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['tx_dlf_pageview_proxy'] = \Kitodo\Dlf\Plugin\Eid\PageViewProxy::class.'::main';
186 186
 // Use Caching Framework for Solr queries
187 187
 if (!is_array($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['tx_dlf_solr'])) {
188 188
     $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['tx_dlf_solr'] = [];
Please login to merge, or discard this patch.
Configuration/TCA/tx_dlf_documents.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -226,7 +226,7 @@
 block discarded – undo
226 226
             'label' => 'LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tx_dlf_documents.thumbnail',
227 227
             'config' => [
228 228
                 'type' => 'user',
229
-                'userFunc' => \Kitodo\Dlf\Hooks\UserFunc::class . '->displayThumbnail',
229
+                'userFunc' => \Kitodo\Dlf\Hooks\UserFunc::class.'->displayThumbnail',
230 230
             ],
231 231
         ],
232 232
         'metadata' => [
Please login to merge, or discard this patch.
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -269,10 +269,10 @@
 block discarded – undo
269 269
                 'readOnly' => 1,
270 270
                 'fieldControl' => [
271 271
                     'elementBrowser' => [
272
-                        'disabled' => true
272
+                        'disabled' => TRUE
273 273
                     ]
274 274
                 ],
275
-                'hideDeleteIcon' => true
275
+                'hideDeleteIcon' => TRUE
276 276
             ],
277 277
         ],
278 278
         'volume' => [
Please login to merge, or discard this patch.
Configuration/TCA/tx_dlf_metadata.php 1 patch
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
             'label' => 'LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tx_dlf_metadata.wrap',
145 145
             'config' => [
146 146
                 'behaviour' => [
147
-                    'allowLanguageSynchronization' => true
147
+                    'allowLanguageSynchronization' => TRUE
148 148
                 ],
149 149
                 'type' => 'text',
150 150
                 'cols' => 48,
@@ -152,8 +152,8 @@  discard block
 block discarded – undo
152 152
                 'wrap' => 'off',
153 153
                 'eval' => 'trim',
154 154
                 'default' => "key.wrap = <dt>|</dt>\nvalue.required = 1\nvalue.wrap = <dd>|</dd>",
155
-                'fixedFont' => true,
156
-                'enableTabulator' => true
155
+                'fixedFont' => TRUE,
156
+                'enableTabulator' => TRUE
157 157
             ],
158 158
         ],
159 159
         'index_tokenized' => [
Please login to merge, or discard this patch.
Configuration/TCA/Overrides/tt_content.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -17,79 +17,79 @@
 block discarded – undo
17 17
 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['dlf_audioplayer'] = 'layout,select_key,pages,recursive';
18 18
 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['dlf_audioplayer'] = 'pi_flexform';
19 19
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(['LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tt_content.dlf_audioplayer', 'dlf_audioplayer'], 'list_type', 'dlf');
20
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_audioplayer', 'FILE:EXT:' . 'dlf/Configuration/Flexforms/AudioPlayer.xml');
20
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_audioplayer', 'FILE:EXT:'.'dlf/Configuration/Flexforms/AudioPlayer.xml');
21 21
 // Plugin "basket".
22 22
 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['dlf_basket'] = 'layout,select_key,pages,recursive';
23 23
 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['dlf_basket'] = 'pi_flexform';
24 24
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(['LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tt_content.dlf_basket', 'dlf_basket'], 'list_type', 'dlf');
25
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_basket', 'FILE:EXT:' . 'dlf/Configuration/Flexforms/Basket.xml');
25
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_basket', 'FILE:EXT:'.'dlf/Configuration/Flexforms/Basket.xml');
26 26
 // Plugin "calendar".
27 27
 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['dlf_calendar'] = 'layout,select_key,pages,recursive';
28 28
 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['dlf_calendar'] = 'pi_flexform';
29 29
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(['LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tt_content.dlf_calendar', 'dlf_calendar'], 'list_type', 'dlf');
30
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_calendar', 'FILE:EXT:' . 'dlf/Configuration/Flexforms/Calendar.xml');
30
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_calendar', 'FILE:EXT:'.'dlf/Configuration/Flexforms/Calendar.xml');
31 31
 // Plugin "collection".
32 32
 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['dlf_collection'] = 'layout,select_key,pages,recursive';
33 33
 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['dlf_collection'] = 'pi_flexform';
34 34
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(['LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tt_content.dlf_collection', 'dlf_collection'], 'list_type', 'dlf');
35
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_collection', 'FILE:EXT:' . 'dlf/Configuration/Flexforms/Collection.xml');
35
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_collection', 'FILE:EXT:'.'dlf/Configuration/Flexforms/Collection.xml');
36 36
 // Plugin "feeds".
37 37
 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['dlf_feeds'] = 'layout,select_key,pages,recursive';
38 38
 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['dlf_feeds'] = 'pi_flexform';
39 39
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(['LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tt_content.dlf_feeds', 'dlf_feeds'], 'list_type', 'dlf');
40
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_feeds', 'FILE:EXT:' . 'dlf/Configuration/Flexforms/Feeds.xml');
40
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_feeds', 'FILE:EXT:'.'dlf/Configuration/Flexforms/Feeds.xml');
41 41
 // Plugin "listview".
42 42
 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['dlf_listview'] = 'layout,select_key,pages,recursive';
43 43
 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['dlf_listview'] = 'pi_flexform';
44 44
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(['LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tt_content.dlf_listview', 'dlf_listview'], 'list_type', 'dlf');
45
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_listview', 'FILE:EXT:' . 'dlf/Configuration/Flexforms/ListView.xml');
45
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_listview', 'FILE:EXT:'.'dlf/Configuration/Flexforms/ListView.xml');
46 46
 // Plugin "metadata".
47 47
 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['dlf_metadata'] = 'layout,select_key,pages,recursive';
48 48
 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['dlf_metadata'] = 'pi_flexform';
49 49
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(['LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tt_content.dlf_metadata', 'dlf_metadata'], 'list_type', 'dlf');
50
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_metadata', 'FILE:EXT:' . 'dlf/Configuration/Flexforms/Metadata.xml');
50
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_metadata', 'FILE:EXT:'.'dlf/Configuration/Flexforms/Metadata.xml');
51 51
 // Plugin "navigation".
52 52
 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['dlf_navigation'] = 'layout,select_key,pages,recursive';
53 53
 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['dlf_navigation'] = 'pi_flexform';
54 54
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(['LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tt_content.dlf_navigation', 'dlf_navigation'], 'list_type', 'dlf');
55
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_navigation', 'FILE:EXT:' . 'dlf/Configuration/Flexforms/Navigation.xml');
55
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_navigation', 'FILE:EXT:'.'dlf/Configuration/Flexforms/Navigation.xml');
56 56
 // Plugin "oaipmh".
57 57
 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['dlf_oaipmh'] = 'layout,select_key,pages,recursive';
58 58
 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['dlf_oaipmh'] = 'pi_flexform';
59 59
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(['LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tt_content.dlf_oaipmh', 'dlf_oaipmh'], 'list_type', 'dlf');
60
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_oaipmh', 'FILE:EXT:' . 'dlf/Configuration/Flexforms/OaiPmh.xml');
60
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_oaipmh', 'FILE:EXT:'.'dlf/Configuration/Flexforms/OaiPmh.xml');
61 61
 // Plugin "pagegrid".
62 62
 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['dlf_pagegrid'] = 'layout,select_key,pages,recursive';
63 63
 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['dlf_pagegrid'] = 'pi_flexform';
64 64
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(['LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tt_content.dlf_pagegrid', 'dlf_pagegrid'], 'list_type', 'dlf');
65
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_pagegrid', 'FILE:EXT:' . 'dlf/Configuration/Flexforms/PageGrid.xml');
65
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_pagegrid', 'FILE:EXT:'.'dlf/Configuration/Flexforms/PageGrid.xml');
66 66
 // Plugin "pageview".
67 67
 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['dlf_pageview'] = 'layout,select_key,pages,recursive';
68 68
 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['dlf_pageview'] = 'pi_flexform';
69 69
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(['LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tt_content.dlf_pageview', 'dlf_pageview'], 'list_type', 'dlf');
70
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_pageview', 'FILE:EXT:' . 'dlf/Configuration/Flexforms/PageView.xml');
70
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_pageview', 'FILE:EXT:'.'dlf/Configuration/Flexforms/PageView.xml');
71 71
 // Plugin "search".
72 72
 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['dlf_search'] = 'layout,select_key,pages,recursive';
73 73
 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['dlf_search'] = 'pi_flexform';
74 74
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(['LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tt_content.dlf_search', 'dlf_search'], 'list_type', 'dlf');
75
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_search', 'FILE:EXT:' . 'dlf/Configuration/Flexforms/Search.xml');
75
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_search', 'FILE:EXT:'.'dlf/Configuration/Flexforms/Search.xml');
76 76
 // Plugin "statistics".
77 77
 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['dlf_statistics'] = 'layout,select_key,pages,recursive';
78 78
 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['dlf_statistics'] = 'pi_flexform';
79 79
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(['LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tt_content.dlf_statistics', 'dlf_statistics'], 'list_type', 'dlf');
80
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_statistics', 'FILE:EXT:' . 'dlf/Configuration/Flexforms/Statistics.xml');
80
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_statistics', 'FILE:EXT:'.'dlf/Configuration/Flexforms/Statistics.xml');
81 81
 // Plugin "tableofcontents".
82 82
 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['dlf_tableofcontents'] = 'layout,select_key,pages,recursive';
83 83
 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['dlf_tableofcontents'] = 'pi_flexform';
84 84
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(['LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tt_content.dlf_tableofcontents', 'dlf_tableofcontents'], 'list_type', 'dlf');
85
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_tableofcontents', 'FILE:EXT:' . 'dlf/Configuration/Flexforms/TableOfContents.xml');
85
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_tableofcontents', 'FILE:EXT:'.'dlf/Configuration/Flexforms/TableOfContents.xml');
86 86
 // Plugin "toolbox".
87 87
 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['dlf_toolbox'] = 'layout,select_key,pages,recursive';
88 88
 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['dlf_toolbox'] = 'pi_flexform';
89 89
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(['LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tt_content.dlf_toolbox', 'dlf_toolbox'], 'list_type', 'dlf');
90
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_toolbox', 'FILE:EXT:' . 'dlf/Configuration/Flexforms/Toolbox.xml');
90
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_toolbox', 'FILE:EXT:'.'dlf/Configuration/Flexforms/Toolbox.xml');
91 91
 // Plugin "validator".
92 92
 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['dlf_validator'] = 'layout,select_key,pages,recursive';
93 93
 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['dlf_validator'] = 'pi_flexform';
94 94
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(['LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tt_content.dlf_validator', 'dlf_validator'], 'list_type', 'dlf');
95
-\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_validator', 'FILE:EXT:' . 'dlf/Configuration/Flexforms/Validator.xml');
95
+\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue('dlf_validator', 'FILE:EXT:'.'dlf/Configuration/Flexforms/Validator.xml');
Please login to merge, or discard this patch.
Configuration/TCA/tx_dlf_collections.php 1 patch
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -157,14 +157,14 @@
 block discarded – undo
157 157
             'label' => 'LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tx_dlf_collections.description',
158 158
             'config' => [
159 159
                 'behaviour' => [
160
-                    'allowLanguageSynchronization' => true
160
+                    'allowLanguageSynchronization' => TRUE
161 161
                 ],
162 162
                 'type' => 'text',
163 163
                 'cols' => 30,
164 164
                 'rows' => 10,
165 165
                 'wrap' => 'virtual',
166 166
                 'default' => '',
167
-                'enableRichtext' => true,
167
+                'enableRichtext' => TRUE,
168 168
             ],
169 169
         ],
170 170
         'thumbnail' => [
Please login to merge, or discard this patch.
ext_tables.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
         '',
19 19
         '',
20 20
         [
21
-            'routeTarget' => \Kitodo\Dlf\Module\NewTenant::class . '::main',
21
+            'routeTarget' => \Kitodo\Dlf\Module\NewTenant::class.'::main',
22 22
             'access' => 'admin',
23 23
             'name' => 'tools_dlfNewTenantModule',
24 24
             'icon' => 'EXT:dlf/Resources/Public/Icons/Extension.svg',
Please login to merge, or discard this patch.
ext_emconf.php 1 patch
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,9 +24,9 @@
 block discarded – undo
24 24
         'suggests' => []
25 25
     ],
26 26
     'state' => 'stable',
27
-    'uploadfolder' => false,
27
+    'uploadfolder' => FALSE,
28 28
     'createDirs' => '',
29
-    'clearCacheOnLoad' => false,
29
+    'clearCacheOnLoad' => FALSE,
30 30
     'author' => 'Sebastian Meyer (Maintainer)',
31 31
     'author_email' => '[email protected]',
32 32
     'author_company' => 'Kitodo. Key to digital objects e. V.',
Please login to merge, or discard this patch.
class.ext_update.php 3 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
             'TEIHDR' => 'Kitodo\\\\Dlf\\\\Format\\\\TeiHeader'
216 216
         ];
217 217
         foreach ($oldRecords as $uid => $type) {
218
-            $sqlQuery = 'UPDATE tx_dlf_formats SET class="' . $newValues[$type] . '" WHERE uid=' . $uid;
218
+            $sqlQuery = 'UPDATE tx_dlf_formats SET class="'.$newValues[$type].'" WHERE uid='.$uid;
219 219
             $GLOBALS['TYPO3_DB']->sql_query($sqlQuery);
220 220
         }
221 221
         Helper::addMessage(
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
             $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
243 243
                 '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',
244 244
                 'tx_dlf_metadata',
245
-                'tx_dlf_metadata.uid IN (' . implode(',', $metadataUids) . ')'
245
+                'tx_dlf_metadata.uid IN ('.implode(',', $metadataUids).')'
246 246
                     . Helper::whereClause('tx_dlf_metadata')
247 247
             );
248 248
             while ($resArray = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($result)) {
@@ -334,7 +334,7 @@  discard block
 block discarded – undo
334 334
                     $solrInfo['username']
335 335
                     && $solrInfo['password']
336 336
                 ) {
337
-                    $host = $solrInfo['username'] . ':' . $solrInfo['password'] . '@' . $solrInfo['host'];
337
+                    $host = $solrInfo['username'].':'.$solrInfo['password'].'@'.$solrInfo['host'];
338 338
                 } else {
339 339
                     $host = $solrInfo['host'];
340 340
                 }
@@ -346,7 +346,7 @@  discard block
 block discarded – undo
346 346
                 ]);
347 347
                 // Build request for adding new Solr core.
348 348
                 // @see http://wiki.apache.org/solr/CoreAdmin
349
-                $url = $solrInfo['scheme'] . '://' . $host . ':' . $solrInfo['port'] . '/' . $solrInfo['path'] . '/admin/cores?wt=xml&action=CREATE&name=' . $resArray['index_name'] . '&instanceDir=' . $resArray['index_name'] . '&dataDir=data&configSet=dlf';
349
+                $url = $solrInfo['scheme'].'://'.$host.':'.$solrInfo['port'].'/'.$solrInfo['path'].'/admin/cores?wt=xml&action=CREATE&name='.$resArray['index_name'].'&instanceDir='.$resArray['index_name'].'&dataDir=data&configSet=dlf';
350 350
                 $response = @simplexml_load_string(file_get_contents($url, false, $context));
351 351
                 // Process response.
352 352
                 if ($response) {
@@ -382,7 +382,7 @@  discard block
 block discarded – undo
382 382
         $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
383 383
             'COLUMN_NAME',
384 384
             'INFORMATION_SCHEMA.COLUMNS',
385
-            'TABLE_NAME="tx_dlf_documents" AND TABLE_SCHEMA="' . $database . '" AND COLUMN_NAME="document_format"'
385
+            'TABLE_NAME="tx_dlf_documents" AND TABLE_SCHEMA="'.$database.'" AND COLUMN_NAME="document_format"'
386 386
         );
387 387
         while ($resArray = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($result)) {
388 388
             if ($resArray['COLUMN_NAME'] == 'document_format') {
Please login to merge, or discard this patch.
Braces   +13 added lines, -26 removed lines patch added patch discarded remove patch
@@ -21,8 +21,7 @@  discard block
 block discarded – undo
21 21
  * @subpackage dlf
22 22
  * @access public
23 23
  */
24
-class ext_update
25
-{
24
+class ext_update {
26 25
     /**
27 26
      * This holds the output ready to return
28 27
      *
@@ -38,8 +37,7 @@  discard block
 block discarded – undo
38 37
      *
39 38
      * @return bool Should the update option be shown?
40 39
      */
41
-    public function access()
42
-    {
40
+    public function access() {
43 41
         if (count($this->getMetadataConfig())) {
44 42
             return true;
45 43
         } elseif ($this->oldIndexRelatedTableNames()) {
@@ -61,8 +59,7 @@  discard block
 block discarded – undo
61 59
      *
62 60
      * @return array Array of UIDs of outdated records
63 61
      */
64
-    protected function getMetadataConfig()
65
-    {
62
+    protected function getMetadataConfig() {
66 63
         $uids = [];
67 64
         // check if tx_dlf_metadata.xpath exists anyhow
68 65
         $fieldsInDatabase = $GLOBALS['TYPO3_DB']->admin_get_fields('tx_dlf_metadata');
@@ -92,8 +89,7 @@  discard block
 block discarded – undo
92 89
      *
93 90
      * @return string The content that is displayed on the website
94 91
      */
95
-    public function main()
96
-    {
92
+    public function main() {
97 93
         // Load localization file.
98 94
         $GLOBALS['LANG']->includeLLFile('EXT:dlf/Resources/Private/Language/FlashMessages.xml');
99 95
         // Update the metadata configuration.
@@ -123,8 +119,7 @@  discard block
 block discarded – undo
123 119
      *
124 120
      * @return array containing old format classes
125 121
      */
126
-    protected function oldFormatClasses()
127
-    {
122
+    protected function oldFormatClasses() {
128 123
         $oldRecords = [];
129 124
         // Get all records with outdated configuration.
130 125
         $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
@@ -146,8 +141,7 @@  discard block
 block discarded – undo
146 141
      *
147 142
      * @return bool true if old index related columns exist
148 143
      */
149
-    protected function oldIndexRelatedTableNames()
150
-    {
144
+    protected function oldIndexRelatedTableNames() {
151 145
         $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
152 146
             'column_name',
153 147
             'INFORMATION_SCHEMA.COLUMNS',
@@ -173,8 +167,7 @@  discard block
 block discarded – undo
173 167
      *
174 168
      * @return void
175 169
      */
176
-    protected function renameIndexRelatedColumns()
177
-    {
170
+    protected function renameIndexRelatedColumns() {
178 171
         $sqlQuery = 'UPDATE tx_dlf_metadata'
179 172
             . ' SET `index_tokenized` = `tokenized`'
180 173
             . ', `index_stored` = `stored`'
@@ -206,8 +199,7 @@  discard block
 block discarded – undo
206 199
      *
207 200
      * @return void
208 201
      */
209
-    protected function updateFormatClasses()
210
-    {
202
+    protected function updateFormatClasses() {
211 203
         $oldRecords = $this->oldFormatClasses();
212 204
         $newValues = [
213 205
             'ALTO' => 'Kitodo\\\\Dlf\\\\Format\\\\Alto', // Those are effectively single backslashes
@@ -233,8 +225,7 @@  discard block
 block discarded – undo
233 225
      *
234 226
      * @return void
235 227
      */
236
-    protected function updateMetadataConfig()
237
-    {
228
+    protected function updateMetadataConfig() {
238 229
         $metadataUids = $this->getMetadataConfig();
239 230
         if (!empty($metadataUids)) {
240 231
             $data = [];
@@ -288,8 +279,7 @@  discard block
 block discarded – undo
288 279
      *
289 280
      * @return bool
290 281
      */
291
-    protected function solariumSolrUpdateRequired()
292
-    {
282
+    protected function solariumSolrUpdateRequired() {
293 283
         // Get all Solr cores that were not deleted.
294 284
         $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
295 285
             'index_name',
@@ -314,8 +304,7 @@  discard block
 block discarded – undo
314 304
      *
315 305
      * @return void
316 306
      */
317
-    protected function doSolariumSolrUpdate()
318
-    {
307
+    protected function doSolariumSolrUpdate() {
319 308
         // Get all Solr cores that were not deleted.
320 309
         $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
321 310
             'index_name',
@@ -375,8 +364,7 @@  discard block
 block discarded – undo
375 364
         $this->content .= Helper::renderFlashMessages();
376 365
     }
377 366
 
378
-    protected function hasNoFormatForDocument($checkStructureOnly = false)
379
-    {
367
+    protected function hasNoFormatForDocument($checkStructureOnly = false) {
380 368
         // Check if column "document_format" exists.
381 369
         $database = $GLOBALS['TYPO3_CONF_VARS']['DB']['Connections']['Default']['dbname'];
382 370
         $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
@@ -403,8 +391,7 @@  discard block
 block discarded – undo
403 391
         return true;
404 392
     }
405 393
 
406
-    protected function updateDocumentAddFormat()
407
-    {
394
+    protected function updateDocumentAddFormat() {
408 395
         if ($this->hasNoFormatForDocument(true)) {
409 396
             $sqlQuery = 'ALTER TABLE tx_dlf_documents ADD COLUMN document_format varchar(100) DEFAULT "" NOT NULL;';
410 397
             $result = $GLOBALS['TYPO3_DB']->sql_query($sqlQuery);
Please login to merge, or discard this patch.
Upper-Lower-Casing   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -41,17 +41,17 @@  discard block
 block discarded – undo
41 41
     public function access()
42 42
     {
43 43
         if (count($this->getMetadataConfig())) {
44
-            return true;
44
+            return TRUE;
45 45
         } elseif ($this->oldIndexRelatedTableNames()) {
46
-            return true;
46
+            return TRUE;
47 47
         } elseif ($this->solariumSolrUpdateRequired()) {
48
-            return true;
48
+            return TRUE;
49 49
         } elseif (count($this->oldFormatClasses())) {
50
-            return true;
50
+            return TRUE;
51 51
         } elseif ($this->hasNoFormatForDocument()) {
52
-            return true;
52
+            return TRUE;
53 53
         }
54
-        return false;
54
+        return FALSE;
55 55
     }
56 56
 
57 57
     /**
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
                 || $resArray['column_name'] == 'boost'
162 162
                 || $resArray['column_name'] == 'autocomplete'
163 163
             ) {
164
-                return true;
164
+                return TRUE;
165 165
             }
166 166
         }
167 167
     }
@@ -185,14 +185,14 @@  discard block
 block discarded – undo
185 185
         $result = $GLOBALS['TYPO3_DB']->sql_query($sqlQuery);
186 186
         if ($result) {
187 187
             Helper::addMessage(
188
-                $GLOBALS['LANG']->getLL('update.copyIndexRelatedColumnsOkay', true),
189
-                $GLOBALS['LANG']->getLL('update.copyIndexRelatedColumns', true),
188
+                $GLOBALS['LANG']->getLL('update.copyIndexRelatedColumnsOkay', TRUE),
189
+                $GLOBALS['LANG']->getLL('update.copyIndexRelatedColumns', TRUE),
190 190
                 \TYPO3\CMS\Core\Messaging\FlashMessage::OK
191 191
             );
192 192
         } else {
193 193
             Helper::addMessage(
194
-                $GLOBALS['LANG']->getLL('update.copyIndexRelatedColumnsNotOkay', true),
195
-                $GLOBALS['LANG']->getLL('update.copyIndexRelatedColumns', true),
194
+                $GLOBALS['LANG']->getLL('update.copyIndexRelatedColumnsNotOkay', TRUE),
195
+                $GLOBALS['LANG']->getLL('update.copyIndexRelatedColumns', TRUE),
196 196
                 \TYPO3\CMS\Core\Messaging\FlashMessage::WARNING
197 197
             );
198 198
         }
@@ -219,8 +219,8 @@  discard block
 block discarded – undo
219 219
             $GLOBALS['TYPO3_DB']->sql_query($sqlQuery);
220 220
         }
221 221
         Helper::addMessage(
222
-            $GLOBALS['LANG']->getLL('update.FormatClassesOkay', true),
223
-            $GLOBALS['LANG']->getLL('update.FormatClasses', true),
222
+            $GLOBALS['LANG']->getLL('update.FormatClassesOkay', TRUE),
223
+            $GLOBALS['LANG']->getLL('update.FormatClasses', TRUE),
224 224
             \TYPO3\CMS\Core\Messaging\FlashMessage::OK
225 225
         );
226 226
         $this->content .= Helper::renderFlashMessages();
@@ -265,14 +265,14 @@  discard block
 block discarded – undo
265 265
                 unset($data);
266 266
                 if (!empty($substUids)) {
267 267
                     Helper::addMessage(
268
-                        $GLOBALS['LANG']->getLL('update.metadataConfigOkay', true),
269
-                        $GLOBALS['LANG']->getLL('update.metadataConfig', true),
268
+                        $GLOBALS['LANG']->getLL('update.metadataConfigOkay', TRUE),
269
+                        $GLOBALS['LANG']->getLL('update.metadataConfig', TRUE),
270 270
                         \TYPO3\CMS\Core\Messaging\FlashMessage::OK
271 271
                     );
272 272
                 } else {
273 273
                     Helper::addMessage(
274
-                        $GLOBALS['LANG']->getLL('update.metadataConfigNotOkay', true),
275
-                        $GLOBALS['LANG']->getLL('update.metadataConfig', true),
274
+                        $GLOBALS['LANG']->getLL('update.metadataConfigNotOkay', TRUE),
275
+                        $GLOBALS['LANG']->getLL('update.metadataConfig', TRUE),
276 276
                         \TYPO3\CMS\Core\Messaging\FlashMessage::WARNING
277 277
                     );
278 278
                 }
@@ -301,10 +301,10 @@  discard block
 block discarded – undo
301 301
             // Instantiate search object.
302 302
             $solr = Solr::getInstance($resArray['index_name']);
303 303
             if (!$solr->ready) {
304
-                return true;
304
+                return TRUE;
305 305
             }
306 306
         }
307
-        return false;
307
+        return FALSE;
308 308
     }
309 309
 
310 310
     /**
@@ -347,20 +347,20 @@  discard block
 block discarded – undo
347 347
                 // Build request for adding new Solr core.
348 348
                 // @see http://wiki.apache.org/solr/CoreAdmin
349 349
                 $url = $solrInfo['scheme'] . '://' . $host . ':' . $solrInfo['port'] . '/' . $solrInfo['path'] . '/admin/cores?wt=xml&action=CREATE&name=' . $resArray['index_name'] . '&instanceDir=' . $resArray['index_name'] . '&dataDir=data&configSet=dlf';
350
-                $response = @simplexml_load_string(file_get_contents($url, false, $context));
350
+                $response = @simplexml_load_string(file_get_contents($url, FALSE, $context));
351 351
                 // Process response.
352 352
                 if ($response) {
353 353
                     $status = $response->xpath('//lst[@name="responseHeader"]/int[@name="status"]');
354 354
                     if (
355
-                        $status !== false
355
+                        $status !== FALSE
356 356
                         && $status[0] == 0
357 357
                     ) {
358 358
                         continue;
359 359
                     }
360 360
                 }
361 361
                 Helper::addMessage(
362
-                    $GLOBALS['LANG']->getLL('update.solariumSolrUpdateNotOkay', true),
363
-                    sprintf($GLOBALS['LANG']->getLL('update.solariumSolrUpdate', true), $resArray['index_name']),
362
+                    $GLOBALS['LANG']->getLL('update.solariumSolrUpdateNotOkay', TRUE),
363
+                    sprintf($GLOBALS['LANG']->getLL('update.solariumSolrUpdate', TRUE), $resArray['index_name']),
364 364
                     \TYPO3\CMS\Core\Messaging\FlashMessage::ERROR
365 365
                 );
366 366
                 $this->content .= Helper::renderFlashMessages();
@@ -368,14 +368,14 @@  discard block
 block discarded – undo
368 368
             }
369 369
         }
370 370
         Helper::addMessage(
371
-            $GLOBALS['LANG']->getLL('update.solariumSolrUpdateOkay', true),
372
-            $GLOBALS['LANG']->getLL('update.solariumSolrUpdate', true),
371
+            $GLOBALS['LANG']->getLL('update.solariumSolrUpdateOkay', TRUE),
372
+            $GLOBALS['LANG']->getLL('update.solariumSolrUpdate', TRUE),
373 373
             \TYPO3\CMS\Core\Messaging\FlashMessage::OK
374 374
         );
375 375
         $this->content .= Helper::renderFlashMessages();
376 376
     }
377 377
 
378
-    protected function hasNoFormatForDocument($checkStructureOnly = false)
378
+    protected function hasNoFormatForDocument($checkStructureOnly = FALSE)
379 379
     {
380 380
         // Check if column "document_format" exists.
381 381
         $database = $GLOBALS['TYPO3_CONF_VARS']['DB']['Connections']['Default']['dbname'];
@@ -387,7 +387,7 @@  discard block
 block discarded – undo
387 387
         while ($resArray = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($result)) {
388 388
             if ($resArray['COLUMN_NAME'] == 'document_format') {
389 389
                 if ($checkStructureOnly) {
390
-                    return false;
390
+                    return FALSE;
391 391
                 }
392 392
                 // Check if column has empty fields.
393 393
                 $result2 = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
@@ -396,29 +396,29 @@  discard block
 block discarded – undo
396 396
                     'document_format="" OR document_format IS NULL'
397 397
                 );
398 398
                 if ($GLOBALS['TYPO3_DB']->sql_num_rows($result2) == 0) {
399
-                    return false;
399
+                    return FALSE;
400 400
                 }
401 401
             }
402 402
         }
403
-        return true;
403
+        return TRUE;
404 404
     }
405 405
 
406 406
     protected function updateDocumentAddFormat()
407 407
     {
408
-        if ($this->hasNoFormatForDocument(true)) {
408
+        if ($this->hasNoFormatForDocument(TRUE)) {
409 409
             $sqlQuery = 'ALTER TABLE tx_dlf_documents ADD COLUMN document_format varchar(100) DEFAULT "" NOT NULL;';
410 410
             $result = $GLOBALS['TYPO3_DB']->sql_query($sqlQuery);
411 411
             if ($result) {
412 412
                 Helper::addMessage(
413
-                    $GLOBALS['LANG']->getLL('update.documentAddFormatOkay', true),
414
-                    $GLOBALS['LANG']->getLL('update.documentAddFormat', true),
413
+                    $GLOBALS['LANG']->getLL('update.documentAddFormatOkay', TRUE),
414
+                    $GLOBALS['LANG']->getLL('update.documentAddFormat', TRUE),
415 415
                     \TYPO3\CMS\Core\Messaging\FlashMessage::OK
416 416
                 );
417 417
                 $this->content .= Helper::renderFlashMessages();
418 418
             } else {
419 419
                 Helper::addMessage(
420
-                    $GLOBALS['LANG']->getLL('update.documentAddFormatNotOkay', true),
421
-                    $GLOBALS['LANG']->getLL('update.documentAddFormat', true),
420
+                    $GLOBALS['LANG']->getLL('update.documentAddFormatNotOkay', TRUE),
421
+                    $GLOBALS['LANG']->getLL('update.documentAddFormat', TRUE),
422 422
                     \TYPO3\CMS\Core\Messaging\FlashMessage::WARNING
423 423
                 );
424 424
                 $this->content .= Helper::renderFlashMessages();
@@ -429,14 +429,14 @@  discard block
 block discarded – undo
429 429
         $result = $GLOBALS['TYPO3_DB']->sql_query($sqlQuery);
430 430
         if ($result) {
431 431
             Helper::addMessage(
432
-                $GLOBALS['LANG']->getLL('update.documentSetFormatForOldEntriesOkay', true),
433
-                $GLOBALS['LANG']->getLL('update.documentSetFormatForOldEntries', true),
432
+                $GLOBALS['LANG']->getLL('update.documentSetFormatForOldEntriesOkay', TRUE),
433
+                $GLOBALS['LANG']->getLL('update.documentSetFormatForOldEntries', TRUE),
434 434
                 \TYPO3\CMS\Core\Messaging\FlashMessage::OK
435 435
             );
436 436
         } else {
437 437
             Helper::addMessage(
438
-                $GLOBALS['LANG']->getLL('update.documentSetFormatForOldEntriesNotOkay', true),
439
-                $GLOBALS['LANG']->getLL('update.documentSetFormatForOldEntries', true),
438
+                $GLOBALS['LANG']->getLL('update.documentSetFormatForOldEntriesNotOkay', TRUE),
439
+                $GLOBALS['LANG']->getLL('update.documentSetFormatForOldEntries', TRUE),
440 440
                 \TYPO3\CMS\Core\Messaging\FlashMessage::WARNING
441 441
             );
442 442
         }
Please login to merge, or discard this patch.
Classes/Plugin/Toolbox.php 3 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
             $tool = trim($tool);
57 57
             $cObj = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer::class);
58 58
             $cObj->data = $data;
59
-            $content .= $this->templateService->substituteMarkerArray($subpart, ['###TOOL###' => $cObj->cObjGetSingle($GLOBALS['TSFE']->tmpl->setup['plugin.'][$tool], $GLOBALS['TSFE']->tmpl->setup['plugin.'][$tool . '.'])]);
59
+            $content .= $this->templateService->substituteMarkerArray($subpart, ['###TOOL###' => $cObj->cObjGetSingle($GLOBALS['TSFE']->tmpl->setup['plugin.'][$tool], $GLOBALS['TSFE']->tmpl->setup['plugin.'][$tool.'.'])]);
60 60
         }
61 61
         return $this->pi_wrapInBaseClass($this->templateService->substituteSubpart($this->template, '###TOOLS###', $content, true));
62 62
     }
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,8 +20,7 @@  discard block
 block discarded – undo
20 20
  * @subpackage dlf
21 21
  * @access public
22 22
  */
23
-class Toolbox extends \Kitodo\Dlf\Common\AbstractPlugin
24
-{
23
+class Toolbox extends \Kitodo\Dlf\Common\AbstractPlugin {
25 24
     public $scriptRelPath = 'Classes/Plugin/Toolbox.php';
26 25
 
27 26
     /**
@@ -34,8 +33,7 @@  discard block
 block discarded – undo
34 33
      *
35 34
      * @return string The content that is displayed on the website
36 35
      */
37
-    public function main($content, $conf)
38
-    {
36
+    public function main($content, $conf) {
39 37
         $this->init($conf);
40 38
         // Quit without doing anything if required variable is not set.
41 39
         if (empty($this->piVars['id'])) {
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,6 +58,6 @@
 block discarded – undo
58 58
             $cObj->data = $data;
59 59
             $content .= $this->templateService->substituteMarkerArray($subpart, ['###TOOL###' => $cObj->cObjGetSingle($GLOBALS['TSFE']->tmpl->setup['plugin.'][$tool], $GLOBALS['TSFE']->tmpl->setup['plugin.'][$tool . '.'])]);
60 60
         }
61
-        return $this->pi_wrapInBaseClass($this->templateService->substituteSubpart($this->template, '###TOOLS###', $content, true));
61
+        return $this->pi_wrapInBaseClass($this->templateService->substituteSubpart($this->template, '###TOOLS###', $content, TRUE));
62 62
     }
63 63
 }
Please login to merge, or discard this patch.