Scrutinizer GitHub App not installed

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

Install GitHub App

GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Pull Request — master (#433)
by Sebastian
04:15
created
Configuration/TCA/tx_dlf_collections.php 1 patch
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -156,14 +156,14 @@
 block discarded – undo
156 156
             'label' => 'LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tx_dlf_collections.description',
157 157
             'config' => [
158 158
                 'behaviour' => [
159
-                    'allowLanguageSynchronization' => true
159
+                    'allowLanguageSynchronization' => TRUE
160 160
                 ],
161 161
                 'type' => 'text',
162 162
                 'cols' => 30,
163 163
                 'rows' => 10,
164 164
                 'wrap' => 'virtual',
165 165
                 'default' => '',
166
-                'enableRichtext' => true,
166
+                'enableRichtext' => TRUE,
167 167
             ],
168 168
         ],
169 169
         'thumbnail' => [
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
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
             'label' => 'LLL:EXT:dlf/Resources/Private/Language/Labels.xml:tx_dlf_metadata.wrap',
144 144
             'config' => [
145 145
                 'behaviour' => [
146
-                    'allowLanguageSynchronization' => true
146
+                    'allowLanguageSynchronization' => TRUE
147 147
                 ],
148 148
                 'type' => 'text',
149 149
                 'cols' => 48,
@@ -151,8 +151,8 @@  discard block
 block discarded – undo
151 151
                 'wrap' => 'off',
152 152
                 'eval' => 'trim',
153 153
                 'default' => "key.wrap = <dt>|</dt>\nvalue.required = 1\nvalue.wrap = <dd>|</dd>",
154
-                'fixedFont' => true,
155
-                'enableTabulator' => true
154
+                'fixedFont' => TRUE,
155
+                'enableTabulator' => TRUE
156 156
             ],
157 157
         ],
158 158
         'index_tokenized' => [
Please login to merge, or discard this patch.
Configuration/TCA/tx_dlf_documents.php 1 patch
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -268,10 +268,10 @@
 block discarded – undo
268 268
                 'readOnly' => 1,
269 269
                 'fieldControl' => [
270 270
                     'elementBrowser' => [
271
-                        'disabled' => true
271
+                        'disabled' => TRUE
272 272
                     ]
273 273
                 ],
274
-                'hideDeleteIcon' => true
274
+                'hideDeleteIcon' => TRUE
275 275
             ],
276 276
         ],
277 277
         'volume' => [
Please login to merge, or discard this patch.
ext_localconf.php 1 patch
Upper-Lower-Casing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -30,35 +30,35 @@
 block discarded – undo
30 30
     define('DEVLOG_SEVERITY_ERROR', 3);
31 31
 }
32 32
 // Register plugins.
