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
Branch master (585b6c)
by Sebastian
06:27
created
Configuration/TCA/tx_dlf_documents.php 1 patch
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\FormEngine::class . '->displayThumbnail',
229
+                'userFunc' => \Kitodo\Dlf\Hooks\FormEngine::class.'->displayThumbnail',
230 230
             ],
231 231
         ],
232 232
         'metadata' => [
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.
ext_localconf.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -49,25 +49,25 @@
 block discarded – undo
49 49
 // Register tools for toolbox plugin.
50 50
 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Plugin/Toolbox.php']['tools'] = [];
51 51
 \Kitodo\Dlf\Hooks\ExtensionManagementUtility::addPItoST43($_EXTKEY, \Kitodo\Dlf\Plugin\Tools\FulltextTool::class, '_fulltexttool', '', TRUE);
52
-$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';
52
+$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';
53 53
 \Kitodo\Dlf\Hooks\ExtensionManagementUtility::addPItoST43($_EXTKEY, \Kitodo\Dlf\Plugin\Tools\AnnotationTool::class, '_annotationtool', '', TRUE);
54
-$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';
54
+$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';
55 55
 \Kitodo\Dlf\Hooks\ExtensionManagementUtility::addPItoST43($_EXTKEY, \Kitodo\Dlf\Plugin\Tools\ImageDownloadTool::class, '_imagedownloadtool', '', TRUE);
56
-$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';
56
+$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';
57 57
 \Kitodo\Dlf\Hooks\ExtensionManagementUtility::addPItoST43($_EXTKEY, \Kitodo\Dlf\Plugin\Tools\ImageManipulationTool::class, '_imagemanipulationtool', '', TRUE);
58
-$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';
58
+$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';
59 59
 \Kitodo\Dlf\Hooks\ExtensionManagementUtility::addPItoST43($_EXTKEY, \Kitodo\Dlf\Plugin\Tools\PdfDownloadTool::class, '_pdfdownloadtool', '', TRUE);
60
-$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';
60
+$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';
61 61
 \Kitodo\Dlf\Hooks\ExtensionManagementUtility::addPItoST43($_EXTKEY, \Kitodo\Dlf\Plugin\Tools\SearchInDocumentTool::class, '_searchindocumenttool', '', TRUE);
62
-$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';
62
+$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';
63 63
 // Register hooks.
64 64
 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = \Kitodo\Dlf\Hooks\DataHandler::class;
65 65
 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass'][] = \Kitodo\Dlf\Hooks\DataHandler::class;
66 66
 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Common/MetsDocument.php']['hookClass'][] = \Kitodo\Dlf\Hooks\KitodoProductionHacks::class;
67 67
 // Register AJAX eID handlers.
68
-$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['tx_dlf_search_suggest'] = \Kitodo\Dlf\Plugin\Eid\SearchSuggest::class . '::main';
69
-$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['tx_dlf_search_in_document'] = \Kitodo\Dlf\Plugin\Eid\SearchInDocument::class . '::main';
70
-$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['tx_dlf_pageview_proxy'] = \Kitodo\Dlf\Plugin\Eid\PageViewProxy::class . '::main';
68
+$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['tx_dlf_search_suggest'] = \Kitodo\Dlf\Plugin\Eid\SearchSuggest::class.'::main';
69
+$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['tx_dlf_search_in_document'] = \Kitodo\Dlf\Plugin\Eid\SearchInDocument::class.'::main';
70
+$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['tx_dlf_pageview_proxy'] = \Kitodo\Dlf\Plugin\Eid\PageViewProxy::class.'::main';
71 71
 // Use Caching Framework for Solr queries
72 72
 if (!is_array($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['tx_dlf_solr'])) {
73 73
     $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['tx_dlf_solr'] = [];
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/Images/NewTenant.svg',
Please login to merge, or discard this patch.
Classes/Common/Indexer.php 1 patch
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
                 if ($parent->ready) {
101 101
                     $errors = self::add($parent, $core);
102 102
                 } else {
103
-                    Helper::devLog('Could not load parent document with UID ' . $doc->parentId, DEVLOG_SEVERITY_ERROR);
103
+                    Helper::devLog('Could not load parent document with UID '.$doc->parentId, DEVLOG_SEVERITY_ERROR);
104 104
                     return 1;
105 105
                 }
106 106
             }
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
                 self::$processedDocs[] = $doc->uid;
110 110
                 // Delete old Solr documents.
111 111
                 $updateQuery = self::$solr->service->createUpdate();
112
-                $updateQuery->addDeleteQuery('uid:' . $doc->uid);
112
+                $updateQuery->addDeleteQuery('uid:'.$doc->uid);
113 113
                 self::$solr->service->update($updateQuery);
114 114
                 // Index every logical unit as separate Solr document.
115 115
                 foreach ($doc->tableOfContents as $logicalUnit) {
@@ -172,13 +172,13 @@  discard block
 block discarded – undo
172 172
             } catch (\Exception $e) {
173 173
                 if ((TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_CLI) == FALSE) {
174 174
                     Helper::addMessage(
175
-                        Helper::getMessage('flash.solrException', TRUE) . '<br />' . htmlspecialchars($e->getMessage()),
175
+                        Helper::getMessage('flash.solrException', TRUE).'<br />'.htmlspecialchars($e->getMessage()),
176 176
                         Helper::getMessage('flash.error', TRUE),
177 177
                         \TYPO3\CMS\Core\Messaging\FlashMessage::ERROR,
178 178
                         TRUE
179 179
                     );
180 180
                 }
181
-                Helper::devLog('Apache Solr threw exception: "' . $e->getMessage() . '"', DEVLOG_SEVERITY_ERROR);
181
+                Helper::devLog('Apache Solr threw exception: "'.$e->getMessage().'"', DEVLOG_SEVERITY_ERROR);
182 182
                 return 1;
183 183
             }
184 184
         } else {
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
             'tx_dlf_solrcores.uid AS uid,tx_dlf_documents.title AS title',
214 214
             'tx_dlf_solrcores,tx_dlf_documents',
215 215
             'tx_dlf_solrcores.uid=tx_dlf_documents.solrcore'
216
-                . ' AND tx_dlf_documents.uid=' . $uid
216
+                . ' AND tx_dlf_documents.uid='.$uid
217 217
                 . Helper::whereClause('tx_dlf_solrcores'),
218 218
             '',
219 219
             '',
@@ -226,19 +226,19 @@  discard block
 block discarded – undo
226 226
                 try {
227 227
                     // Delete Solr document.
228 228
                     $updateQuery = self::$solr->service->createUpdate();
229
-                    $updateQuery->addDeleteQuery('uid:' . $uid);
229
+                    $updateQuery->addDeleteQuery('uid:'.$uid);
230 230
                     $updateQuery->addCommit();
231 231
                     self::$solr->service->update($updateQuery);
232 232
                 } catch (\Exception $e) {
233 233
                     if ((TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_CLI) == FALSE) {
234 234
                         Helper::addMessage(
235
-                            Helper::getMessage('flash.solrException', TRUE) . '<br />' . htmlspecialchars($e->getMessage()),
235
+                            Helper::getMessage('flash.solrException', TRUE).'<br />'.htmlspecialchars($e->getMessage()),
236 236
                             Helper::getMessage('flash.error', TRUE),
237 237
                             \TYPO3\CMS\Core\Messaging\FlashMessage::ERROR,
238 238
                             TRUE
239 239
                         );
240 240
                     }
241
-                    Helper::devLog('Apache Solr threw exception: "' . $e->getMessage() . '"', DEVLOG_SEVERITY_ERROR);
241
+                    Helper::devLog('Apache Solr threw exception: "'.$e->getMessage().'"', DEVLOG_SEVERITY_ERROR);
242 242
                     return 1;
243 243
                 }
244 244
             } else {
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
             }
264 264
             return 0;
265 265
         } else {
266
-            Helper::devLog('Invalid UID ' . $uid . ' for document deletion', DEVLOG_SEVERITY_ERROR);
266
+            Helper::devLog('Invalid UID '.$uid.' for document deletion', DEVLOG_SEVERITY_ERROR);
267 267
             return 1;
268 268
         }
269 269
     }
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
         // Sanitize input.
284 284
         $pid = max(intval($pid), 0);
285 285
         if (!$pid) {
286
-            Helper::devLog('Invalid PID ' . $pid . ' for metadata configuration', DEVLOG_SEVERITY_ERROR);
286
+            Helper::devLog('Invalid PID '.$pid.' for metadata configuration', DEVLOG_SEVERITY_ERROR);
287 287
             return '';
288 288
         }
