Passed
Pull Request — master (#85)
by Alexander
03:00
created
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.
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.
Classes/Plugin/Metadata.php 3 patches
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -28,8 +28,7 @@  discard block
 block discarded – undo
28 28
  * @subpackage dlf
29 29
  * @access public
30 30
  */
31
-class Metadata extends \Kitodo\Dlf\Common\AbstractPlugin
32
-{
31
+class Metadata extends \Kitodo\Dlf\Common\AbstractPlugin {
33 32
     public $scriptRelPath = 'Classes/Plugin/Metadata.php';
34 33
 
35 34
     /**
@@ -50,8 +49,7 @@  discard block
 block discarded – undo
50 49
      *
51 50
      * @return string The content that is displayed on the website
52 51
      */
53
-    public function main($content, $conf)
54
-    {
52
+    public function main($content, $conf) {
55 53
         $this->init($conf);
56 54
         // Turn cache on.
57 55
         $this->setCache(true);
@@ -156,8 +154,7 @@  discard block
 block discarded – undo
156 154
      *
157 155
      * @return string The metadata array ready for output
158 156
      */
159
-    protected function printMetadata(array $metadataArray, $useOriginalIiifManifestMetadata = false)
160
-    {
157
+    protected function printMetadata(array $metadataArray, $useOriginalIiifManifestMetadata = false) {
161 158
         // Load template file.
162 159
         $this->getTemplate();
163 160
         $output = '';
Please login to merge, or discard this patch.
Upper-Lower-Casing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -54,10 +54,10 @@  discard block
 block discarded – undo
54 54
     {
55 55
         $this->init($conf);
56 56
         // Turn cache on.
57
-        $this->setCache(true);
57
+        $this->setCache(TRUE);
58 58
         // Load current document.
59 59
         $this->loadDocument();
60
-        if ($this->doc === null) {
60
+        if ($this->doc === NULL) {
61 61
             // Quit without doing anything if required variables are not set.
62 62
             return $content;
63 63
         } else {
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
      *
157 157
      * @return string The metadata array ready for output
158 158
      */
159
-    protected function printMetadata(array $metadataArray, $useOriginalIiifManifestMetadata = false)
159
+    protected function printMetadata(array $metadataArray, $useOriginalIiifManifestMetadata = FALSE)
160 160
     {
161 161
         // Load template file.
162 162
         $this->getTemplate();
@@ -298,7 +298,7 @@  discard block
 block discarded – undo
298 298
                         if ($index_name == 'title') {
299 299
                             // Get title of parent document if needed.
300 300
                             if (empty($value) && $this->conf['getTitle'] && $this->doc->parentId) {
301
-                                $superiorTitle = Document::getTitle($this->doc->parentId, true);
301
+                                $superiorTitle = Document::getTitle($this->doc->parentId, TRUE);
302 302
                                 if (!empty($superiorTitle)) {
303 303
                                     $value = '[' . $superiorTitle . ']';
304 304
                                 }
@@ -308,7 +308,7 @@  discard block
 block discarded – undo
308 308
                                 // Link title to pageview.
309 309
                                 if ($this->conf['linkTitle'] && $metadata['_id']) {
310 310
                                     $details = $this->doc->getLogicalStructure($metadata['_id']);
311
-                                    $value = $this->pi_linkTP($value, [$this->prefixId => ['id' => $this->doc->uid, 'page' => (!empty($details['points']) ? intval($details['points']) : 1)]], true, $this->conf['targetPid']);
311
+                                    $value = $this->pi_linkTP($value, [$this->prefixId => ['id' => $this->doc->uid, 'page' => (!empty($details['points']) ? intval($details['points']) : 1)]], TRUE, $this->conf['targetPid']);
312 312
                                 }
313 313
                             }
314 314
                         } elseif ($index_name == 'owner' && !empty($value)) {
@@ -354,6 +354,6 @@  discard block
 block discarded – undo
354 354
                 $output .= $this->templateService->substituteMarkerArray($subpart['block'], $markerArray);
355 355
             }
356 356
         }
357
-        return $this->templateService->substituteSubpart($this->template, '###BLOCK###', $output, true);
357
+        return $this->templateService->substituteSubpart($this->template, '###BLOCK###', $output, TRUE);
358 358
     }
359 359
 }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
             array_unshift($metadata, $data);
131 131
         }
132 132
         if (empty($metadata)) {
133
-            $this->logger->warning('No metadata found for document with UID ' . $this->doc->uid);
133
+            $this->logger->warning('No metadata found for document with UID '.$this->doc->uid);
134 134
             return $content;
135 135
         }
136 136
         ksort($metadata);
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
             $iiifLink['value.']['wrap'] = '<dd>|</dd>';
185 185
             foreach ($metadataArray as $metadata) {
186 186
                 foreach ($metadata as $key => $group) {
187
-                    $markerArray['###METADATA###'] = '<span class="tx-dlf-metadata-group">' . $this->pi_getLL($key) . '</span>';
187
+                    $markerArray['###METADATA###'] = '<span class="tx-dlf-metadata-group">'.$this->pi_getLL($key).'</span>';
188 188
                     // Reset content object's data array.
189 189
                     $this->cObj->data = $cObjData;
190 190
                     if (!is_array($group)) {
@@ -302,7 +302,7 @@  discard block
 block discarded – undo
302 302
                             if (empty($value) && $this->conf['getTitle'] && $this->doc->parentId) {
303 303
                                 $superiorTitle = Document::getTitle($this->doc->parentId, true);
304 304
                                 if (!empty($superiorTitle)) {
305
-                                    $value = '[' . $superiorTitle . ']';
305
+                                    $value = '['.$superiorTitle.']';
306 306
                                 }
307 307
                             }
308 308
                             if (!empty($value)) {
Please login to merge, or discard this patch.
Classes/Plugin/Eid/PageViewProxy.php 2 patches
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
             if (!empty($fetchedHeaderString)) {
57 57
                 $fetchedHeader = explode("\n", $fetchedHeaderString);
58 58
                 foreach ($fetchedHeader as $headerline) {
59
-                    if (stripos($headerline, 'Last-Modified:') !== false) {
59
+                    if (stripos($headerline, 'Last-Modified:') !== FALSE) {
60 60
                         $lastModified = trim(substr($headerline, strpos($headerline, ':') + 1));
61 61
                         break;
62 62
                     }
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -24,8 +24,7 @@  discard block
 block discarded – undo
24 24
  * @subpackage dlf
25 25
  * @access public
26 26
  */
27
-class PageViewProxy
28
-{
27
+class PageViewProxy {
29 28
 
30 29
     /**
31 30
      * The main method of the eID script
@@ -35,8 +34,7 @@  discard block
 block discarded – undo
35 34
      * @param ServerRequestInterface $request
36 35
      * @return ResponseInterface
37 36
      */
38
-    public function main(ServerRequestInterface $request)
39
-    {
37
+    public function main(ServerRequestInterface $request) {
40 38
         // header parameter for getUrl(); allowed values 0,1,2; default 0
41 39
         $header = (int) $request->getQueryParams()['header'];
42 40
         $header = \TYPO3\CMS\Core\Utility\MathUtility::forceIntegerInRange($header, 0, 2, 0);
Please login to merge, or discard this patch.
Classes/Plugin/Calendar.php 3 patches
Braces   +5 added lines, -10 removed lines patch added patch discarded remove patch
@@ -25,8 +25,7 @@  discard block
 block discarded – undo
25 25
  * @subpackage dlf
26 26
  * @access public
27 27
  */
28
-class Calendar extends \Kitodo\Dlf\Common\AbstractPlugin
29
-{
28
+class Calendar extends \Kitodo\Dlf\Common\AbstractPlugin {
30 29
     public $scriptRelPath = 'Classes/Plugin/Calendar.php';
31 30
 
32 31
     /**
@@ -47,8 +46,7 @@  discard block
 block discarded – undo
47 46
      *
48 47
      * @return string The content that is displayed on the website
49 48
      */
50
-    public function main($content, $conf)
51
-    {
49
+    public function main($content, $conf) {
52 50
         $this->init($conf);
53 51
 
54 52
         // Set initial document (anchor or year file) if configured.
@@ -95,8 +93,7 @@  discard block
 block discarded – undo
95 93
      *
96 94
      * @return string The content that is displayed on the website
97 95
      */
98
-    public function calendar($content, $conf)
99
-    {
96
+    public function calendar($content, $conf) {
100 97
         $this->init($conf);
101 98
         // Load current document.
102 99
         $this->loadDocument();
@@ -241,8 +238,7 @@  discard block
 block discarded – undo
241 238
      *
242 239
      * @return string Content for template subpart
243 240
      */
244
-    protected function getCalendarYear($calendarIssuesByMonth, $year, $firstMonth = 1, $lastMonth = 12)
245
-    {
241
+    protected function getCalendarYear($calendarIssuesByMonth, $year, $firstMonth = 1, $lastMonth = 12) {
246 242
         // Get subpart templates.
247 243
         $subPartContent = '';
248 244
         $subParts['month'] = $this->templateService->getSubpart($this->template, '###CALMONTH###');
@@ -360,8 +356,7 @@  discard block
 block discarded – undo
360 356
      *
361 357
      * @return string The content that is displayed on the website
362 358
      */
363
-    public function years($content, $conf)
364
-    {
359
+    public function years($content, $conf) {
365 360
         $this->init($conf);
366 361
         // Load current document.
367 362
         $this->loadDocument();
Please login to merge, or discard this patch.
Upper-Lower-Casing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 
59 59
         // Load current document.
60 60
         $this->loadDocument();
61
-        if ($this->doc === null) {
61
+        if ($this->doc === NULL) {
62 62
             // Quit without doing anything if required variables are not set.
63 63
             return $content;
64 64
         }
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
         $this->init($conf);
101 101
         // Load current document.
102 102
         $this->loadDocument();
103
-        if ($this->doc === null) {
103
+        if ($this->doc === NULL) {
104 104
             // Quit without doing anything if required variables are not set.
105 105
             return $content;
106 106
         }
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
                 $title = $resArray['title'];
138 138
             } else {
139 139
                 $title = !empty($resArray['label']) ? $resArray['label'] : $resArray['orderlabel'];
140
-                if (strtotime($title) !== false) {
140
+                if (strtotime($title) !== FALSE) {
141 141
                     $title = strftime('%x', strtotime($title));
142 142
                 }
143 143
             }
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
         $calendarIssuesByYear = [];
152 152
         foreach ($issues as $issue) {
153 153
             $dateTimestamp = strtotime($issue['year']);
154
-            if ($dateTimestamp !== false) {
154
+            if ($dateTimestamp !== FALSE) {
155 155
                 $_year = date('Y', $dateTimestamp);
156 156
                 $_month = date('n', $dateTimestamp);
157 157
                 $_day = date('j', $dateTimestamp);
@@ -371,7 +371,7 @@  discard block
 block discarded – undo
371 371
         $this->init($conf);
372 372
         // Load current document.
373 373
         $this->loadDocument();
374
-        if ($this->doc === null) {
374
+        if ($this->doc === NULL) {
375 375
             // Quit without doing anything if required variables are not set.
376 376
             return $content;
377 377
         }
Please login to merge, or discard this patch.
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
                 $_day = date('j', $dateTimestamp);
158 158
                 $calendarIssuesByYear[$_year][$_month][$_day][] = $issue;
159 159
             } else {
160
-                $this->logger->warning('Document with UID ' . $issue['uid'] . 'has no valid date of publication');
160
+                $this->logger->warning('Document with UID '.$issue['uid'].'has no valid date of publication');
161 161
             }
162 162
         }
163 163
         // Sort by years.
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
             'parameter' => $GLOBALS['TSFE']->id,
207 207
             'forceAbsoluteUrl' => !empty($this->conf['forceAbsoluteUrl']) ? 1 : 0,
208 208
             'forceAbsoluteUrl.' => ['scheme' => !empty($this->conf['forceAbsoluteUrl']) && !empty($this->conf['forceAbsoluteUrlHttps']) ? 'https' : 'http'],
209
-            'additionalParams' => '&' . $this->prefixId . '[id]=' . urlencode($this->doc->uid),
209
+            'additionalParams' => '&'.$this->prefixId.'[id]='.urlencode($this->doc->uid),
210 210
         ];
211 211
         $linkTitleData = $this->doc->getTitledata();
212 212
         $linkTitle = !empty($linkTitleData['mets_orderlabel'][0]) ? $linkTitleData['mets_orderlabel'][0] : $linkTitleData['mets_label'][0];
@@ -217,9 +217,9 @@  discard block
 block discarded – undo
217 217
             'parameter' => $GLOBALS['TSFE']->id,
218 218
             'forceAbsoluteUrl' => !empty($this->conf['forceAbsoluteUrl']) ? 1 : 0,
219 219
             'forceAbsoluteUrl.' => ['scheme' => !empty($this->conf['forceAbsoluteUrl']) && !empty($this->conf['forceAbsoluteUrlHttps']) ? 'https' : 'http'],
220
-            'additionalParams' => '&' . $this->prefixId . '[id]=' . urlencode($this->doc->parentId),
220
+            'additionalParams' => '&'.$this->prefixId.'[id]='.urlencode($this->doc->parentId),
221 221
         ];
222
-        $allYearsLink = $this->cObj->typoLink(htmlspecialchars($this->pi_getLL('allYears', '')) . ' ' . $this->doc->getTitle($this->doc->parentId), $linkConf);
222
+        $allYearsLink = $this->cObj->typoLink(htmlspecialchars($this->pi_getLL('allYears', '')).' '.$this->doc->getTitle($this->doc->parentId), $linkConf);
223 223
         // Fill marker array.
224 224
         $markerArray = [
225 225
             '###CALENDARVIEWACTIVE###' => count($this->allIssues) > 5 ? 'active' : '',
@@ -260,19 +260,19 @@  discard block
 block discarded – undo
260 260
                 '###DAYFRI_NAME###' => strftime('%a', strtotime('last Friday')),
261 261
                 '###DAYSAT_NAME###' => strftime('%a', strtotime('last Saturday')),
262 262
                 '###DAYSUN_NAME###' => strftime('%a', strtotime('last Sunday')),
263
-                '###MONTHNAME###'  => strftime('%B', strtotime($year . '-' . $i . '-1')) . ' ' . $year,
264
-                '###CALYEAR###' => ($i == $firstMonth) ? '<div class="year">' . $year . '</div>' : ''
263
+                '###MONTHNAME###'  => strftime('%B', strtotime($year.'-'.$i.'-1')).' '.$year,
264
+                '###CALYEAR###' => ($i == $firstMonth) ? '<div class="year">'.$year.'</div>' : ''
265 265
             ];
266 266
             // Fill the month markers.
267 267
             $subPartContentMonth = $this->templateService->substituteMarkerArray($subParts['month'], $markerArray);
268 268
             // Reset week content of new month.
269 269
             $subPartContentWeek = '';
270
-            $firstOfMonth = strtotime($year . '-' . $i . '-1');
270
+            $firstOfMonth = strtotime($year.'-'.$i.'-1');
271 271
             $lastOfMonth = strtotime('last day of', ($firstOfMonth));
272 272
             $firstOfMonthStart = strtotime('last Monday', $firstOfMonth);
273 273
             // There are never more than 6 weeks in a month.
274 274
             for ($j = 0; $j <= 5; $j++) {
275
-                $firstDayOfWeek = strtotime('+ ' . $j . ' Week', $firstOfMonthStart);
275
+                $firstDayOfWeek = strtotime('+ '.$j.' Week', $firstOfMonthStart);
276 276
                 $weekArray = [
277 277
                     '###DAYMON###' => '&nbsp;',
278 278
                     '###DAYTUE###' => '&nbsp;',
@@ -284,7 +284,7 @@  discard block
 block discarded – undo
284 284
                 ];
285 285
                 // Every week has seven days. ;-)
286 286
                 for ($k = 0; $k <= 6; $k++) {
287
-                    $currentDayTime = strtotime('+ ' . $k . ' Day', $firstDayOfWeek);
287
+                    $currentDayTime = strtotime('+ '.$k.' Day', $firstDayOfWeek);
288 288
                     if (
289 289
                         $currentDayTime >= $firstOfMonth
290 290
                         && $currentDayTime <= $lastOfMonth
@@ -304,7 +304,7 @@  discard block
 block discarded – undo
304 304
                                             'parameter' => $this->conf['targetPid'],
305 305
                                             'forceAbsoluteUrl' => !empty($this->conf['forceAbsoluteUrl']) ? 1 : 0,
306 306
                                             'forceAbsoluteUrl.' => ['scheme' => !empty($this->conf['forceAbsoluteUrl']) && !empty($this->conf['forceAbsoluteUrlHttps']) ? 'https' : 'http'],
307
-                                            'additionalParams' => '&' . $this->prefixId . '[id]=' . urlencode($issue['uid']),
307
+                                            'additionalParams' => '&'.$this->prefixId.'[id]='.urlencode($issue['uid']),
308 308
                                             'ATagParams' => ' class="title"',
309 309
                                         ];
310 310
                                         $dayLinksText[] = $this->cObj->typoLink($dayLinkLabel, $linkConf);
@@ -316,13 +316,13 @@  discard block
 block discarded – undo
316 316
                             if (!empty($dayLinksText)) {
317 317
                                 $dayLinksList = '<ul>';
318 318
                                 foreach ($dayLinksText as $link) {
319
-                                    $dayLinksList .= '<li>' . $link . '</li>';
319
+                                    $dayLinksList .= '<li>'.$link.'</li>';
320 320
                                 }
321 321
                                 $dayLinksList .= '</ul>';
322 322
                             }
323
-                            $dayLinkDiv = '<div class="issues"><h4>' . strftime('%d', $currentDayTime) . '</h4><div>' . $dayLinksList . '</div></div>';
323
+                            $dayLinkDiv = '<div class="issues"><h4>'.strftime('%d', $currentDayTime).'</h4><div>'.$dayLinksList.'</div></div>';
324 324
                         }
325
-                        switch (strftime('%w', strtotime('+ ' . $k . ' Day', $firstDayOfWeek))) {
325
+                        switch (strftime('%w', strtotime('+ '.$k.' Day', $firstDayOfWeek))) {
326 326
                             case '0':
327 327
                                 $weekArray['###DAYSUN###'] = ((int) $dayLinks === (int) date('j', $currentDayTime)) ? $dayLinkDiv : strftime('%d', $currentDayTime);
328 328
                                 break;
@@ -418,8 +418,8 @@  discard block
 block discarded – undo
418 418
                     'parameter' => $GLOBALS['TSFE']->id,
419 419
                     'forceAbsoluteUrl' => !empty($this->conf['forceAbsoluteUrl']) ? 1 : 0,
420 420
                     'forceAbsoluteUrl.' => ['scheme' => !empty($this->conf['forceAbsoluteUrl']) && !empty($this->conf['forceAbsoluteUrlHttps']) ? 'https' : 'http'],
421
-                    'additionalParams' => '&' . $this->prefixId . '[id]=' . urlencode($year['uid']),
422
-                    'title' => $titleAnchor . ': ' . $year['title']
421
+                    'additionalParams' => '&'.$this->prefixId.'[id]='.urlencode($year['uid']),
422
+                    'title' => $titleAnchor.': '.$year['title']
423 423
                 ];
424 424
                 $yearArray = [
425 425
                     '###YEARNAME###' => $this->cObj->typoLink($year['title'], $linkConf),
@@ -433,9 +433,9 @@  discard block
 block discarded – undo
433 433
             'parameter' => $GLOBALS['TSFE']->id,
434 434
             'forceAbsoluteUrl' => !empty($this->conf['forceAbsoluteUrl']) ? 1 : 0,
435 435
             'forceAbsoluteUrl.' => ['scheme' => !empty($this->conf['forceAbsoluteUrl']) && !empty($this->conf['forceAbsoluteUrlHttps']) ? 'https' : 'http'],
436
-            'additionalParams' => '&' . $this->prefixId . '[id]=' . $this->doc->uid,
436
+            'additionalParams' => '&'.$this->prefixId.'[id]='.$this->doc->uid,
437 437
         ];
438
-        $allYearsLink = $this->cObj->typoLink(htmlspecialchars($this->pi_getLL('allYears', '')) . ' ' . $this->doc->getTitle($this->doc->uid), $linkConf);
438
+        $allYearsLink = $this->cObj->typoLink(htmlspecialchars($this->pi_getLL('allYears', '')).' '.$this->doc->getTitle($this->doc->uid), $linkConf);
439 439
         // Fill markers.
440 440
         $markerArray = [
441 441
             '###LABEL_CHOOSE_YEAR###' => htmlspecialchars($this->pi_getLL('label.please_choose_year')),
Please login to merge, or discard this patch.