33
-\Kitodo\Dlf\Hooks\ExtensionManagementUtility::addPItoST43($_EXTKEY, \Kitodo\Dlf\Plugin\AudioPlayer::class, '_audioplayer', 'list_type', true);
34
-\Kitodo\Dlf\Hooks\ExtensionManagementUtility::addPItoST43($_EXTKEY, \Kitodo\Dlf\Plugin\Basket::class, '_basket', 'list_type', false);
35
-\Kitodo\Dlf\Hooks\ExtensionManagementUtility::addPItoST43($_EXTKEY, \Kitodo\Dlf\Plugin\Calendar::class, '_calendar', 'list_type', true);
36
-\Kitodo\Dlf\Hooks\ExtensionManagementUtility::addPItoST43($_EXTKEY, \Kitodo\Dlf\Plugin\Collection::class, '_collection', 'list_type', true);
37
-\Kitodo\Dlf\Hooks\ExtensionManagementUtility::addPItoST43($_EXTKEY, \Kitodo\Dlf\Plugin\Feeds::class, '_feeds', 'list_type', false);
38
-\Kitodo\Dlf\Hooks\ExtensionManagementUtility::addPItoST43($_EXTKEY, \Kitodo\Dlf\Plugin\ListView::class, '_listview', 'list_type', false);
39
-\Kitodo\Dlf\Hooks\ExtensionManagementUtility::addPItoST43($_EXTKEY, \Kitodo\Dlf\Plugin\Metadata::class, '_metadata', 'list_type', true);
40
-\Kitodo\Dlf\Hooks\ExtensionManagementUtility::addPItoST43($_EXTKEY, \Kitodo\Dlf\Plugin\Navigation::class, '_navigation', 'list_type', true);
41
-\Kitodo\Dlf\Hooks\ExtensionManagementUtility::addPItoST43($_EXTKEY, \Kitodo\Dlf\Plugin\OaiPmh::class, '_oaipmh', 'list_type', false);
42
-\Kitodo\Dlf\Hooks\ExtensionManagementUtility::addPItoST43($_EXTKEY, \Kitodo\Dlf\Plugin\PageGrid::class, '_pagegrid', 'list_type', true);
43
-\Kitodo\Dlf\Hooks\ExtensionManagementUtility::addPItoST43($_EXTKEY, \Kitodo\Dlf\Plugin\PageView::class, '_pageview', 'list_type', true);
44
-\Kitodo\Dlf\Hooks\ExtensionManagementUtility::addPItoST43($_EXTKEY, \Kitodo\Dlf\Plugin\Search::class, '_search', 'list_type', true);
45
-\Kitodo\Dlf\Hooks\ExtensionManagementUtility::addPItoST43($_EXTKEY, \Kitodo\Dlf\Plugin\Statistics::class, '_statistics', 'list_type', true);
46
-\Kitodo\Dlf\Hooks\ExtensionManagementUtility::addPItoST43($_EXTKEY, \Kitodo\Dlf\Plugin\TableOfContents::class, '_tableofcontents', 'list_type', true);
47
-\Kitodo\Dlf\Hooks\ExtensionManagementUtility::addPItoST43($_EXTKEY, \Kitodo\Dlf\Plugin\Toolbox::class, '_toolbox', 'list_type', true);
48
-\Kitodo\Dlf\Hooks\ExtensionManagementUtility::addPItoST43($_EXTKEY, \Kitodo\Dlf\Plugin\Validator::class, '_validator', 'list_type', false);
33
+\Kitodo\Dlf\Hooks\ExtensionManagementUtility::addPItoST43($_EXTKEY, \Kitodo\Dlf\Plugin\AudioPlayer::class, '_audioplayer', 'list_type', TRUE);
34
+\Kitodo\Dlf\Hooks\ExtensionManagementUtility::addPItoST43($_EXTKEY, \Kitodo\Dlf\Plugin\Basket::class, '_basket', 'list_type', FALSE);
35
+\Kitodo\Dlf\Hooks\ExtensionManagementUtility::addPItoST43($_EXTKEY, \Kitodo\Dlf\Plugin\Calendar::class, '_calendar', 'list_type', TRUE);
36
+\Kitodo\Dlf\Hooks\ExtensionManagementUtility::addPItoST43($_EXTKEY, \Kitodo\Dlf\Plugin\Collection::class, '_collection', 'list_type', TRUE);
37
+\Kitodo\Dlf\Hooks\ExtensionManagementUtility::addPItoST43($_EXTKEY, \Kitodo\Dlf\Plugin\Feeds::class, '_feeds', 'list_type', FALSE);
38
+\Kitodo\Dlf\Hooks\ExtensionManagementUtility::addPItoST43($_EXTKEY, \Kitodo\Dlf\Plugin\ListView::class, '_listview', 'list_type', FALSE);
39
+\Kitodo\Dlf\Hooks\ExtensionManagementUtility::addPItoST43($_EXTKEY, \Kitodo\Dlf\Plugin\Metadata::class, '_metadata', 'list_type', TRUE);
40
+\Kitodo\Dlf\Hooks\ExtensionManagementUtility::addPItoST43($_EXTKEY, \Kitodo\Dlf\Plugin\Navigation::class, '_navigation', 'list_type', TRUE);
41
+\Kitodo\Dlf\Hooks\ExtensionManagementUtility::addPItoST43($_EXTKEY, \Kitodo\Dlf\Plugin\OaiPmh::class, '_oaipmh', 'list_type', FALSE);
42
+\Kitodo\Dlf\Hooks\ExtensionManagementUtility::addPItoST43($_EXTKEY, \Kitodo\Dlf\Plugin\PageGrid::class, '_pagegrid', 'list_type', TRUE);
43
+\Kitodo\Dlf\Hooks\ExtensionManagementUtility::addPItoST43($_EXTKEY, \Kitodo\Dlf\Plugin\PageView::class, '_pageview', 'list_type', TRUE);
44
+\Kitodo\Dlf\Hooks\ExtensionManagementUtility::addPItoST43($_EXTKEY, \Kitodo\Dlf\Plugin\Search::class, '_search', 'list_type', TRUE);
45
+\Kitodo\Dlf\Hooks\ExtensionManagementUtility::addPItoST43($_EXTKEY, \Kitodo\Dlf\Plugin\Statistics::class, '_statistics', 'list_type', TRUE);
46
+\Kitodo\Dlf\Hooks\ExtensionManagementUtility::addPItoST43($_EXTKEY, \Kitodo\Dlf\Plugin\TableOfContents::class, '_tableofcontents', 'list_type', TRUE);
47
+\Kitodo\Dlf\Hooks\ExtensionManagementUtility::addPItoST43($_EXTKEY, \Kitodo\Dlf\Plugin\Toolbox::class, '_toolbox', 'list_type', TRUE);
48
+\Kitodo\Dlf\Hooks\ExtensionManagementUtility::addPItoST43($_EXTKEY, \Kitodo\Dlf\Plugin\Validator::class, '_validator', 'list_type', FALSE);
49 49
 // Register tools for toolbox plugin.