289 289
         // Load metadata configuration.
@@ -292,7 +292,7 @@  discard block
 block discarded – undo
292 292
         $suffix = (in_array($index_name, self::$fields['tokenized']) ? 't' : 'u');
293 293
         $suffix .= (in_array($index_name, self::$fields['stored']) ? 's' : 'u');
294 294
         $suffix .= (in_array($index_name, self::$fields['indexed']) ? 'i' : 'u');
295
-        $index_name .= '_' . $suffix;
295
+        $index_name .= '_'.$suffix;
296 296
         return $index_name;
297 297
     }
298 298
 
@@ -392,7 +392,7 @@  discard block
 block discarded – undo
392 392
             $updateQuery = self::$solr->service->createUpdate();
393 393
             $solrDoc = $updateQuery->createDocument();
394 394
             // Create unique identifier from document's UID and unit's XML ID.
395
-            $solrDoc->setField('id', $doc->uid . $logicalUnit['id']);
395
+            $solrDoc->setField('id', $doc->uid.$logicalUnit['id']);
396 396
             $solrDoc->setField('uid', $doc->uid);
397 397
             $solrDoc->setField('pid', $doc->pid);
398 398
             if (\TYPO3\CMS\Core\Utility\MathUtility::canBeInterpretedAsInteger($logicalUnit['points'])) {
@@ -432,11 +432,11 @@  discard block
 block discarded – undo
432 432
                     $solrDoc->setField(self::getIndexFieldName($index_name, $doc->pid), $data, self::$fields['fieldboost'][$index_name]);
433 433
                     if (in_array($index_name, self::$fields['sortables'])) {
434 434
                         // Add sortable fields to index.
435
-                        $solrDoc->setField($index_name . '_sorting', $metadata[$index_name . '_sorting'][0]);
435
+                        $solrDoc->setField($index_name.'_sorting', $metadata[$index_name.'_sorting'][0]);
436 436
                     }
437 437
                     if (in_array($index_name, self::$fields['facets'])) {
438 438
                         // Add facets to index.
439
-                        $solrDoc->setField($index_name . '_faceting', $data);
439
+                        $solrDoc->setField($index_name.'_faceting', $data);
440 440
                     }
441 441
                     if (in_array($index_name, self::$fields['autocomplete'])) {
442 442
                         $autocomplete = array_merge($autocomplete, $data);
@@ -461,7 +461,7 @@  discard block
 block discarded – undo
461 461
             } catch (\Exception $e) {
462 462
                 if ((TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_CLI) == FALSE) {
463 463
                     Helper::addMessage(
464
-                        Helper::getMessage('flash.solrException', TRUE) . '<br />' . htmlspecialchars($e->getMessage()),
464
+                        Helper::getMessage('flash.solrException', TRUE).'<br />'.htmlspecialchars($e->getMessage()),
465 465
                         Helper::getMessage('flash.error', TRUE),
466 466
                         \TYPO3\CMS\Core\Messaging\FlashMessage::ERROR,
467 467
                         TRUE
@@ -544,7 +544,7 @@  discard block
 block discarded – undo
544 544
             $updateQuery = self::$solr->service->createUpdate();
545 545
             $solrDoc = $updateQuery->createDocument();
546 546
             // Create unique identifier from document's UID and unit's XML ID.
547
-            $solrDoc->setField('id', $doc->uid . $physicalUnit['id']);
547
+            $solrDoc->setField('id', $doc->uid.$physicalUnit['id']);
548 548
             $solrDoc->setField('uid', $doc->uid);
549 549
             $solrDoc->setField('pid', $doc->pid);
550 550
             $solrDoc->setField('page', $page);
@@ -566,7 +566,7 @@  discard block
 block discarded – undo
566 566
                 ) {
567 567
                     if (in_array($index_name, self::$fields['facets'])) {
568 568
                         // Add facets to index.
569
-                        $solrDoc->setField($index_name . '_faceting', $data);
569
+                        $solrDoc->setField($index_name.'_faceting', $data);
570 570
                     }
571 571
                 }
572 572
             }
@@ -584,7 +584,7 @@  discard block
 block discarded – undo
584 584
                 if ((TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_CLI) == FALSE) {
585 585
                     Helper::addMessage(
586 586
                         \TYPO3\CMS\Core\Messaging\FlashMessage::class,
587
-                        Helper::getMessage('flash.solrException', TRUE) . '<br />' . htmlspecialchars($e->getMessage()),
587
+                        Helper::getMessage('flash.solrException', TRUE).'<br />'.htmlspecialchars($e->getMessage()),
588 588
                         Helper::getMessage('flash.error', TRUE),
589 589
                         \TYPO3\CMS\Core\Messaging\FlashMessage::ERROR,
590 590
                         TRUE
Please login to merge, or discard this patch.
Classes/Common/Solr.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -158,13 +158,13 @@  discard block
 block discarded – undo
158 158
                 ->execute();
159 159
 
160 160
             while ($resArray = $result->fetch()) {
161
-                $fields[] = $resArray['index_name'] . '_' . ($resArray['index_tokenized'] ? 't' : 'u') . ($resArray['index_stored'] ? 's' : 'u') . 'i';
161
+                $fields[] = $resArray['index_name'].'_'.($resArray['index_tokenized'] ? 't' : 'u').($resArray['index_stored'] ? 's' : 'u').'i';
162 162
             }
163 163
 
164 164
             // Check if queried field is valid.
165 165
             $splitQuery = explode(':', $query, 2);
166 166
             if (in_array($splitQuery[0], $fields)) {
167
-                $query = $splitQuery[0] . ':(' . self::escapeQuery(trim($splitQuery[1], '()')) . ')';
167
+                $query = $splitQuery[0].':('.self::escapeQuery(trim($splitQuery[1], '()')).')';
168 168
             } else {
169 169
                 $query = self::escapeQuery($query);
170 170
             }
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
         }
196 196
         // Check if core is set.
197 197
         if (empty($core)) {
198
-            Helper::devLog('Invalid core name "' . $core . '" for Apache Solr', DEVLOG_SEVERITY_ERROR);
198
+            Helper::devLog('Invalid core name "'.$core.'" for Apache Solr', DEVLOG_SEVERITY_ERROR);
199 199
             return;
200 200
         }
201 201
         // Check if there is an instance in the registry already.
@@ -264,12 +264,12 @@  discard block
 block discarded – undo
264 264
             $solrInfo['username']
265 265
             && $solrInfo['password']
266 266
         ) {
267
-            $host = $solrInfo['username'] . ':' . $solrInfo['password'] . '@' . $solrInfo['host'];
267
+            $host = $solrInfo['username'].':'.$solrInfo['password'].'@'.$solrInfo['host'];
268 268
         } else {
269 269
             $host = $solrInfo['host'];
270 270
         }
271 271
         // Return entire request URL.
272
-        return $solrInfo['scheme'] . '://' . $host . ':' . $solrInfo['port'] . '/' . $solrInfo['path'] . '/' . $core;
272
+        return $solrInfo['scheme'].'://'.$host.':'.$solrInfo['port'].'/'.$solrInfo['path'].'/'.$core;
273 273
     }
274 274
 
275 275
     /**
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
     {
286 286
         $start = max(intval($start), 0);
287 287
         // Check if core already exists.
288
-        if (self::getInstance('dlfCore' . $start) === NULL) {
288
+        if (self::getInstance('dlfCore'.$start) === NULL) {
289 289
             return $start;
290 290
         } else {
291 291
             return self::solrGetCoreNumber($start + 1);
@@ -320,13 +320,13 @@  discard block
 block discarded – undo
320 320
         // Extend filter query to get all documents with the same uids.
321 321
         foreach ($params['filterquery'] as $key => $value) {
322 322
             if (isset($value['query'])) {
323
-                $params['filterquery'][$key]['query'] = '{!join from=uid to=uid}' . $value['query'];
323
+                $params['filterquery'][$key]['query'] = '{!join from=uid to=uid}'.$value['query'];
324 324
             }
325 325
         }
326 326
         // Set filter query to just get toplevel documents.
327 327
         $params['filterquery'][] = ['query' => 'toplevel:true'];
328 328
         // Set join query to get all documents with the same uids.
329
-        $params['query'] = '{!join from=uid to=uid}' . $params['query'];
329
+        $params['query'] = '{!join from=uid to=uid}'.$params['query'];
330 330
         // Perform search to determine the total number of toplevel hits and fetch the required rows.
331 331
         $selectQuery = $this->service->createSelect($params);
332 332
         $results = $this->service->select($selectQuery);
@@ -504,12 +504,12 @@  discard block
 block discarded – undo
504 504
      */
505 505
     public function __get($var)
506 506
     {
507
-        $method = '_get' . ucfirst($var);
507
+        $method = '_get'.ucfirst($var);
508 508
         if (
509 509
             !property_exists($this, $var)
510 510
             || !method_exists($this, $method)
511 511
         ) {
512
-            Helper::devLog('There is no getter function for property "' . $var . '"', DEVLOG_SEVERITY_WARNING);
512
+            Helper::devLog('There is no getter function for property "'.$var.'"', DEVLOG_SEVERITY_WARNING);
513 513
             return;
514 514
         } else {
515 515
             return $this->$method();
@@ -528,12 +528,12 @@  discard block
 block discarded – undo
528 528
      */
529 529
     public function __set($var, $value)
530 530
     {
531
-        $method = '_set' . ucfirst($var);
531
+        $method = '_set'.ucfirst($var);
532 532
         if (
533 533
             !property_exists($this, $var)
534 534
             || !method_exists($this, $method)
535 535
         ) {
536
-            Helper::devLog('There is no setter function for property "' . $var . '"', DEVLOG_SEVERITY_WARNING);
536
+            Helper::devLog('There is no setter function for property "'.$var.'"', DEVLOG_SEVERITY_WARNING);
537 537
         } else {
538 538
             $this->$method($value);
539 539
         }
@@ -557,7 +557,7 @@  discard block
 block discarded – undo
557 557
                     'scheme' => $solrInfo['scheme'],
558 558
                     'host' => $solrInfo['host'],
559 559
                     'port' => $solrInfo['port'],
560
-                    'path' => '/' . $solrInfo['path'] . '/',
560
+                    'path' => '/'.$solrInfo['path'].'/',
561 561
                     'core' => $core,
562 562
                     'username' => $solrInfo['username'],
563 563
                     'password' => $solrInfo['password'],
Please login to merge, or discard this patch.
Classes/Common/MetsDocument.php 1 patch
Spacing   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
         $fileMimeType = $this->getFileMimeType($id);
156 156
         $fileLocation = $this->getFileLocation($id);
157 157
         if ($fileMimeType == "application/vnd.kitodo.iiif") {
158
-            $fileLocation = strrpos($fileLocation, "info.json") == strlen($fileLocation) - 9 ? $fileLocation : strrpos($fileLocation, "/") == strlen($fileLocation) ? $fileLocation . "info.json" : $fileLocation . "/info.json";
158
+            $fileLocation = strrpos($fileLocation, "info.json") == strlen($fileLocation) - 9 ? $fileLocation : strrpos($fileLocation, "/") == strlen($fileLocation) ? $fileLocation."info.json" : $fileLocation."/info.json";
159 159
             $conf = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'][self::$extKey]);
160 160
             IiifHelper::setUrlReader(IiifUrlReader::getInstance());
161 161
             IiifHelper::setMaxThumbnailHeight($conf['iiifThumbnailHeight']);
@@ -165,9 +165,9 @@  discard block
 block discarded – undo
165 165
                 return $service->getImageUrl();
166 166
             }
167 167
         } elseif ($fileMimeType = "application/vnd.netfpx") {
168
-            $baseURL = $fileLocation . (strpos($fileLocation, "?") === FALSE ? "?" : "");
168
+            $baseURL = $fileLocation.(strpos($fileLocation, "?") === FALSE ? "?" : "");
169 169
             // TODO CVT is an optional IIP server capability; in theory, capabilities should be determined in the object request with '&obj=IIP-server'
170
-            return $baseURL . "&CVT=jpeg";
170
+            return $baseURL."&CVT=jpeg";
171 171
         }
172 172
         return $fileLocation;
173 173
     }
@@ -180,11 +180,11 @@  discard block
 block discarded – undo
180 180
     {
181 181
         if (
182 182
             !empty($id)
183
-            && ($location = $this->mets->xpath('./mets:fileSec/mets:fileGrp/mets:file[@ID="' . $id . '"]/mets:FLocat[@LOCTYPE="URL"]'))
183
+            && ($location = $this->mets->xpath('./mets:fileSec/mets:fileGrp/mets:file[@ID="'.$id.'"]/mets:FLocat[@LOCTYPE="URL"]'))
184 184
         ) {
185 185
             return (string) $location[0]->attributes('http://www.w3.org/1999/xlink')->href;
186 186
         } else {
187
-            Helper::devLog('There is no file node with @ID "' . $id . '"', DEVLOG_SEVERITY_WARNING);
187
+            Helper::devLog('There is no file node with @ID "'.$id.'"', DEVLOG_SEVERITY_WARNING);
188 188
             return '';
189 189
         }
190 190
     }
@@ -197,11 +197,11 @@  discard block
 block discarded – undo
197 197
     {
198 198
         if (
199 199
             !empty($id)
200
-            && ($mimetype = $this->mets->xpath('./mets:fileSec/mets:fileGrp/mets:file[@ID="' . $id . '"]/@MIMETYPE'))
200
+            && ($mimetype = $this->mets->xpath('./mets:fileSec/mets:fileGrp/mets:file[@ID="'.$id.'"]/@MIMETYPE'))
201 201
         ) {
202 202
             return (string) $mimetype[0];
203 203
         } else {
204
-            Helper::devLog('There is no file node with @ID "' . $id . '" or no MIME type specified', DEVLOG_SEVERITY_WARNING);
204
+            Helper::devLog('There is no file node with @ID "'.$id.'" or no MIME type specified', DEVLOG_SEVERITY_WARNING);
205 205
             return '';
206 206
         }
207 207
     }
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
             return $this->logicalUnits[$id];
223 223
         } elseif (!empty($id)) {
224 224
             // Get specified logical unit.
225
-            $divs = $this->mets->xpath('./mets:structMap[@TYPE="LOGICAL"]//mets:div[@ID="' . $id . '"]');
225
+            $divs = $this->mets->xpath('./mets:structMap[@TYPE="LOGICAL"]//mets:div[@ID="'.$id.'"]');
226 226
         } else {
227 227
             // Get all logical units at top level.
228 228
             $divs = $this->mets->xpath('./mets:structMap[@TYPE="LOGICAL"]/mets:div');
@@ -353,7 +353,7 @@  discard block
 block discarded – undo
353 353
             // Retain current PID.
354 354
             $cPid = ($this->cPid ? $this->cPid : $this->pid);
355 355
         } elseif (!$cPid) {
356
-            Helper::devLog('Invalid PID ' . $cPid . ' for metadata definitions', DEVLOG_SEVERITY_WARNING);
356
+            Helper::devLog('Invalid PID '.$cPid.' for metadata definitions', DEVLOG_SEVERITY_WARNING);
357 357
             return [];
358 358
         }
359 359
         // Get metadata from parsed metadata array if available.
@@ -395,7 +395,7 @@  discard block
 block discarded – undo
395 395
         if (!empty($this->logicalUnits[$id])) {
396 396
             $dmdId = $this->logicalUnits[$id]['dmdId'];
397 397
         } else {
398
-            $dmdId = $this->mets->xpath('./mets:structMap[@TYPE="LOGICAL"]//mets:div[@ID="' . $id . '"]/@DMDID');
398
+            $dmdId = $this->mets->xpath('./mets:structMap[@TYPE="LOGICAL"]//mets:div[@ID="'.$id.'"]/@DMDID');
399 399
             $dmdId = (string) $dmdId[0];
400 400
         }
401 401
         if (!empty($dmdId)) {
@@ -413,27 +413,27 @@  discard block
 block discarded – undo
413 413
                     ) {
414 414
                         $obj->extractMetadata($this->dmdSec[$dmdId]['xml'], $metadata);
415 415
                     } else {
416
-                        Helper::devLog('Invalid class/method "' . $class . '->extractMetadata()" for metadata format "' . $this->dmdSec[$dmdId]['type'] . '"', DEVLOG_SEVERITY_WARNING);
416
+                        Helper::devLog('Invalid class/method "'.$class.'->extractMetadata()" for metadata format "'.$this->dmdSec[$dmdId]['type'].'"', DEVLOG_SEVERITY_WARNING);
417 417
                     }
418 418
                 }