50 50
 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/Classes/Plugin/Toolbox.php']['tools'] = [];
51
-\Kitodo\Dlf\Hooks\ExtensionManagementUtility::addPItoST43($_EXTKEY, \Kitodo\Dlf\Plugin\Tools\FulltextTool::class, '_fulltexttool', '', true);
51
+\Kitodo\Dlf\Hooks\ExtensionManagementUtility::addPItoST43($_EXTKEY, \Kitodo\Dlf\Plugin\Tools\FulltextTool::class, '_fulltexttool', '', TRUE);
52 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
-\Kitodo\Dlf\Hooks\ExtensionManagementUtility::addPItoST43($_EXTKEY, \Kitodo\Dlf\Plugin\Tools\AnnotationTool::class, '_annotationtool', '', true);
53
+\Kitodo\Dlf\Hooks\ExtensionManagementUtility::addPItoST43($_EXTKEY, \Kitodo\Dlf\Plugin\Tools\AnnotationTool::class, '_annotationtool', '', TRUE);
54 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
-\Kitodo\Dlf\Hooks\ExtensionManagementUtility::addPItoST43($_EXTKEY, \Kitodo\Dlf\Plugin\Tools\ImageDownloadTool::class, '_imagedownloadtool', '', true);
55
+\Kitodo\Dlf\Hooks\ExtensionManagementUtility::addPItoST43($_EXTKEY, \Kitodo\Dlf\Plugin\Tools\ImageDownloadTool::class, '_imagedownloadtool', '', TRUE);
56 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
-\Kitodo\Dlf\Hooks\ExtensionManagementUtility::addPItoST43($_EXTKEY, \Kitodo\Dlf\Plugin\Tools\ImageManipulationTool::class, '_imagemanipulationtool', '', true);
57
+\Kitodo\Dlf\Hooks\ExtensionManagementUtility::addPItoST43($_EXTKEY, \Kitodo\Dlf\Plugin\Tools\ImageManipulationTool::class, '_imagemanipulationtool', '', TRUE);
58 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
-\Kitodo\Dlf\Hooks\ExtensionManagementUtility::addPItoST43($_EXTKEY, \Kitodo\Dlf\Plugin\Tools\PdfDownloadTool::class, '_pdfdownloadtool', '', true);
59
+\Kitodo\Dlf\Hooks\ExtensionManagementUtility::addPItoST43($_EXTKEY, \Kitodo\Dlf\Plugin\Tools\PdfDownloadTool::class, '_pdfdownloadtool', '', TRUE);
60 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
-\Kitodo\Dlf\Hooks\ExtensionManagementUtility::addPItoST43($_EXTKEY, \Kitodo\Dlf\Plugin\Tools\SearchInDocumentTool::class, '_searchindocumenttool', '', true);
61
+\Kitodo\Dlf\Hooks\ExtensionManagementUtility::addPItoST43($_EXTKEY, \Kitodo\Dlf\Plugin\Tools\SearchInDocumentTool::class, '_searchindocumenttool', '', TRUE);
62 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;
Please login to merge, or discard this patch.
ext_emconf.php 1 patch
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,9 +24,9 @@
 block discarded – undo
24 24
         'suggests' => []
25 25
     ],
26 26
     'state' => 'stable',
27
-    'uploadfolder' => false,
27
+    'uploadfolder' => FALSE,
28 28
     'createDirs' => '',
29
-    'clearCacheOnLoad' => false,
29
+    'clearCacheOnLoad' => FALSE,
30 30
     'author' => 'Sebastian Meyer (Maintainer)',
31 31
     'author_email' => '[email protected]',
32 32
     'author_company' => 'Kitodo. Key to digital objects e. V.',
Please login to merge, or discard this patch.
class.ext_update.php 1 patch
Upper-Lower-Casing   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -41,17 +41,17 @@  discard block
 block discarded – undo
41 41
     public function access()
42 42
     {
43 43
         if (count($this->getMetadataConfig())) {
44
-            return true;
44
+            return TRUE;
45 45
         } elseif ($this->oldIndexRelatedTableNames()) {
46
-            return true;
46
+            return TRUE;
47 47
         } elseif ($this->solariumSolrUpdateRequired()) {
48
-            return true;
48
+            return TRUE;
49 49
         } elseif (count($this->oldFormatClasses())) {
50
-            return true;
50
+            return TRUE;
51 51
         } elseif ($this->hasNoFormatForDocument()) {
52
-            return true;
52
+            return TRUE;
53 53
         }
54
-        return false;
54
+        return FALSE;
55 55
     }
56 56
 