419 419
             } else {
420
-                Helper::devLog('Unsupported metadata format "' . $this->dmdSec[$dmdId]['type'] . '" in dmdSec with @ID "' . $dmdId . '"', DEVLOG_SEVERITY_WARNING);
420
+                Helper::devLog('Unsupported metadata format "'.$this->dmdSec[$dmdId]['type'].'" in dmdSec with @ID "'.$dmdId.'"', DEVLOG_SEVERITY_WARNING);
421 421
                 return [];
422 422
             }
423 423
             // Get the structure's type.
424 424
             if (!empty($this->logicalUnits[$id])) {
425 425
                 $metadata['type'] = [$this->logicalUnits[$id]['type']];
426 426
             } else {
427
-                $struct = $this->mets->xpath('./mets:structMap[@TYPE="LOGICAL"]//mets:div[@ID="' . $id . '"]/@TYPE');
427
+                $struct = $this->mets->xpath('./mets:structMap[@TYPE="LOGICAL"]//mets:div[@ID="'.$id.'"]/@TYPE');
428 428
                 $metadata['type'] = [(string) $struct[0]];
429 429
             }
430 430
             // Get the additional metadata from database.
431 431
             $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
432 432
                 'tx_dlf_metadata.index_name AS index_name,tx_dlf_metadataformat.xpath AS xpath,tx_dlf_metadataformat.xpath_sorting AS xpath_sorting,tx_dlf_metadata.is_sortable AS is_sortable,tx_dlf_metadata.default_value AS default_value,tx_dlf_metadata.format AS format',