57 57
     /**
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
                 || $resArray['column_name'] == 'boost'
162 162
                 || $resArray['column_name'] == 'autocomplete'
163 163
             ) {
164
-                return true;
164
+                return TRUE;
165 165
             }
166 166
         }
167 167
     }
@@ -185,14 +185,14 @@  discard block
 block discarded – undo
185 185
         $result = $GLOBALS['TYPO3_DB']->sql_query($sqlQuery);
186 186
         if ($result) {
187 187
             Helper::addMessage(
188
-                $GLOBALS['LANG']->getLL('update.copyIndexRelatedColumnsOkay', true),
189
-                $GLOBALS['LANG']->getLL('update.copyIndexRelatedColumns', true),
188
+                $GLOBALS['LANG']->getLL('update.copyIndexRelatedColumnsOkay', TRUE),
189
+                $GLOBALS['LANG']->getLL('update.copyIndexRelatedColumns', TRUE),
190 190
                 \TYPO3\CMS\Core\Messaging\FlashMessage::OK
191 191
             );
192 192
         } else {
193 193
             Helper::addMessage(
194
-                $GLOBALS['LANG']->getLL('update.copyIndexRelatedColumnsNotOkay', true),
195
-                $GLOBALS['LANG']->getLL('update.copyIndexRelatedColumns', true),
194
+                $GLOBALS['LANG']->getLL('update.copyIndexRelatedColumnsNotOkay', TRUE),
195
+                $GLOBALS['LANG']->getLL('update.copyIndexRelatedColumns', TRUE),
196 196
                 \TYPO3\CMS\Core\Messaging\FlashMessage::WARNING
197 197
             );
198 198
         }
@@ -219,8 +219,8 @@  discard block
 block discarded – undo
219 219
             $GLOBALS['TYPO3_DB']->sql_query($sqlQuery);
220 220
         }
221 221
         Helper::addMessage(
222
-            $GLOBALS['LANG']->getLL('update.FormatClassesOkay', true),
223
-            $GLOBALS['LANG']->getLL('update.FormatClasses', true),
222
+            $GLOBALS['LANG']->getLL('update.FormatClassesOkay', TRUE),
223
+            $GLOBALS['LANG']->getLL('update.FormatClasses', TRUE),
224 224
             \TYPO3\CMS\Core\Messaging\FlashMessage::OK
225 225
         );
226 226
         $this->content .= Helper::renderFlashMessages();
@@ -265,14 +265,14 @@  discard block
 block discarded – undo
265 265
                 unset($data);
266 266
                 if (!empty($substUids)) {
267 267
                     Helper::addMessage(
268
-                        $GLOBALS['LANG']->getLL('update.metadataConfigOkay', true),
269
-                        $GLOBALS['LANG']->getLL('update.metadataConfig', true),
268
+                        $GLOBALS['LANG']->getLL('update.metadataConfigOkay', TRUE),
269
+                        $GLOBALS['LANG']->getLL('update.metadataConfig', TRUE),
270 270
                         \TYPO3\CMS\Core\Messaging\FlashMessage::OK
271 271
                     );
272 272
                 } else {
273 273
                     Helper::addMessage(
274
-                        $GLOBALS['LANG']->getLL('update.metadataConfigNotOkay', true),
275
-                        $GLOBALS['LANG']->getLL('update.metadataConfig', true),
274
+                        $GLOBALS['LANG']->getLL('update.metadataConfigNotOkay', TRUE),
275
+                        $GLOBALS['LANG']->getLL('update.metadataConfig', TRUE),
276 276
                         \TYPO3\CMS\Core\Messaging\FlashMessage::WARNING
277 277
                     );
278 278
                 }
@@ -301,10 +301,10 @@  discard block
 block discarded – undo
301 301
             // Instantiate search object.
302 302
             $solr = Solr::getInstance($resArray['index_name']);
303 303
             if (!$solr->ready) {
304
-                return true;
304
+                return TRUE;
305 305
             }
306 306
         }
307
-        return false;
307
+        return FALSE;
308 308
     }
309 309
 
310 310
     /**
@@ -347,20 +347,20 @@  discard block
 block discarded – undo
347 347
                 // Build request for adding new Solr core.
348 348
                 // @see http://wiki.apache.org/solr/CoreAdmin
349 349
                 $url = $solrInfo['scheme'] . '://' . $host . ':' . $solrInfo['port'] . '/' . $solrInfo['path'] . '/admin/cores?wt=xml&action=CREATE&name=' . $resArray['index_name'] . '&instanceDir=' . $resArray['index_name'] . '&dataDir=data&configSet=dlf';
350
-                $response = @simplexml_load_string(file_get_contents($url, false, $context));
350
+                $response = @simplexml_load_string(file_get_contents($url, FALSE, $context));
351 351
                 // Process response.
352 352
                 if ($response) {
353 353
                     $status = $response->xpath('//lst[@name="responseHeader"]/int[@name="status"]');
354 354
                     if (
355
-                        $status !== false
355
+                        $status !== FALSE
356 356
                         && $status[0] == 0
357 357
                     ) {
358 358
                         continue;
359 359
                     }
360 360
                 }
361 361
                 Helper::addMessage(
362
-                    $GLOBALS['LANG']->getLL('update.solariumSolrUpdateNotOkay', true),
363
-                    sprintf($GLOBALS['LANG']->getLL('update.solariumSolrUpdate', true), $resArray['index_name']),
362
+                    $GLOBALS['LANG']->getLL('update.solariumSolrUpdateNotOkay', TRUE),
363
+                    sprintf($GLOBALS['LANG']->getLL('update.solariumSolrUpdate', TRUE), $resArray['index_name']),
364 364
                     \TYPO3\CMS\Core\Messaging\FlashMessage::ERROR
365 365
                 );
366 366
                 $this->content .= Helper::renderFlashMessages();
@@ -368,8 +368,8 @@  discard block
 block discarded – undo
368 368
             }
369 369
         }
370 370
         Helper::addMessage(
371
-            $GLOBALS['LANG']->getLL('update.solariumSolrUpdateOkay', true),
372
-            $GLOBALS['LANG']->getLL('update.solariumSolrUpdate', true),
371
+            $GLOBALS['LANG']->getLL('update.solariumSolrUpdateOkay', TRUE),
372
+            $GLOBALS['LANG']->getLL('update.solariumSolrUpdate', TRUE),
373 373
             \TYPO3\CMS\Core\Messaging\FlashMessage::OK
374 374
         );
375 375
         $this->content .= Helper::renderFlashMessages();
@@ -385,10 +385,10 @@  discard block
 block discarded – undo
385 385
         );
386 386
         while ($resArray = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($result)) {
387 387
             if ($resArray['COLUMN_NAME'] == 'document_format') {
388
-                return false;
388
+                return FALSE;
389 389
             }
390 390
         }
391
-        return true;
391
+        return TRUE;
392 392
     }
393 393
 
394 394
     protected function updateDocumentAddFormat()
@@ -397,14 +397,14 @@  discard block
 block discarded – undo
397 397
         $result = $GLOBALS['TYPO3_DB']->sql_query($sqlQuery);
398 398
         if ($result) {
399 399
             Helper::addMessage(
400
-                $GLOBALS['LANG']->getLL('update.documentAddFormatOkay', true),
401
-                $GLOBALS['LANG']->getLL('update.documentAddFormat', true),
400
+                $GLOBALS['LANG']->getLL('update.documentAddFormatOkay', TRUE),
401
+                $GLOBALS['LANG']->getLL('update.documentAddFormat', TRUE),
402 402
                 \TYPO3\CMS\Core\Messaging\FlashMessage::OK
403 403
             );
404 404
         } else {
405 405
             Helper::addMessage(
406
-                $GLOBALS['LANG']->getLL('update.documentAddFormatNotOkay', true),
407
-                $GLOBALS['LANG']->getLL('update.documentAddFormat', true),
406
+                $GLOBALS['LANG']->getLL('update.documentAddFormatNotOkay', TRUE),
407
+                $GLOBALS['LANG']->getLL('update.documentAddFormat', TRUE),
408 408
                 \TYPO3\CMS\Core\Messaging\FlashMessage::WARNING
409 409
             );
410 410
             $this->content .= Helper::renderFlashMessages();
@@ -415,14 +415,14 @@  discard block
 block discarded – undo
415 415
         $result = $GLOBALS['TYPO3_DB']->sql_query($sqlQuery);
416 416
         if ($result) {
417 417
             Helper::addMessage(
418
-                $GLOBALS['LANG']->getLL('update.documentSetFormatForOldEntriesOkay', true),
419
-                $GLOBALS['LANG']->getLL('update.documentSetFormatForOldEntries', true),
418
+                $GLOBALS['LANG']->getLL('update.documentSetFormatForOldEntriesOkay', TRUE),
419
+                $GLOBALS['LANG']->getLL('update.documentSetFormatForOldEntries', TRUE),
420 420
                 \TYPO3\CMS\Core\Messaging\FlashMessage::OK
421 421
             );
422 422
         } else {
423 423
             Helper::addMessage(
424
-                $GLOBALS['LANG']->getLL('update.documentSetFormatForOldEntriesNotOkay', true),
425
-                $GLOBALS['LANG']->getLL('update.documentSetFormatForOldEntries', true),
424
+                $GLOBALS['LANG']->getLL('update.documentSetFormatForOldEntriesNotOkay', TRUE),
425
+                $GLOBALS['LANG']->getLL('update.documentSetFormatForOldEntries', TRUE),
426 426
                 \TYPO3\CMS\Core\Messaging\FlashMessage::WARNING
427 427
             );
428 428
             return;
Please login to merge, or discard this patch.
Classes/Plugin/Toolbox.php 1 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/OaiPmh.php 1 patch
Upper-Lower-Casing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
      * @var bool
38 38
      * @access protected
39 39
      */