433 433
                 'tx_dlf_metadata,tx_dlf_metadataformat,tx_dlf_formats',
434
-                'tx_dlf_metadata.pid=' . $cPid
435
-                    . ' AND tx_dlf_metadataformat.pid=' . $cPid
436
-                    . ' AND ((tx_dlf_metadata.uid=tx_dlf_metadataformat.parent_id AND tx_dlf_metadataformat.encoded=tx_dlf_formats.uid AND tx_dlf_formats.type=' . $GLOBALS['TYPO3_DB']->fullQuoteStr($this->dmdSec[$dmdId]['type'], 'tx_dlf_formats') . ') OR tx_dlf_metadata.format=0)'
434
+                'tx_dlf_metadata.pid='.$cPid
435
+                    . ' AND tx_dlf_metadataformat.pid='.$cPid
436
+                    . ' AND ((tx_dlf_metadata.uid=tx_dlf_metadataformat.parent_id AND tx_dlf_metadataformat.encoded=tx_dlf_formats.uid AND tx_dlf_formats.type='.$GLOBALS['TYPO3_DB']->fullQuoteStr($this->dmdSec[$dmdId]['type'], 'tx_dlf_formats').') OR tx_dlf_metadata.format=0)'
437 437
                     . Helper::whereClause('tx_dlf_metadata', TRUE)
438 438
                     . Helper::whereClause('tx_dlf_metadataformat')
439 439
                     . Helper::whereClause('tx_dlf_formats')
@@ -483,13 +483,13 @@  discard block
 block discarded – undo
483 483
                             $values instanceof \DOMNodeList
484 484
                             && $values->length > 0
485 485
                         ) {
486
-                            $metadata[$resArray['index_name'] . '_sorting'][0] = trim((string) $values->item(0)->nodeValue);
486
+                            $metadata[$resArray['index_name'].'_sorting'][0] = trim((string) $values->item(0)->nodeValue);
487 487
                         } elseif (!($values instanceof \DOMNodeList)) {
488
-                            $metadata[$resArray['index_name'] . '_sorting'][0] = trim((string) $values);
488
+                            $metadata[$resArray['index_name'].'_sorting'][0] = trim((string) $values);
489 489
                         }
490 490
                     }
491
-                    if (empty($metadata[$resArray['index_name'] . '_sorting'][0])) {
492
-                        $metadata[$resArray['index_name'] . '_sorting'][0] = $metadata[$resArray['index_name']][0];
491
+                    if (empty($metadata[$resArray['index_name'].'_sorting'][0])) {
492
+                        $metadata[$resArray['index_name'].'_sorting'][0] = $metadata[$resArray['index_name']][0];
493 493
                     }
494 494
                 }
495 495
             }
@@ -508,9 +508,9 @@  discard block
 block discarded – undo
508 508
                     'tx_dlf_documents',
509 509
                     'tx_dlf_relations',
510 510
                     'tx_dlf_collections',
511
-                    'AND tx_dlf_collections.pid=' . intval($cPid)
512
-                        . ' AND tx_dlf_documents.uid=' . intval($this->uid)
513
-                        . ' AND tx_dlf_relations.ident=' . $GLOBALS['TYPO3_DB']->fullQuoteStr('docs_colls', 'tx_dlf_relations')
511
+                    'AND tx_dlf_collections.pid='.intval($cPid)
512
+                        . ' AND tx_dlf_documents.uid='.intval($this->uid)
513
+                        . ' AND tx_dlf_relations.ident='.$GLOBALS['TYPO3_DB']->fullQuoteStr('docs_colls', 'tx_dlf_relations')
514 514
                         . ' AND tx_dlf_collections.sys_language_uid IN (-1,0)'
515 515
                         . Helper::whereClause('tx_dlf_documents')
516 516
                         . Helper::whereClause('tx_dlf_collections'),
@@ -554,7 +554,7 @@  discard block
 block discarded – undo
554 554
      */
555 555
     public function getStructureDepth($logId)
556 556
     {
557
-        return count($this->mets->xpath('./mets:structMap[@TYPE="LOGICAL"]//mets:div[@ID="' . $logId . '"]/ancestor::*'));
557
+        return count($this->mets->xpath('./mets:structMap[@TYPE="LOGICAL"]//mets:div[@ID="'.$logId.'"]/ancestor::*'));
558 558
     }
559 559
 