40
-    protected $error = false;
40
+    protected $error = FALSE;
41 41
 
42 42
     /**
43 43
      * This holds the OAI DOM object
@@ -102,8 +102,8 @@  discard block
 block discarded – undo
102 102
      */
103 103
     protected function error($type)
104 104
     {
105
-        $this->error = true;
106
-        $error = $this->oai->createElementNS('http://www.openarchives.org/OAI/2.0/', 'error', htmlspecialchars($this->pi_getLL($type, $type, false), ENT_NOQUOTES, 'UTF-8'));
105
+        $this->error = TRUE;
106
+        $error = $this->oai->createElementNS('http://www.openarchives.org/OAI/2.0/', 'error', htmlspecialchars($this->pi_getLL($type, $type, FALSE), ENT_NOQUOTES, 'UTF-8'));
107 107
         $error->setAttribute('code', $type);
108 108
         return $error;
109 109
     }
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
      */
292 292
     protected function getMetsData(array $metadata)
293 293
     {
294
-        $mets = null;
294
+        $mets = NULL;
295 295
         // Load METS file.
296 296
         $xml = new \DOMDocument();
297 297
         if ($xml->load($metadata['location'])) {
@@ -299,15 +299,15 @@  discard block
 block discarded – undo
299 299
             $root = $xml->getElementsByTagNameNS($this->formats['mets']['namespace'], 'mets');
300 300
             if ($root->item(0) instanceof \DOMNode) {
301 301
                 // Import node into \DOMDocument.
302
-                $mets = $this->oai->importNode($root->item(0), true);
302
+                $mets = $this->oai->importNode($root->item(0), TRUE);
303 303
             } else {
304 304
                 Helper::devLog('No METS part found in document with location "' . $metadata['location'] . '"', DEVLOG_SEVERITY_ERROR);
305 305
             }
306 306
         } else {
307 307
             Helper::devLog('Could not load XML file from "' . $metadata['location'] . '"', DEVLOG_SEVERITY_ERROR);
308 308
         }
309
-        if ($mets === null) {
310
-            $mets = $this->oai->createElementNS('http://kitodo.org/', 'kitodo:error', htmlspecialchars($this->pi_getLL('error', 'Error!', false), ENT_NOQUOTES, 'UTF-8'));
309
+        if ($mets === NULL) {
310
+            $mets = $this->oai->createElementNS('http://kitodo.org/', 'kitodo:error', htmlspecialchars($this->pi_getLL('error', 'Error!', FALSE), ENT_NOQUOTES, 'UTF-8'));
311 311
         }
312 312
         return $mets;
313 313
     }
@@ -327,7 +327,7 @@  discard block
 block discarded – undo
327 327
         // Initialize plugin.
328 328
         $this->init($conf);
329 329
         // Turn cache off.
330
-        $this->setCache(false);
330
+        $this->setCache(FALSE);
331 331
         // Get GET and POST variables.
332 332
         $this->getUrlParams();
333 333
         // Delete expired resumption tokens.
Please login to merge, or discard this patch.
Classes/Plugin/Metadata.php 1 patch
Upper-Lower-Casing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -55,10 +55,10 @@  discard block
 block discarded – undo
55 55
     {
56 56
         $this->init($conf);
57 57
         // Turn cache on.
58
-        $this->setCache(true);
58
+        $this->setCache(TRUE);
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
         } else {
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
      *
158 158
      * @return string The metadata array ready for output
159 159
      */
160
-    protected function printMetadata(array $metadataArray, $useOriginalIiifManifestMetadata = false)
160
+    protected function printMetadata(array $metadataArray, $useOriginalIiifManifestMetadata = FALSE)
161 161
     {
162 162
         // Load template file.
163 163
         $this->getTemplate();
@@ -309,7 +309,7 @@  discard block
 block discarded – undo
309 309
                             if ($index_name == 'title') {
310 310
                                 // Get title of parent document if needed.
311 311
                                 if (empty($value) && $this->conf['getTitle'] && $this->doc->parentId) {
312
-                                    $superiorTitle = Document::getTitle($this->doc->parentId, true);
312
+                                    $superiorTitle = Document::getTitle($this->doc->parentId, TRUE);
313 313
                                     if (!empty($superiorTitle)) {
314 314
                                         $value = '[' . $superiorTitle . ']';
315 315
                                     }
@@ -319,7 +319,7 @@  discard block
 block discarded – undo
319 319
                                     // Link title to pageview.
320 320
                                     if ($this->conf['linkTitle'] && $metadata['_id']) {
321 321
                                         $details = $this->doc->getLogicalStructure($metadata['_id']);
322
-                                        $value = $this->pi_linkTP($value, [$this->prefixId => ['id' => $this->doc->uid, 'page' => (!empty($details['points']) ? intval($details['points']) : 1)]], true, $this->conf['targetPid']);
322
+                                        $value = $this->pi_linkTP($value, [$this->prefixId => ['id' => $this->doc->uid, 'page' => (!empty($details['points']) ? intval($details['points']) : 1)]], TRUE, $this->conf['targetPid']);
323 323
                                     }
324 324
                                 }
325 325
                             } elseif ($index_name == 'owner' && !empty($value)) {
@@ -367,6 +367,6 @@  discard block
 block discarded – undo
367 367
                 $output .= $this->templateService->substituteMarkerArray($subpart['block'], $markerArray);
368 368
             }
369 369
         }
370
-        return $this->templateService->substituteSubpart($this->template, '###BLOCK###', $output, true);
370
+        return $this->templateService->substituteSubpart($this->template, '###BLOCK###', $output, TRUE);
371 371
     }
372 372
 }
Please login to merge, or discard this patch.