560 560
     /**
@@ -571,7 +571,7 @@  discard block
 block discarded – undo
571 571
             // Register namespaces.
572 572
             $this->registerNamespaces($this->mets);
573 573
         } else {
574
-            Helper::devLog('No METS part found in document with UID ' . $this->uid, DEVLOG_SEVERITY_ERROR);
574
+            Helper::devLog('No METS part found in document with UID '.$this->uid, DEVLOG_SEVERITY_ERROR);
575 575
         }
576 576
     }
577 577
 
@@ -596,7 +596,7 @@  discard block
 block discarded – undo
596 596
             $this->xml = $xml;
597 597
             return TRUE;
598 598
         } else {
599
-            Helper::devLog('Could not load XML file from "' . $location . '"', DEVLOG_SEVERITY_ERROR);
599
+            Helper::devLog('Could not load XML file from "'.$location.'"', DEVLOG_SEVERITY_ERROR);
600 600
         }
601 601
     }
602 602
 
@@ -620,7 +620,7 @@  discard block
 block discarded – undo
620 620
     {
621 621
         $partof = 0;
622 622
         // Get the closest ancestor of the current document which has a MPTR child.
623
-        $parentMptr = $this->mets->xpath('./mets:structMap[@TYPE="LOGICAL"]//mets:div[@ID="' . $this->_getToplevelId() . '"]/ancestor::mets:div[./mets:mptr][1]/mets:mptr');
623
+        $parentMptr = $this->mets->xpath('./mets:structMap[@TYPE="LOGICAL"]//mets:div[@ID="'.$this->_getToplevelId().'"]/ancestor::mets:div[./mets:mptr][1]/mets:mptr');
624 624
         if (!empty($parentMptr[0])) {
625 625
             $parentLocation = (string) $parentMptr[0]->attributes('http://www.w3.org/1999/xlink')->href;
626 626
             if ($parentLocation != $this->location) {
@@ -686,15 +686,15 @@  discard block
 block discarded – undo
686 686
             // Get dmdSec nodes from METS.
687 687
             $dmdIds = $this->mets->xpath('./mets:dmdSec/@ID');
688 688
             foreach ($dmdIds as $dmdId) {
689
-                if ($type = $this->mets->xpath('./mets:dmdSec[@ID="' . (string) $dmdId . '"]/mets:mdWrap[not(@MDTYPE="OTHER")]/@MDTYPE')) {
689
+                if ($type = $this->mets->xpath('./mets:dmdSec[@ID="'.(string) $dmdId.'"]/mets:mdWrap[not(@MDTYPE="OTHER")]/@MDTYPE')) {
690 690
                     if (!empty($this->formats[(string) $type[0]])) {
691 691
                         $type = (string) $type[0];
692
-                        $xml = $this->mets->xpath('./mets:dmdSec[@ID="' . (string) $dmdId . '"]/mets:mdWrap[@MDTYPE="' . $type . '"]/mets:xmlData/' . strtolower($type) . ':' . $this->formats[$type]['rootElement']);
692
+                        $xml = $this->mets->xpath('./mets:dmdSec[@ID="'.(string) $dmdId.'"]/mets:mdWrap[@MDTYPE="'.$type.'"]/mets:xmlData/'.strtolower($type).':'.$this->formats[$type]['rootElement']);
693 693
                     }
694
-                } elseif ($type = $this->mets->xpath('./mets:dmdSec[@ID="' . (string) $dmdId . '"]/mets:mdWrap[@MDTYPE="OTHER"]/@OTHERMDTYPE')) {
694
+                } elseif ($type = $this->mets->xpath('./mets:dmdSec[@ID="'.(string) $dmdId.'"]/mets:mdWrap[@MDTYPE="OTHER"]/@OTHERMDTYPE')) {
695 695
                     if (!empty($this->formats[(string) $type[0]])) {
696 696
                         $type = (string) $type[0];
697
-                        $xml = $this->mets->xpath('./mets:dmdSec[@ID="' . (string) $dmdId . '"]/mets:mdWrap[@MDTYPE="OTHER"][@OTHERMDTYPE="' . $type . '"]/mets:xmlData/' . strtolower($type) . ':' . $this->formats[$type]['rootElement']);
697
+                        $xml = $this->mets->xpath('./mets:dmdSec[@ID="'.(string) $dmdId.'"]/mets:mdWrap[@MDTYPE="OTHER"][@OTHERMDTYPE="'.$type.'"]/mets:xmlData/'.strtolower($type).':'.$this->formats[$type]['rootElement']);
698 698
                     }
699 699
                 }
700 700
                 if ($xml) {
@@ -873,7 +873,7 @@  discard block
 block discarded – undo
873 873
             // Retain current PID.
874 874
             $cPid = ($this->cPid ? $this->cPid : $this->pid);
875 875
             if (!$cPid) {
876
-                Helper::devLog('Invalid PID ' . $cPid . ' for structure definitions', DEVLOG_SEVERITY_ERROR);
876
+                Helper::devLog('Invalid PID '.$cPid.' for structure definitions', DEVLOG_SEVERITY_ERROR);
877 877
                 $this->thumbnailLoaded = TRUE;
878 878
                 return $this->thumbnail;
879 879
             }
@@ -911,7 +911,7 @@  discard block
 block discarded – undo
911 911
                 if (!empty($resArray['thumbnail'])) {
912 912
                     $strctType = Helper::getIndexNameFromUid($resArray['thumbnail'], 'tx_dlf_structures', $cPid);
913 913
                     // Check if this document has a structure element of the desired type.
914
-                    $strctIds = $this->mets->xpath('./mets:structMap[@TYPE="LOGICAL"]//mets:div[@TYPE="' . $strctType . '"]/@ID');
914
+                    $strctIds = $this->mets->xpath('./mets:structMap[@TYPE="LOGICAL"]//mets:div[@TYPE="'.$strctType.'"]/@ID');
915 915
                     if (!empty($strctIds)) {
916 916
                         $strctId = (string) $strctIds[0];
917 917
                     }
@@ -928,7 +928,7 @@  discard block
 block discarded – undo
928 928
                     $this->thumbnail = $this->getFileLocation($this->physicalStructureInfo[$this->physicalStructure[1]]['files'][$extConf['fileGrpThumbs']]);
929 929
                 }
930 930
             } else {
931
-                Helper::devLog('No structure of type "' . $metadata['type'][0] . '" found in database', DEVLOG_SEVERITY_ERROR);
931
+                Helper::devLog('No structure of type "'.$metadata['type'][0].'" found in database', DEVLOG_SEVERITY_ERROR);
932 932
             }
933 933
             $this->thumbnailLoaded = TRUE;
934 934
         }
Please login to merge, or discard this patch.
Classes/Common/IiifManifest.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -113,10 +113,10 @@  discard block
 block discarded – undo
113 113
             $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
114 114
                 'tx_dlf_metadataformat.xpath AS querypath',
115 115
                 'tx_dlf_metadata,tx_dlf_metadataformat,tx_dlf_formats',
116
-                'tx_dlf_metadata.pid=' . intval($pid)
117
-                    . ' AND tx_dlf_metadataformat.pid=' . intval($pid)
116
+                'tx_dlf_metadata.pid='.intval($pid)
117
+                    . ' AND tx_dlf_metadataformat.pid='.intval($pid)
118 118
                     . ' AND ((tx_dlf_metadata.uid=tx_dlf_metadataformat.parent_id AND tx_dlf_metadataformat.encoded=tx_dlf_formats.uid'
119
-                    . ' AND tx_dlf_metadata.index_name="record_id" AND tx_dlf_formats.type=' . $GLOBALS['TYPO3_DB']->fullQuoteStr($this->getIiifVersion(), 'tx_dlf_formats') . ') OR tx_dlf_metadata.format=0)'
119
+                    . ' AND tx_dlf_metadata.index_name="record_id" AND tx_dlf_formats.type='.$GLOBALS['TYPO3_DB']->fullQuoteStr($this->getIiifVersion(), 'tx_dlf_formats').') OR tx_dlf_metadata.format=0)'
120 120
                     . Helper::whereClause('tx_dlf_metadata', TRUE)
121 121
                     . Helper::whereClause('tx_dlf_metadataformat')
122 122
                     . Helper::whereClause('tx_dlf_formats')
@@ -620,10 +620,10 @@  discard block
 block discarded – undo
620 620
         $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
621 621
             'tx_dlf_metadata.index_name AS index_name,tx_dlf_metadataformat.xpath AS xpath,tx_dlf_metadataformat.xpath_sorting AS xpath_sorting,tx_dlf_metadata.is_sortable AS is_sortable,tx_dlf_metadata.default_value AS default_value,tx_dlf_metadata.format AS format',
622 622
             'tx_dlf_metadata,tx_dlf_metadataformat,tx_dlf_formats',
623
-            'tx_dlf_metadata.pid=' . intval($cPid)
624
-                . ' AND tx_dlf_metadataformat.pid=' . intval($cPid)
625
-                . ' AND ((tx_dlf_metadata.uid=tx_dlf_metadataformat.parent_id AND tx_dlf_metadataformat.encoded=tx_dlf_formats.uid AND tx_dlf_formats.type=' . $GLOBALS['TYPO3_DB']->fullQuoteStr($this->getIiifVersion(), 'tx_dlf_formats') . ') OR tx_dlf_metadata.format=0)'
626
-                . Helper::whereClause('tx_dlf_metadata', TRUE) . Helper::whereClause('tx_dlf_metadataformat') . Helper::whereClause('tx_dlf_formats')
623
+            'tx_dlf_metadata.pid='.intval($cPid)
624
+                . ' AND tx_dlf_metadataformat.pid='.intval($cPid)
625
+                . ' AND ((tx_dlf_metadata.uid=tx_dlf_metadataformat.parent_id AND tx_dlf_metadataformat.encoded=tx_dlf_formats.uid AND tx_dlf_formats.type='.$GLOBALS['TYPO3_DB']->fullQuoteStr($this->getIiifVersion(), 'tx_dlf_formats').') OR tx_dlf_metadata.format=0)'
626
+                . Helper::whereClause('tx_dlf_metadata', TRUE).Helper::whereClause('tx_dlf_metadataformat').Helper::whereClause('tx_dlf_formats')
627 627
         );
628 628
         $iiifResource = $this->iiif->getContainedResourceById($id);
629 629
         while ($resArray = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($result)) {
@@ -649,16 +649,16 @@  discard block
 block discarded – undo
649 649
                     && ($values = $iiifResource->jsonPath($resArray['xpath_sorting']) != NULL)
650 650
                 ) {
651 651
                     if ($values instanceof string) {
652
-                        $metadata[$resArray['index_name'] . '_sorting'][0] = [trim((string) $values)];
652
+                        $metadata[$resArray['index_name'].'_sorting'][0] = [trim((string) $values)];
653 653
                     } elseif ($values instanceof JSONPath && is_array($values->data()) && count($values->data() > 1)) {
654 654
                         $metadata[$resArray['index_name']] = [];
655 655
                         foreach ($values->data() as $value) {
656
-                            $metadata[$resArray['index_name'] . '_sorting'][0] = trim((string) $value);
656
+                            $metadata[$resArray['index_name'].'_sorting'][0] = trim((string) $value);
657 657
                         }
658 658
                     }
659 659
                 }
660
-                if (empty($metadata[$resArray['index_name'] . '_sorting'][0])) {
661
-                    $metadata[$resArray['index_name'] . '_sorting'][0] = $metadata[$resArray['index_name']][0];
660
+                if (empty($metadata[$resArray['index_name'].'_sorting'][0])) {
661
+                    $metadata[$resArray['index_name'].'_sorting'][0] = $metadata[$resArray['index_name']][0];
662 662
                 }
663 663
             }
664 664
         }
@@ -782,7 +782,7 @@  discard block
 block discarded – undo
782 782
                     }
783 783
                 }
784 784
             } else {
785
-                Helper::devLog('Invalid structure resource @id "' . $id . '"', DEVLOG_SEVERITY_WARNING);
785
+                Helper::devLog('Invalid structure resource @id "'.$id.'"', DEVLOG_SEVERITY_WARNING);
786 786
                 return $rawText;
787 787
             }
788 788
             $this->rawTextArray[$id] = $rawText;
@@ -829,7 +829,7 @@  discard block
 block discarded – undo
829 829
                 return TRUE;
830 830
             }
831 831
         } else {
832
-            Helper::devLog('Could not load IIIF manifest from "' . $location . '"', self::$extKey, SYSLOG_SEVERITY_ERROR);
832
+            Helper::devLog('Could not load IIIF manifest from "'.$location.'"', self::$extKey, SYSLOG_SEVERITY_ERROR);
833 833
         }
834 834
     }
835 835
 
Please login to merge, or discard this patch.
Classes/Common/Helper.php 1 patch
Spacing   +56 added lines, -56 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
                 if (!preg_match('/[0-9]{8}-[0-9]{1}/i', $id)) {
119 119
                     return FALSE;
120 120
                 } elseif ($checksum == 10) {
121
-                    return self::checkIdentifier(($digits + 1) . substr($id, -2, 2), 'SWD');
121
+                    return self::checkIdentifier(($digits + 1).substr($id, -2, 2), 'SWD');
122 122
                 } elseif (substr($id, -1, 1) != $checksum) {
123 123
                     return FALSE;
124 124
                 }
@@ -165,9 +165,9 @@  discard block
 block discarded – undo
165 165
         $iv = substr(md5($GLOBALS['TYPO3_CONF_VARS']['SYS']['encryptionKey']), 0, openssl_cipher_iv_length('BF-CFB'));
166 166
         $decrypted = openssl_decrypt($encrypted, 'BF-CFB', substr($GLOBALS['TYPO3_CONF_VARS']['SYS']['encryptionKey'], 0, 56), 0, $iv);
167 167
         $salt = substr($hash, 0, 10);
168
-        $hashed = $salt . substr(sha1($salt . $decrypted), -10);
168
+        $hashed = $salt.substr(sha1($salt.$decrypted), -10);
169 169
         if ($hashed !== $hash) {
170
-            self::devLog('Invalid hash "' . $hash . '" given for decryption', DEVLOG_SEVERITY_WARNING);
170
+            self::devLog('Invalid hash "'.$hash.'" given for decryption', DEVLOG_SEVERITY_WARNING);
171 171
             return;
172 172
         }
173 173
         return $decrypted;
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
             $args = [];
194 194
             $data = [];
195 195
             if (!empty($stacktrace[1])) {
196
-                $caller = $stacktrace[1]['class'] . $stacktrace[1]['type'] . $stacktrace[1]['function'];
196
+                $caller = $stacktrace[1]['class'].$stacktrace[1]['type'].$stacktrace[1]['function'];
197 197
                 foreach ($stacktrace[1]['args'] as $arg) {
198 198
                     if (is_bool($arg)) {
199 199
                         $args[] = ($arg ? 'TRUE' : 'FALSE');
@@ -205,14 +205,14 @@  discard block
 block discarded – undo
205 205
                         $args[] = '[data]';
206 206
                         $data[] = $arg;
207 207
                     } elseif (is_object($arg)) {
208
-                        $args[] = '[' . get_class($arg) . ']';
208
+                        $args[] = '['.get_class($arg).']';
209 209
                         $data[] = $arg;
210 210
                     }
211 211
                 }
212 212
             }
213
-            $arguments = '(' . implode(', ', $args) . ')';
213
+            $arguments = '('.implode(', ', $args).')';
214 214
             $additionalData = (empty($data) ? FALSE : $data);
215
-            \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('[' . $caller . $arguments . '] ' . $message, self::$extKey, $severity, $additionalData);
215
+            \TYPO3\CMS\Core\Utility\GeneralUtility::devLog('['.$caller.$arguments.'] '.$message, self::$extKey, $severity, $additionalData);
216 216
         }
217 217
     }
218 218
 
@@ -234,7 +234,7 @@  discard block
 block discarded – undo
234 234
         $iv = substr(md5($GLOBALS['TYPO3_CONF_VARS']['SYS']['encryptionKey']), 0, openssl_cipher_iv_length('BF-CFB'));
235 235
         $encrypted = openssl_encrypt($string, 'BF-CFB', substr($GLOBALS['TYPO3_CONF_VARS']['SYS']['encryptionKey'], 0, 56), 0, $iv);
236 236
         $salt = substr(md5(uniqid(rand(), TRUE)), 0, 10);
237
-        $hash = $salt . substr(sha1($salt . $string), -10);
237
+        $hash = $salt.substr(sha1($salt.$string), -10);
238 238
         return ['encrypted' => $encrypted, 'hash' => $hash];
239 239
     }
240 240
 
@@ -287,8 +287,8 @@  discard block
 block discarded – undo
287 287
     public static function getHookObjects($scriptRelPath)
288 288
     {
289 289
         $hookObjects = [];
290
-        if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][self::$extKey . '/' . $scriptRelPath]['hookClass'])) {
291
-            foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][self::$extKey . '/' . $scriptRelPath]['hookClass'] as $classRef) {
290
+        if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][self::$extKey.'/'.$scriptRelPath]['hookClass'])) {
291
+            foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][self::$extKey.'/'.$scriptRelPath]['hookClass'] as $classRef) {
292 292
                 $hookObjects[] = &\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance($classRef);
293 293
             }
294 294
         }
@@ -314,7 +314,7 @@  discard block
 block discarded – undo
314 314
             !$uid
315 315
             || !in_array($table, ['tx_dlf_collections', 'tx_dlf_libraries', 'tx_dlf_metadata', 'tx_dlf_structures', 'tx_dlf_solrcores'])
316 316
         ) {
317
-            self::devLog('Invalid UID "' . $uid . '" or table "' . $table . '"', DEVLOG_SEVERITY_ERROR);
317
+            self::devLog('Invalid UID "'.$uid.'" or table "'.$table.'"', DEVLOG_SEVERITY_ERROR);
318 318
             return '';
319 319
         }
320 320
 
@@ -326,15 +326,15 @@  discard block
 block discarded – undo
326 326
         // Should we check for a specific PID, too?
327 327
         if ($pid !== -1) {
328 328
             $pid = max(intval($pid), 0);
329
-            $where = $queryBuilder->expr()->eq($table . '.pid', $pid);
329
+            $where = $queryBuilder->expr()->eq($table.'.pid', $pid);
330 330
         }
331 331
 
332 332
         // Get index_name from database.
333 333
         $result = $queryBuilder
334
-            ->select($table . '.index_name AS index_name')
334
+            ->select($table.'.index_name AS index_name')
335 335
             ->from($table)
336 336
             ->where(
337
-                $queryBuilder->expr()->eq($table . '.uid', $uid),
337
+                $queryBuilder->expr()->eq($table.'.uid', $uid),
338 338
                 $where,
339 339
                 self::whereExpression($table)
340 340
             )
@@ -344,7 +344,7 @@  discard block
 block discarded – undo
344 344
         if ($resArray = $result->fetch()) {
345 345
             return $resArray['index_name'];
346 346
         } else {
347
-            self::devLog('No "index_name" with UID ' . $uid . ' and PID ' . $pid . ' found in table "' . $table . '"', DEVLOG_SEVERITY_WARNING);
347
+            self::devLog('No "index_name" with UID '.$uid.' and PID '.$pid.' found in table "'.$table.'"', DEVLOG_SEVERITY_WARNING);
348 348
             return '';
349 349
         }
350 350
     }
@@ -363,9 +363,9 @@  discard block
 block discarded – undo
363 363
         // Analyze code and set appropriate ISO table.
364 364
         $isoCode = strtolower(trim($code));
365 365
         if (preg_match('/^[a-z]{3}$/', $isoCode)) {
366
-            $file = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath(self::$extKey) . 'Resources/Private/Data/iso-639-2b.xml';
366
+            $file = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath(self::$extKey).'Resources/Private/Data/iso-639-2b.xml';
367 367
         } elseif (preg_match('/^[a-z]{2}$/', $isoCode)) {
368
-            $file = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath(self::$extKey) . 'Resources/Private/Data/iso-639-1.xml';
368
+            $file = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath(self::$extKey).'Resources/Private/Data/iso-639-1.xml';
369 369
         } else {
370 370
             // No ISO code, return unchanged.
371 371
             return $code;
@@ -382,13 +382,13 @@  discard block
 block discarded – undo
382 382
                 $lang = $GLOBALS['LANG']->getLLL($isoCode, $iso639, FALSE);
383 383
             }
384 384
         } else {
385
-            self::devLog('Unexpected TYPO3_MODE "' . TYPO3_MODE . '"', DEVLOG_SEVERITY_ERROR);
385
+            self::devLog('Unexpected TYPO3_MODE "'.TYPO3_MODE.'"', DEVLOG_SEVERITY_ERROR);
386 386
             return $code;
387 387
         }
388 388
         if (!empty($lang)) {
389 389
             return $lang;
390 390
         } else {
391
-            self::devLog('Language code "' . $code . '" not found in ISO-639 table', DEVLOG_SEVERITY_NOTICE);
391
+            self::devLog('Language code "'.$code.'" not found in ISO-639 table', DEVLOG_SEVERITY_NOTICE);
392 392
             return $code;
393 393
         }
394 394
     }
@@ -416,7 +416,7 @@  discard block
 block discarded – undo
416 416
             } elseif (TYPO3_MODE === 'BE') {
417 417
                 self::$messages = $GLOBALS['LANG']->includeLLFile($file, FALSE, TRUE);
418 418
             } else {
419
-                self::devLog('Unexpected TYPO3_MODE "' . TYPO3_MODE . '"', DEVLOG_SEVERITY_ERROR);
419
+                self::devLog('Unexpected TYPO3_MODE "'.TYPO3_MODE.'"', DEVLOG_SEVERITY_ERROR);
420 420
             }
421 421
         }
422 422
         // Get translation.
@@ -426,7 +426,7 @@  discard block
 block discarded – undo
426 426
             } elseif (TYPO3_MODE === 'BE') {
427 427
                 $translated = $GLOBALS['LANG']->getLLL($key, self::$messages, FALSE);
428 428
             } else {
429
-                self::devLog('Unexpected TYPO3_MODE "' . TYPO3_MODE . '"', DEVLOG_SEVERITY_ERROR);
429
+                self::devLog('Unexpected TYPO3_MODE "'.TYPO3_MODE.'"', DEVLOG_SEVERITY_ERROR);
430 430
             }
431 431
         }
432 432
         // Escape HTML characters if applicable.
@@ -453,7 +453,7 @@  discard block
 block discarded – undo
453 453
             !$index_name
454 454
             || !in_array($table, ['tx_dlf_collections', 'tx_dlf_libraries', 'tx_dlf_metadata', 'tx_dlf_structures', 'tx_dlf_solrcores'])
455 455
         ) {
456
-            self::devLog('Invalid UID ' . $index_name . ' or table "' . $table . '"', DEVLOG_SEVERITY_ERROR);
456
+            self::devLog('Invalid UID '.$index_name.' or table "'.$table.'"', DEVLOG_SEVERITY_ERROR);
457 457
             return '';
458 458
         }
459 459
 
@@ -465,14 +465,14 @@  discard block
 block discarded – undo
465 465
         // Should we check for a specific PID, too?
466 466
         if ($pid !== -1) {
467 467
             $pid = max(intval($pid), 0);
468
-            $where = $queryBuilder->expr()->eq($table . '.pid', $pid);
468
+            $where = $queryBuilder->expr()->eq($table.'.pid', $pid);
469 469
         }
470 470
         // Get index_name from database.
471 471
         $result = $queryBuilder
472
-            ->select($table . '.uid AS uid')
472
+            ->select($table.'.uid AS uid')
473 473
             ->from($table)
474 474
             ->where(
475
-                $queryBuilder->expr()->eq($table . '.index_name', $queryBuilder->expr()->literal($index_name)),
475
+                $queryBuilder->expr()->eq($table.'.index_name', $queryBuilder->expr()->literal($index_name)),
476 476
                 $where,
477 477
                 self::whereExpression($table)
478 478
             )
@@ -484,7 +484,7 @@  discard block
 block discarded – undo
484 484
         if (count($allResults) == 1) {
485 485
             return $allResults[0]['uid'];
486 486
         } else {
487
-            self::devLog('No UID for given index_name "' . $index_name . '" and PID ' . $pid . ' found in table "' . $table . '"', DEVLOG_SEVERITY_WARNING);
487
+            self::devLog('No UID for given index_name "'.$index_name.'" and PID '.$pid.' found in table "'.$table.'"', DEVLOG_SEVERITY_WARNING);
488 488
             return '';
489 489
         }
490 490
     }
@@ -542,7 +542,7 @@  discard block
 block discarded – undo
542 542
             '-' => 39,
543 543
             ':' => 17,
544 544
         ];
545
-        $urn = strtolower($base . $id);
545
+        $urn = strtolower($base.$id);
546 546
         if (preg_match('/[^a-z0-9:-]/', $urn)) {
547 547
             self::devLog('Invalid chars in given parameters', DEVLOG_SEVERITY_WARNING);
548 548
             return '';
@@ -556,7 +556,7 @@  discard block
 block discarded – undo
556 556
             $checksum += ($i + 1) * intval(substr($digits, $i, 1));
557 557
         }
558 558
         $checksum = substr(intval($checksum / intval(substr($digits, -1, 1))), -1, 1);
559
-        return $base . $id . $checksum;
559
+        return $base.$id.$checksum;
560 560
     }
561 561
 
562 562
     /**
@@ -587,7 +587,7 @@  discard block
 block discarded – undo
587 587
         // Cast to string for security reasons.
588 588
         $key = (string) $key;
589 589
         if (!$key) {
590
-            self::devLog('Invalid key "' . $key . '" for session data retrieval', DEVLOG_SEVERITY_WARNING);
590
+            self::devLog('Invalid key "'.$key.'" for session data retrieval', DEVLOG_SEVERITY_WARNING);
591 591
             return;
592 592
         }
593 593
         // Get the session data.
@@ -596,7 +596,7 @@  discard block
 block discarded – undo
596 596
         } elseif (TYPO3_MODE === 'BE') {
597 597
             return $GLOBALS['BE_USER']->getSessionData($key);
598 598
         } else {
599
-            self::devLog('Unexpected TYPO3_MODE "' . TYPO3_MODE . '"', DEVLOG_SEVERITY_ERROR);
599
+            self::devLog('Unexpected TYPO3_MODE "'.TYPO3_MODE.'"', DEVLOG_SEVERITY_ERROR);
600 600
             return;
601 601
         }
602 602
     }
@@ -692,19 +692,19 @@  discard block
 block discarded – undo
692 692
             foreach ($flashMessages as $flashMessage) {
693 693
                 $messageTitle = $flashMessage->getTitle();
694 694
                 $markup = [];
695
-                $markup[] = '<div class="alert ' . htmlspecialchars($flashMessage->getClass()) . '">';
695
+                $markup[] = '<div class="alert '.htmlspecialchars($flashMessage->getClass()).'">';
696 696
                 $markup[] = '    <div class="media">';
697 697
                 $markup[] = '        <div class="media-left">';
698 698
                 $markup[] = '            <span class="fa-stack fa-lg">';
699 699
                 $markup[] = '                <i class="fa fa-circle fa-stack-2x"></i>';
700
-                $markup[] = '                <i class="fa fa-' . htmlspecialchars($flashMessage->getIconName()) . ' fa-stack-1x"></i>';
700
+                $markup[] = '                <i class="fa fa-'.htmlspecialchars($flashMessage->getIconName()).' fa-stack-1x"></i>';
701 701
                 $markup[] = '            </span>';
702 702
                 $markup[] = '        </div>';
703 703
                 $markup[] = '        <div class="media-body">';
704 704
                 if (!empty($messageTitle)) {
705
-                    $markup[] = '            <h4 class="alert-title">' . htmlspecialchars($messageTitle) . '</h4>';
705
+                    $markup[] = '            <h4 class="alert-title">'.htmlspecialchars($messageTitle).'</h4>';
706 706
                 }
707
-                $markup[] = '            <p class="alert-message">' . $flashMessage->getMessage() . '</p>'; // Removed htmlspecialchars() here.
707
+                $markup[] = '            <p class="alert-message">'.$flashMessage->getMessage().'</p>'; // Removed htmlspecialchars() here.
708 708
                 $markup[] = '        </div>';
709 709
                 $markup[] = '    </div>';
710 710
                 $markup[] = '</div>';
@@ -730,7 +730,7 @@  discard block
 block discarded – undo
730 730
         // Cast to string for security reasons.
731 731
         $key = (string) $key;
732 732
         if (!$key) {
733
-            self::devLog('Invalid key "' . $key . '" for session data saving', DEVLOG_SEVERITY_WARNING);
733
+            self::devLog('Invalid key "'.$key.'" for session data saving', DEVLOG_SEVERITY_WARNING);
734 734
             return FALSE;
735 735
         }
736 736
         // Save value in session data.
@@ -742,7 +742,7 @@  discard block
 block discarded – undo
742 742
             $GLOBALS['BE_USER']->setAndSaveSessionData($key, $value);
743 743
             return TRUE;
744 744
         } else {
745
-            self::devLog('Unexpected TYPO3_MODE "' . TYPO3_MODE . '"', DEVLOG_SEVERITY_ERROR);
745
+            self::devLog('Unexpected TYPO3_MODE "'.TYPO3_MODE.'"', DEVLOG_SEVERITY_ERROR);
746 746
             return FALSE;
747 747
         }
748 748
     }
@@ -765,7 +765,7 @@  discard block
 block discarded – undo
765 765
         // Sanitize input.
766 766
         $pid = max(intval($pid), 0);
767 767
         if (!$pid) {
768
-            self::devLog('Invalid PID ' . $pid . ' for translation', DEVLOG_SEVERITY_WARNING);
768
+            self::devLog('Invalid PID '.$pid.' for translation', DEVLOG_SEVERITY_WARNING);
769 769
             return $index_name;
770 770
         }
771 771
         // Check if "index_name" is an UID.
@@ -783,13 +783,13 @@  discard block
 block discarded – undo
783 783
         // First fetch the uid of the received index_name
784 784
         $result = $queryBuilder
785 785
             ->select(
786
-                $table . '.uid AS uid',
787
-                $table . '.l18n_parent AS l18n_parent'
786
+                $table.'.uid AS uid',
787
+                $table.'.l18n_parent AS l18n_parent'
788 788
             )
789 789
             ->from($table)
790 790
             ->where(
791
-                $queryBuilder->expr()->eq($table . '.pid', $pid),
792
-                $queryBuilder->expr()->eq($table . '.index_name', $queryBuilder->expr()->literal($index_name)),
791
+                $queryBuilder->expr()->eq($table.'.pid', $pid),
792
+                $queryBuilder->expr()->eq($table.'.index_name', $queryBuilder->expr()->literal($index_name)),
793 793
                 self::whereExpression($table, TRUE)
794 794
             )
795 795
             ->setMaxResults(1)
@@ -802,12 +802,12 @@  discard block
 block discarded – undo
802 802
             $resArray = $allResults[0];
803 803
 
804 804
             $result = $queryBuilder
805
-                ->select($table . '.index_name AS index_name')
805
+                ->select($table.'.index_name AS index_name')
806 806
                 ->from($table)
807 807
                 ->where(
808
-                    $queryBuilder->expr()->eq($table . '.pid', $pid),
809
-                    $queryBuilder->expr()->eq($table . '.uid', $resArray['l18n_parent']),
810
-                    $queryBuilder->expr()->eq($table . '.sys_language_uid', intval($GLOBALS['TSFE']->sys_language_content)),
808
+                    $queryBuilder->expr()->eq($table.'.pid', $pid),
809
+                    $queryBuilder->expr()->eq($table.'.uid', $resArray['l18n_parent']),
810
+                    $queryBuilder->expr()->eq($table.'.sys_language_uid', intval($GLOBALS['TSFE']->sys_language_content)),
811 811
                     self::whereExpression($table, TRUE)
812 812
                 )
813 813
                 ->setMaxResults(1)
@@ -825,14 +825,14 @@  discard block
 block discarded – undo
825 825
         if (empty($labels[$table][$pid][$GLOBALS['TSFE']->sys_language_content][$index_name])) {
826 826
             // Check if this table is allowed for translation.
827 827
             if (in_array($table, ['tx_dlf_collections', 'tx_dlf_libraries', 'tx_dlf_metadata', 'tx_dlf_structures'])) {
828
-                $additionalWhere = $queryBuilder->expr()->in($table . '.sys_language_uid', [-1, 0]);
828
+                $additionalWhere = $queryBuilder->expr()->in($table.'.sys_language_uid', [-1, 0]);
829 829
                 if ($GLOBALS['TSFE']->sys_language_content > 0) {
830 830
                     $additionalWhere = $queryBuilder->expr()->andX(
831 831
                         $queryBuilder->expr()->orX(
832
-                            $queryBuilder->expr()->in($table . '.sys_language_uid', [-1, 0]),
833
-                            $queryBuilder->expr()->eq($table . '.sys_language_uid', intval($GLOBALS['TSFE']->sys_language_content))
832
+                            $queryBuilder->expr()->in($table.'.sys_language_uid', [-1, 0]),
833
+                            $queryBuilder->expr()->eq($table.'.sys_language_uid', intval($GLOBALS['TSFE']->sys_language_content))
834 834
                         ),
835
-                        $queryBuilder->expr()->eq($table . '.l18n_parent', 0)
835
+                        $queryBuilder->expr()->eq($table.'.l18n_parent', 0)
836 836
                     );
837 837
                 }
838 838
 
@@ -841,7 +841,7 @@  discard block
 block discarded – undo
841 841
                     ->select('*')
842 842
                     ->from($table)
843 843
                     ->where(
844
-                        $queryBuilder->expr()->eq($table . '.pid', $pid),
844
+                        $queryBuilder->expr()->eq($table.'.pid', $pid),
845 845
                         $additionalWhere,
846 846
                         self::whereExpression($table, TRUE)
847 847
                     )
@@ -859,10 +859,10 @@  discard block
 block discarded – undo
859 859
                         }
860 860
                     }
861 861
                 } else {
862
-                    self::devLog('No translation with PID ' . $pid . ' available in table "' . $table . '" or translation not accessible', DEVLOG_SEVERITY_NOTICE);
862
+                    self::devLog('No translation with PID '.$pid.' available in table "'.$table.'" or translation not accessible', DEVLOG_SEVERITY_NOTICE);
863 863
                 }
864 864
             } else {
865
-                self::devLog('No translations available for table "' . $table . '"', DEVLOG_SEVERITY_WARNING);
865
+                self::devLog('No translations available for table "'.$table.'"', DEVLOG_SEVERITY_WARNING);
866 866
             }
867 867
         }
868 868
 
@@ -906,7 +906,7 @@  discard block
 block discarded – undo
906 906
         } elseif (TYPO3_MODE === 'BE') {
907 907
             return \TYPO3\CMS\Backend\Utility\BackendUtility::deleteClause($table);
908 908
         } else {
909
-            self::devLog('Unexpected TYPO3_MODE "' . TYPO3_MODE . '"', DEVLOG_SEVERITY_ERROR);
909
+            self::devLog('Unexpected TYPO3_MODE "'.TYPO3_MODE.'"', DEVLOG_SEVERITY_ERROR);
910 910
             return ' AND 1=-1';
911 911
         }
912 912
     }
@@ -930,7 +930,7 @@  discard block
 block discarded – undo
930 930
         if (TYPO3_MODE === 'FE') {
931 931
             // Table "tx_dlf_formats" always has PID 0.
932 932
             if ($table == 'tx_dlf_formats') {
933
-                return $expressionBuilder->eq($table . '.' . $GLOBALS['TCA'][$table]['ctrl']['delete'], 0);
933
+                return $expressionBuilder->eq($table.'.'.$GLOBALS['TCA'][$table]['ctrl']['delete'], 0);
934 934
             }
935 935
 
936 936
             // Should we ignore the record's hidden flag?
@@ -952,9 +952,9 @@  discard block
 block discarded – undo
952 952
             }
953 953
             return $expression;
954 954
         } elseif (TYPO3_MODE === 'BE') {
955
-            return $expressionBuilder->eq($table . '.' . $GLOBALS['TCA'][$table]['ctrl']['delete'], 0);
955
+            return $expressionBuilder->eq($table.'.'.$GLOBALS['TCA'][$table]['ctrl']['delete'], 0);
956 956
         } else {
957
-            self::devLog('Unexpected TYPO3_MODE "' . TYPO3_MODE . '"', DEVLOG_SEVERITY_ERROR);
957
+            self::devLog('Unexpected TYPO3_MODE "'.TYPO3_MODE.'"', DEVLOG_SEVERITY_ERROR);
958 958
             return '1=-1';
959 959
         }
960 960
     }
Please login to merge, or discard this patch.