Passed
Pull Request — master (#123)
by
unknown
05:15
created
Classes/Common/KitodoFlashMessageRenderer.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
      */
100 100
     protected function getClass(FlashMessage $flashMessage): string
101 101
     {
102
-        return 'alert-' . self::$classes[$this->getSeverityAsInt($flashMessage)];
102
+        return 'alert-'.self::$classes[$this->getSeverityAsInt($flashMessage)];
103 103
     }
104 104
 
105 105
     /**
@@ -134,19 +134,19 @@  discard block
 block discarded – undo
134 134
         $markup[] = '<div class="typo3-messages">';
135 135
         foreach ($flashMessages as $flashMessage) {
136 136
             $messageTitle = $flashMessage->getTitle();
137
-            $markup[] = '<div class="alert ' . htmlspecialchars($this->getClass($flashMessage)) . '">';
137
+            $markup[] = '<div class="alert '.htmlspecialchars($this->getClass($flashMessage)).'">';
138 138
             $markup[] = '  <div class="media">';
139 139
             $markup[] = '    <div class="media-left">';
140 140
             $markup[] = '      <span class="fa-stack fa-lg">';
141 141
             $markup[] = '        <i class="fa fa-circle fa-stack-2x"></i>';
142
-            $markup[] = '        <i class="fa fa-' . htmlspecialchars($this->getIconName($flashMessage)) . ' fa-stack-1x"></i>';
142
+            $markup[] = '        <i class="fa fa-'.htmlspecialchars($this->getIconName($flashMessage)).' fa-stack-1x"></i>';
143 143
             $markup[] = '      </span>';
144 144
             $markup[] = '    </div>';
145 145
             $markup[] = '    <div class="media-body">';
146 146
             if ($messageTitle !== '') {
147
-                $markup[] = '      <h4 class="alert-title">' . htmlspecialchars($messageTitle) . '</h4>';
147
+                $markup[] = '      <h4 class="alert-title">'.htmlspecialchars($messageTitle).'</h4>';
148 148
             }
149
-            $markup[] = '      <p class="alert-message">' . $flashMessage->getMessage() . '</p>';
149
+            $markup[] = '      <p class="alert-message">'.$flashMessage->getMessage().'</p>';
150 150
             $markup[] = '    </div>';
151 151
             $markup[] = '  </div>';
152 152
             $markup[] = '</div>';
Please login to merge, or discard this patch.
Configuration/Backend/Modules.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
         'navigationComponentId' => '@typo3/backend/page-tree/page-tree-element',
27 27
         'controllerActions'     => [
28 28
             \Kitodo\Dlf\Controller\Backend\NewTenantController::class => [
29
-                'index','error','addFormat','addMetadata','addSolrCore','addStructure'
29
+                'index', 'error', 'addFormat', 'addMetadata', 'addSolrCore', 'addStructure'
30 30
             ],
31 31
         ],
32 32
     ],
Please login to merge, or discard this patch.
Tests/Functional/FunctionalTestCase.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
         $this->configurationToUseInTestInstance['EXTENSIONS']['dlf'] = $this->getDlfConfiguration();
97 97
 
98 98
         if ($this->disableJsonWrappedResponse) {
99
-            $this->frameworkExtensionsToLoad = array_filter($this->frameworkExtensionsToLoad, function ($ext) {
99
+            $this->frameworkExtensionsToLoad = array_filter($this->frameworkExtensionsToLoad, function($ext) {
100 100
                 return $ext !== 'Resources/Core/Functional/Extensions/json_response';
101 101
             });
102 102
         }
@@ -108,9 +108,9 @@  discard block
 block discarded – undo
108 108
 
109 109
         $this->persistenceManager = GeneralUtility::makeInstance(PersistenceManager::class);
110 110
 
111
-        $this->baseUrl = 'http://web:8000/public/typo3temp/var/tests/functional-' . $this->identifier . '/';
111
+        $this->baseUrl = 'http://web:8000/public/typo3temp/var/tests/functional-'.$this->identifier.'/';
112 112
         $this->httpClient = new HttpClient([
113
-            'base_uri' => $this->baseUrl . 'index.php',
113
+            'base_uri' => $this->baseUrl.'index.php',
114 114
             'http_errors' => false,
115 115
         ]);
116 116
 
@@ -169,13 +169,13 @@  discard block
 block discarded – undo
169 169
 
170 170
     protected function addSiteConfig($identifier)
171 171
     {
172
-        $siteConfig = Yaml::parseFile(__DIR__ . '/../Fixtures/siteconfig.yaml');
172
+        $siteConfig = Yaml::parseFile(__DIR__.'/../Fixtures/siteconfig.yaml');
173 173
         $siteConfig['base'] = $this->baseUrl;
174 174
         $siteConfig['languages'][0]['base'] = $this->baseUrl;
175 175
 
176
-        $siteConfigPath = $this->instancePath . '/typo3conf/sites/' . $identifier;
176
+        $siteConfigPath = $this->instancePath.'/typo3conf/sites/'.$identifier;
177 177
         @mkdir($siteConfigPath, 0775, true);
178
-        file_put_contents($siteConfigPath . '/config.yaml', Yaml::dump($siteConfig));
178
+        file_put_contents($siteConfigPath.'/config.yaml', Yaml::dump($siteConfig));
179 179
 
180 180
         // refresh site cache (otherwise site config is not found)
181 181
         $finder = GeneralUtility::makeInstance(\TYPO3\CMS\Core\Site\SiteFinder::class);
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
         $jsonDocuments = json_decode(file_get_contents($path), true);
198 198
 
199 199
         $updateQuery = $solr->service->createUpdate();
200
-        $documents = array_map(function ($jsonDoc) use ($updateQuery) {
200
+        $documents = array_map(function($jsonDoc) use ($updateQuery) {
201 201
             $document = $updateQuery->createDocument();
202 202
             foreach ($jsonDoc as $key => $value) {
203 203
                 $document->setField($key, $value);
Please login to merge, or discard this patch.
Classes/Controller/PageViewController.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -184,18 +184,18 @@  discard block
 block discarded – undo
184 184
             }
185 185
 
186 186
             $navigationArray[$i]['next'] = [
187
-                'tx_dlf[docPage][' . $i . ']' =>
187
+                'tx_dlf[docPage]['.$i.']' =>
188 188
                     MathUtility::forceIntegerInRange((int) $this->requestData['docPage'][$i] + 1, 1, $document->numPages, 1)
189 189
             ];
190 190
             $navigationArray[$i]['prev'] = [
191
-                'tx_dlf[docPage][' . $i . ']' =>
191
+                'tx_dlf[docPage]['.$i.']' =>
192 192
                     MathUtility::forceIntegerInRange((int) $this->requestData['docPage'][$i] - 1, 1, $document->numPages, 1)
193 193
             ];
194 194
 
195 195
             $navigateAllPageNext = array_merge(
196 196
                 $navigateAllPageNext,
197 197
                 [
198
-                    'tx_dlf[docPage][' . $i . ']' =>
198
+                    'tx_dlf[docPage]['.$i.']' =>
199 199
                         MathUtility::forceIntegerInRange((int) $this->requestData['docPage'][$i] + 1, 1, $document->numPages, 1)
200 200
                 ]
201 201
             );
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
             $navigateAllPagePrev = array_merge(
204 204
                 $navigateAllPagePrev,
205 205
                 [
206
-                    'tx_dlf[docPage][' . $i . ']' =>
206
+                    'tx_dlf[docPage]['.$i.']' =>
207 207
                         MathUtility::forceIntegerInRange((int) $this->requestData['docPage'][$i] - 1, 1, $document->numPages, 1)
208 208
                 ]
209 209
             );
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
             $navigateAllMeasureNext = array_merge(
212 212
                 $navigateAllMeasureNext,
213 213
                 [
214
-                    'tx_dlf[docMeasure][' . $i . ']' =>
214
+                    'tx_dlf[docMeasure]['.$i.']' =>
215 215
                         MathUtility::forceIntegerInRange((int) $this->requestData['docMeasure'][$i] + 1, 1, $document->numMeasures, 1)
216 216
                 ]
217 217
             );
@@ -219,19 +219,19 @@  discard block
 block discarded – undo
219 219
             $navigateAllMeasurePrev = array_merge(
220 220
                 $navigateAllMeasurePrev,
221 221
                 [
222
-                    'tx_dlf[docMeasure][' . $i . ']' =>
222
+                    'tx_dlf[docMeasure]['.$i.']' =>
223 223
                         MathUtility::forceIntegerInRange((int) $this->requestData['docMeasure'][$i] - 1, 1, $document->numMeasures, 1)
224 224
                 ]
225 225
             );
226 226
 
227 227
             if ($document->numMeasures > 0) {
228 228
                 $navigationMeasureArray[$i]['next'] = [
229
-                    'tx_dlf[docMeasure][' . $i . ']' =>
229
+                    'tx_dlf[docMeasure]['.$i.']' =>
230 230
                         MathUtility::forceIntegerInRange((int) $this->requestData['docMeasure'][$i] + 1, 1, $document->numMeasures, 1)
231 231
                 ];
232 232
 
233 233
                 $navigationMeasureArray[$i]['prev'] = [
234
-                    'tx_dlf[docMeasure][' . $i . ']' =>
234
+                    'tx_dlf[docMeasure]['.$i.']' =>
235 235
                         MathUtility::forceIntegerInRange((int) $this->requestData['docMeasure'][$i] - 1, 1, $document->numMeasures, 1)
236 236
                 ];
237 237
             }
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
             }
286 286
             $params = array_merge(
287 287
                 ['tx_dlf' => $this->requestData],
288
-                ['tx_dlf[multipleSource][' . $nextMultipleSourceKey . ']' => $formAddDocument->getLocation()],
288
+                ['tx_dlf[multipleSource]['.$nextMultipleSourceKey.']' => $formAddDocument->getLocation()],
289 289
                 ['tx_dlf[multiview]' => 1]
290 290
             );
291 291
             $uriBuilder = $this->uriBuilder;
@@ -333,7 +333,7 @@  discard block
 block discarded – undo
333 333
                             // build link for each measure
334 334
                             $params = [
335 335
                                 'tx_dlf' => $this->requestData,
336
-                                'tx_dlf[docMeasure][' . $docNumber . ']' => $i
336
+                                'tx_dlf[docMeasure]['.$docNumber.']' => $i
337 337
                             ];
338 338
                         } else {
339 339
                             // build link for each measure
@@ -417,7 +417,7 @@  discard block
 block discarded – undo
417 417
         }
418 418
 
419 419
         if (empty($score)) {
420
-            $this->logger->notice('No score file found for page "' . $page . '" in fileGrps "' . ($this->settings['fileGrpScore'] ?? '') . '"');
420
+            $this->logger->notice('No score file found for page "'.$page.'" in fileGrps "'.($this->settings['fileGrpScore'] ?? '').'"');
421 421
         }
422 422
         return $score;
423 423
     }
@@ -448,11 +448,11 @@  discard block
 block discarded – undo
448 448
                 $fulltext['mimetype'] = $file['mimeType'];
449 449
                 break;
450 450
             } else {
451
-                $this->logger->notice('No full-text file found for page "' . $page . '" in fileGrp "' . $fileGrpFulltext . '"');
451
+                $this->logger->notice('No full-text file found for page "'.$page.'" in fileGrp "'.$fileGrpFulltext.'"');
452 452
             }
453 453
         }
454 454
         if (empty($fulltext)) {
455
-            $this->logger->notice('No full-text file found for page "' . $page . '" in fileGrps "' . $this->extConf['files']['fileGrpFulltext'] . '"');
455
+            $this->logger->notice('No full-text file found for page "'.$page.'" in fileGrps "'.$this->extConf['files']['fileGrpFulltext'].'"');
456 456
         }
457 457
         return $fulltext;
458 458
     }
@@ -512,7 +512,7 @@  discard block
 block discarded – undo
512 512
                         'measureIdLinks' => $docMeasures['measureLinks']
513 513
                     ];
514 514
 
515
-                    $jsViewer .= 'tx_dlf_viewer[' . $i . '] = new dlfViewer(' . json_encode($viewer) . ');
515
+                    $jsViewer .= 'tx_dlf_viewer['.$i.'] = new dlfViewer('.json_encode($viewer).');
516 516
                             ';
517 517
                     $i++;
518 518
                 }
@@ -521,8 +521,8 @@  discard block
 block discarded – undo
521 521
             // Viewer configuration.
522 522
             $viewerConfiguration = '$(document).ready(function() {
523 523
                     if (dlfUtils.exists(dlfViewer)) {
524
-                        ' . $jsViewer . '
525
-                        viewerCount = ' . ($i - 1) . ';
524
+                        ' . $jsViewer.'
525
+                        viewerCount = ' . ($i - 1).';
526 526
                     }
527 527
                 });';
528 528
         } else {
@@ -552,7 +552,7 @@  discard block
 block discarded – undo
552 552
             // Viewer configuration.
553 553
             $viewerConfiguration = '$(document).ready(function() {
554 554
                     if (dlfUtils.exists(dlfViewer)) {
555
-                        tx_dlf_viewer = new dlfViewer(' . json_encode($viewer) . ');
555
+                        tx_dlf_viewer = new dlfViewer(' . json_encode($viewer).');
556 556
                     }
557 557
                 });';
558 558
         }
@@ -645,12 +645,12 @@  discard block
 block discarded – undo
645 645
                 }
646 646
                 break;
647 647
             } else {
648
-                $this->logger->notice('No image file found for page "' . $page . '" in fileGrp "' . $fileGrpImages . '"');
648
+                $this->logger->notice('No image file found for page "'.$page.'" in fileGrp "'.$fileGrpImages.'"');
649 649
             }
650 650
         }
651 651
 
652 652
         if (empty($image)) {
653
-            $this->logger->warning('No image file found for page "' . $page . '" in fileGrps "' . $this->extConf['files']['fileGrpImages'] . '"');
653
+            $this->logger->warning('No image file found for page "'.$page.'" in fileGrps "'.$this->extConf['files']['fileGrpImages'].'"');
654 654
         }
655 655
 
656 656
         return $image;
Please login to merge, or discard this patch.
Classes/Common/Helper.php 1 patch
Spacing   +33 added lines, -33 removed lines patch added patch discarded remove patch
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
                 } elseif ($checksum == 10) {
152 152
                     //TODO: Binary operation "+" between string and 1 results in an error.
153 153
                     // @phpstan-ignore-next-line
154
-                    return self::checkIdentifier(($digits + 1) . substr($id, -2, 2), 'SWD');
154
+                    return self::checkIdentifier(($digits + 1).substr($id, -2, 2), 'SWD');
155 155
                 } elseif (substr($id, -1, 1) != $checksum) {
156 156
                     return false;
157 157
                 }
@@ -357,7 +357,7 @@  discard block
 block discarded – undo
357 357
         $encrypted = openssl_encrypt($string, self::$cipherAlgorithm, $key, OPENSSL_RAW_DATA, $iv);
358 358
         // Merge initialization vector and encrypted data.
359 359
         if ($encrypted !== false) {
360
-            $encrypted = base64_encode($iv . $encrypted);
360
+            $encrypted = base64_encode($iv.$encrypted);
361 361
         }
362 362
         return $encrypted;
363 363
     }
@@ -399,8 +399,8 @@  discard block
 block discarded – undo
399 399
     public static function getHookObjects(string $scriptRelPath): array
400 400
     {
401 401
         $hookObjects = [];
402
-        if (is_array(self::getOptions()[self::$extKey . '/' . $scriptRelPath]['hookClass'])) {
403
-            foreach (self::getOptions()[self::$extKey . '/' . $scriptRelPath]['hookClass'] as $classRef) {
402
+        if (is_array(self::getOptions()[self::$extKey.'/'.$scriptRelPath]['hookClass'])) {
403
+            foreach (self::getOptions()[self::$extKey.'/'.$scriptRelPath]['hookClass'] as $classRef) {
404 404
                 $hookObjects[] = GeneralUtility::makeInstance($classRef);
405 405
             }
406 406
         }
@@ -429,12 +429,12 @@  discard block
 block discarded – undo
429 429
             // NOTE: Only use tables that don't have too many entries!
430 430
             || !in_array($table, ['tx_dlf_collections', 'tx_dlf_libraries', 'tx_dlf_metadata', 'tx_dlf_metadatasubentries', 'tx_dlf_structures', 'tx_dlf_solrcores'])
431 431
         ) {
432
-            self::log('Invalid UID "' . $uid . '" or table "' . $table . '"', LOG_SEVERITY_ERROR);
432
+            self::log('Invalid UID "'.$uid.'" or table "'.$table.'"', LOG_SEVERITY_ERROR);
433 433
             return '';
434 434
         }
435 435
 
436
-        $makeCacheKey = function ($pid, $uid) {
437
-            return $pid . '.' . $uid;
436
+        $makeCacheKey = function($pid, $uid) {
437
+            return $pid.'.'.$uid;
438 438
         };
439 439
 
440 440
         static $cache = [];
@@ -444,9 +444,9 @@  discard block
 block discarded – undo
444 444
 
445 445
             $result = $queryBuilder
446 446
                 ->select(
447
-                    $table . '.index_name AS index_name',
448
-                    $table . '.uid AS uid',
449
-                    $table . '.pid AS pid',
447
+                    $table.'.index_name AS index_name',
448
+                    $table.'.uid AS uid',
449
+                    $table.'.pid AS pid',
450 450
                 )
451 451
                 ->from($table)
452 452
                 ->execute();
@@ -464,7 +464,7 @@  discard block
 block discarded – undo
464 464
         $result = $cache[$table][$cacheKey] ?? '';
465 465
 
466 466
         if ($result === '') {
467
-            self::log('No "index_name" with UID ' . $uid . ' and PID ' . $pid . ' found in table "' . $table . '"', LOG_SEVERITY_WARNING);
467
+            self::log('No "index_name" with UID '.$uid.' and PID '.$pid.' found in table "'.$table.'"', LOG_SEVERITY_WARNING);
468 468
         }
469 469
 
470 470
         return $result;
@@ -493,11 +493,11 @@  discard block
 block discarded – undo
493 493
             // No ISO code, return unchanged.
494 494
             return $code;
495 495
         }
496
-        $lang = LocalizationUtility::translate('LLL:' . $file . ':' . $code);
496
+        $lang = LocalizationUtility::translate('LLL:'.$file.':'.$code);
497 497
         if (!empty($lang)) {
498 498
             return $lang;
499 499
         } else {
500
-            self::log('Language code "' . $code . '" not found in ISO-639 table', LOG_SEVERITY_NOTICE);
500
+            self::log('Language code "'.$code.'" not found in ISO-639 table', LOG_SEVERITY_NOTICE);
501 501
             return $code;
502 502
         }
503 503
     }
@@ -661,7 +661,7 @@  discard block
 block discarded – undo
661 661
         // Sanitize input.
662 662
         $pid = max((int) $pid, 0);
663 663
         if (!$pid) {
664
-            self::log('Invalid PID ' . $pid . ' for translation', LOG_SEVERITY_WARNING);
664
+            self::log('Invalid PID '.$pid.' for translation', LOG_SEVERITY_WARNING);
665 665
             return $indexName;
666 666
         }
667 667
         /** @var PageRepository $pageRepository */
@@ -684,13 +684,13 @@  discard block
 block discarded – undo
684 684
         // First fetch the uid of the received index_name
685 685
         $result = $queryBuilder
686 686
             ->select(
687
-                $table . '.uid AS uid',
688
-                $table . '.l18n_parent AS l18n_parent'
687
+                $table.'.uid AS uid',
688
+                $table.'.l18n_parent AS l18n_parent'
689 689
             )
690 690
             ->from($table)
691 691
             ->where(
692
-                $queryBuilder->expr()->eq($table . '.pid', $pid),
693
-                $queryBuilder->expr()->eq($table . '.index_name', $queryBuilder->expr()->literal($indexName)),
692
+                $queryBuilder->expr()->eq($table.'.pid', $pid),
693
+                $queryBuilder->expr()->eq($table.'.index_name', $queryBuilder->expr()->literal($indexName)),
694 694
                 self::whereExpression($table, true)
695 695
             )
696 696
             ->setMaxResults(1)
@@ -701,12 +701,12 @@  discard block
 block discarded – undo
701 701
         if ($row) {
702 702
             // Now we use the uid of the l18_parent to fetch the index_name of the translated content element.
703 703
             $result = $queryBuilder
704
-                ->select($table . '.index_name AS index_name')
704
+                ->select($table.'.index_name AS index_name')
705 705
                 ->from($table)
706 706
                 ->where(
707
-                    $queryBuilder->expr()->eq($table . '.pid', $pid),
708
-                    $queryBuilder->expr()->eq($table . '.uid', $row['l18n_parent']),
709
-                    $queryBuilder->expr()->eq($table . '.sys_language_uid', (int) $languageContentId),
707
+                    $queryBuilder->expr()->eq($table.'.pid', $pid),
708
+                    $queryBuilder->expr()->eq($table.'.uid', $row['l18n_parent']),
709
+                    $queryBuilder->expr()->eq($table.'.sys_language_uid', (int) $languageContentId),
710 710
                     self::whereExpression($table, true)
711 711
                 )
712 712
                 ->setMaxResults(1)
@@ -724,14 +724,14 @@  discard block
 block discarded – undo
724 724
         if (empty($labels[$table][$pid][$languageContentId][$indexName])) {
725 725
             // Check if this table is allowed for translation.
726 726
             if (in_array($table, ['tx_dlf_collections', 'tx_dlf_libraries', 'tx_dlf_metadata', 'tx_dlf_metadatasubentries', 'tx_dlf_structures'])) {
727
-                $additionalWhere = $queryBuilder->expr()->in($table . '.sys_language_uid', [-1, 0]);
727
+                $additionalWhere = $queryBuilder->expr()->in($table.'.sys_language_uid', [-1, 0]);
728 728
                 if ($languageContentId > 0) {
729 729
                     $additionalWhere = $queryBuilder->expr()->andX(
730 730
                         $queryBuilder->expr()->orX(
731
-                            $queryBuilder->expr()->in($table . '.sys_language_uid', [-1, 0]),
732
-                            $queryBuilder->expr()->eq($table . '.sys_language_uid', (int) $languageContentId)
731
+                            $queryBuilder->expr()->in($table.'.sys_language_uid', [-1, 0]),
732
+                            $queryBuilder->expr()->eq($table.'.sys_language_uid', (int) $languageContentId)
733 733
                         ),
734
-                        $queryBuilder->expr()->eq($table . '.l18n_parent', 0)
734
+                        $queryBuilder->expr()->eq($table.'.l18n_parent', 0)
735 735
                     );
736 736
                 }
737 737
 
@@ -740,7 +740,7 @@  discard block
 block discarded – undo
740 740
                     ->select('*')
741 741
                     ->from($table)
742 742
                     ->where(
743
-                        $queryBuilder->expr()->eq($table . '.pid', $pid),
743
+                        $queryBuilder->expr()->eq($table.'.pid', $pid),
744 744
                         $additionalWhere,
745 745
                         self::whereExpression($table, true)
746 746
                     )
@@ -758,10 +758,10 @@  discard block
 block discarded – undo
758 758
                         }
759 759
                     }
760 760
                 } else {
761
-                    self::log('No translation with PID ' . $pid . ' available in table "' . $table . '" or translation not accessible', LOG_SEVERITY_NOTICE);
761
+                    self::log('No translation with PID '.$pid.' available in table "'.$table.'" or translation not accessible', LOG_SEVERITY_NOTICE);
762 762
                 }
763 763
             } else {
764
-                self::log('No translations available for table "' . $table . '"', LOG_SEVERITY_WARNING);
764
+                self::log('No translations available for table "'.$table.'"', LOG_SEVERITY_WARNING);
765 765
             }
766 766
         }
767 767
 
@@ -805,7 +805,7 @@  discard block
 block discarded – undo
805 805
             return GeneralUtility::makeInstance(ConnectionPool::class)
806 806
                 ->getQueryBuilderForTable($table)
807 807
                 ->expr()
808
-                ->eq($table . '.' . $GLOBALS['TCA'][$table]['ctrl']['delete'], 0);
808
+                ->eq($table.'.'.$GLOBALS['TCA'][$table]['ctrl']['delete'], 0);
809 809
         } else {
810 810
             self::log('Unexpected application type (neither frontend or backend)', LOG_SEVERITY_ERROR);
811 811
             return '1=-1';
@@ -871,7 +871,7 @@  discard block
 block discarded – undo
871 871
         try {
872 872
             $response = $requestFactory->request($url, 'GET', $configuration);
873 873
         } catch (\Exception $e) {
874
-            self::log('Could not fetch data from URL "' . $url . '". Error: ' . $e->getMessage() . '.', LOG_SEVERITY_WARNING);
874
+            self::log('Could not fetch data from URL "'.$url.'". Error: '.$e->getMessage().'.', LOG_SEVERITY_WARNING);
875 875
             return false;
876 876
         }
877 877
         return $response->getBody()->getContents();
@@ -963,9 +963,9 @@  discard block
 block discarded – undo
963 963
         $mimeTypeCollection = GeneralUtility::makeInstance(MimeTypeCollection::class);
964 964
         $mimeTypes = array_filter(
965 965
             $mimeTypeCollection->getMimeTypes(),
966
-            function ($mimeType) use ($categories) {
966
+            function($mimeType) use ($categories) {
967 967
                 foreach ($categories as $category) {
968
-                    if (strpos($mimeType, $category . '/') === 0) {
968
+                    if (strpos($mimeType, $category.'/') === 0) {
969 969
                         return true;
970 970
                     }
971 971
                 }
Please login to merge, or discard this patch.
Configuration/TCA/Overrides/tt_content.php 1 patch
Spacing   +49 added lines, -49 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
26 26
     'Dlf',
27 27
     'Annotation',
28
-    $pluginsLabel . 'annotation.title',
28
+    $pluginsLabel.'annotation.title',
29 29
 );
30 30
 
31 31
 // Plugin "audioplayer".
@@ -36,14 +36,14 @@  discard block
 block discarded – undo
36 36
 
37 37
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue(
38 38
     $plugin,
39
-    $flexFormsDirectory . 'AudioPlayer.xml'
39
+    $flexFormsDirectory.'AudioPlayer.xml'
40 40
 );
41 41
 
42 42
 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
43 43
     'Dlf',
44 44
     'AudioPlayer',
45
-    $pluginsLabel . 'audioplayer.title',
46
-    $iconsDirectory . 'tx-dlf-audioplayer.svg'
45
+    $pluginsLabel.'audioplayer.title',
46
+    $iconsDirectory.'tx-dlf-audioplayer.svg'
47 47
 );
48 48
 
49 49
 // Plugin "basket".
@@ -54,14 +54,14 @@  discard block
 block discarded – undo
54 54
 
55 55
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue(
56 56
     $plugin,
57
-    $flexFormsDirectory . 'Basket.xml'
57
+    $flexFormsDirectory.'Basket.xml'
58 58
 );
59 59
 
60 60
 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
61 61
     'Dlf',
62 62
     'Basket',
63
-    $pluginsLabel . 'basket.title',
64
-    $iconsDirectory . 'tx-dlf-basket.svg'
63
+    $pluginsLabel.'basket.title',
64
+    $iconsDirectory.'tx-dlf-basket.svg'
65 65
 );
66 66
 
67 67
 // Plugin "calendar".
@@ -72,14 +72,14 @@  discard block
 block discarded – undo
72 72
 
73 73
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue(
74 74
     $plugin,
75
-    $flexFormsDirectory . 'Calendar.xml'
75
+    $flexFormsDirectory.'Calendar.xml'
76 76
 );
77 77
 
78 78
 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
79 79
     'Dlf',
80 80
     'Calendar',
81
-    $pluginsLabel . 'calendar.title',
82
-    $iconsDirectory . 'tx-dlf-calendar.svg'
81
+    $pluginsLabel.'calendar.title',
82
+    $iconsDirectory.'tx-dlf-calendar.svg'
83 83
 );
84 84
 
85 85
 // Plugin "collection".
@@ -90,14 +90,14 @@  discard block
 block discarded – undo
90 90
 
91 91
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue(
92 92
     $plugin,
93
-    $flexFormsDirectory . 'Collection.xml'
93
+    $flexFormsDirectory.'Collection.xml'
94 94
 );
95 95
 
96 96
 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
97 97
     'Dlf',
98 98
     'Collection',
99
-    $pluginsLabel . 'collection.title',
100
-    $iconsDirectory . 'tx-dlf-collection.svg'
99
+    $pluginsLabel.'collection.title',
100
+    $iconsDirectory.'tx-dlf-collection.svg'
101 101
 );
102 102
 
103 103
 // Plugin "embedded3dviewer".
@@ -108,14 +108,14 @@  discard block
 block discarded – undo
108 108
 
109 109
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue(
110 110
     'dlf_embedded3dviewer',
111
-    $flexFormsDirectory . 'Embedded3dViewer.xml'
111
+    $flexFormsDirectory.'Embedded3dViewer.xml'
112 112
 );
113 113
 
114 114
 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
115 115
     'Dlf',
116 116
     'Embedded3dViewer',
117
-    $pluginsLabel . 'embedded3dviewer.title',
118
-    $iconsDirectory . 'tx-dlf-embedded3dviewer.svg'
117
+    $pluginsLabel.'embedded3dviewer.title',
118
+    $iconsDirectory.'tx-dlf-embedded3dviewer.svg'
119 119
 );
120 120
 
121 121
 // Plugin "feeds".
@@ -126,14 +126,14 @@  discard block
 block discarded – undo
126 126
 
127 127
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue(
128 128
     $plugin,
129
-    $flexFormsDirectory . 'Feeds.xml'
129
+    $flexFormsDirectory.'Feeds.xml'
130 130
 );
131 131
 
132 132
 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
133 133
     'Dlf',
134 134
     'Feeds',
135
-    $pluginsLabel . 'feeds.title',
136
-    $iconsDirectory . 'tx-dlf-feeds.svg'
135
+    $pluginsLabel.'feeds.title',
136
+    $iconsDirectory.'tx-dlf-feeds.svg'
137 137
 );
138 138
 
139 139
 // Plugin "listview".
@@ -144,14 +144,14 @@  discard block
 block discarded – undo
144 144
 
145 145
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue(
146 146
     $plugin,
147
-    $flexFormsDirectory . 'ListView.xml'
147
+    $flexFormsDirectory.'ListView.xml'
148 148
 );
149 149
 
150 150
 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
151 151
     'Dlf',
152 152
     'ListView',
153
-    $pluginsLabel . 'listview.title',
154
-    $iconsDirectory . 'tx-dlf-listview.svg'
153
+    $pluginsLabel.'listview.title',
154
+    $iconsDirectory.'tx-dlf-listview.svg'
155 155
 );
156 156
 
157 157
 // Plugin "metadata".
@@ -161,14 +161,14 @@  discard block
 block discarded – undo
161 161
 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist'][$plugin] = $addList;
162 162
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue(
163 163
     $plugin,
164
-    $flexFormsDirectory . 'Metadata.xml'
164
+    $flexFormsDirectory.'Metadata.xml'
165 165
 );
166 166
 
167 167
 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
168 168
     'Dlf',
169 169
     'Metadata',
170
-    $pluginsLabel . 'metadata.title',
171
-    $iconsDirectory . 'tx-dlf-metadata.svg'
170
+    $pluginsLabel.'metadata.title',
171
+    $iconsDirectory.'tx-dlf-metadata.svg'
172 172
 );
173 173
 
174 174
 // Plugin "navigation".
@@ -179,14 +179,14 @@  discard block
 block discarded – undo
179 179
 
180 180
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue(
181 181
     $plugin,
182
-    $flexFormsDirectory . 'Navigation.xml'
182
+    $flexFormsDirectory.'Navigation.xml'
183 183
 );
184 184
 
185 185
 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
186 186
     'Dlf',
187 187
     'Navigation',
188
-    $pluginsLabel . 'navigation.title',
189
-    $iconsDirectory . 'tx-dlf-navigation.svg'
188
+    $pluginsLabel.'navigation.title',
189
+    $iconsDirectory.'tx-dlf-navigation.svg'
190 190
 );
191 191
 
192 192
 // Plugin "oaipmh".
@@ -197,14 +197,14 @@  discard block
 block discarded – undo
197 197
 
198 198
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue(
199 199
     $plugin,
200
-    $flexFormsDirectory . 'OaiPmh.xml'
200
+    $flexFormsDirectory.'OaiPmh.xml'
201 201
 );
202 202
 
203 203
 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
204 204
     'Dlf',
205 205
     'OaiPmh',
206
-    $pluginsLabel . 'oaipmh.title',
207
-    $iconsDirectory . 'tx-dlf-oaipmh.svg'
206
+    $pluginsLabel.'oaipmh.title',
207
+    $iconsDirectory.'tx-dlf-oaipmh.svg'
208 208
 );
209 209
 
210 210
 // Plugin "pagegrid".
@@ -214,14 +214,14 @@  discard block
 block discarded – undo
214 214
 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist'][$plugin] = $addList;
215 215
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue(
216 216
     $plugin,
217
-    $flexFormsDirectory . 'PageGrid.xml'
217
+    $flexFormsDirectory.'PageGrid.xml'
218 218
 );
219 219
 
220 220
 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
221 221
     'Dlf',
222 222
     'PageGrid',
223
-    $pluginsLabel . 'pagegrid.title',
224
-    $iconsDirectory . 'tx-dlf-pagegrid.svg'
223
+    $pluginsLabel.'pagegrid.title',
224
+    $iconsDirectory.'tx-dlf-pagegrid.svg'
225 225
 );
226 226
 
227 227
 // Plugin "pageview".
@@ -231,14 +231,14 @@  discard block
 block discarded – undo
231 231
 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist'][$plugin] = $addList;
232 232
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue(
233 233
     $plugin,
234
-    $flexFormsDirectory . 'PageView.xml'
234
+    $flexFormsDirectory.'PageView.xml'
235 235
 );
236 236
 
237 237
 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
238 238
     'Dlf',
239 239
     'PageView',
240
-    $pluginsLabel . 'plugins.pageview.title',
241
-    $iconsDirectory . 'tx-dlf-pageview.svg'
240
+    $pluginsLabel.'plugins.pageview.title',
241
+    $iconsDirectory.'tx-dlf-pageview.svg'
242 242
 );
243 243
 
244 244
 // Plugin "search".
@@ -249,14 +249,14 @@  discard block
 block discarded – undo
249 249
 
250 250
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue(
251 251
     $plugin,
252
-    $flexFormsDirectory . 'Search.xml'
252
+    $flexFormsDirectory.'Search.xml'
253 253
 );
254 254
 
255 255
 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
256 256
     'Dlf',
257 257
     'Search',
258
-    $pluginsLabel . 'search.title',
259
-    $iconsDirectory . 'tx-dlf-search.svg'
258
+    $pluginsLabel.'search.title',
259
+    $iconsDirectory.'tx-dlf-search.svg'
260 260
 );
261 261
 
262 262
 // Plugin "statistics".
@@ -267,14 +267,14 @@  discard block
 block discarded – undo
267 267
 
268 268
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue(
269 269
     $plugin,
270
-    $flexFormsDirectory . 'Statistics.xml'
270
+    $flexFormsDirectory.'Statistics.xml'
271 271
 );
272 272
 
273 273
 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
274 274
     'Dlf',
275 275
     'Statistics',
276
-    $pluginsLabel . 'statistics.title',
277
-    $iconsDirectory . 'tx-dlf-statistics.svg'
276
+    $pluginsLabel.'statistics.title',
277
+    $iconsDirectory.'tx-dlf-statistics.svg'
278 278
 );
279 279
 
280 280
 // Plugin "tableofcontents".
@@ -285,14 +285,14 @@  discard block
 block discarded – undo
285 285
 
286 286
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue(
287 287
     $plugin,
288
-    $flexFormsDirectory . 'TableOfContents.xml'
288
+    $flexFormsDirectory.'TableOfContents.xml'
289 289
 );
290 290
 
291 291
 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
292 292
     'Dlf',
293 293
     'TableOfContents',
294
-    $pluginsLabel . 'tableofcontents.title',
295
-    $iconsDirectory . 'tx-dlf-tableofcontents.svg'
294
+    $pluginsLabel.'tableofcontents.title',
295
+    $iconsDirectory.'tx-dlf-tableofcontents.svg'
296 296
 );
297 297
 
298 298
 // Plugin "toolbox".
@@ -302,12 +302,12 @@  discard block
 block discarded – undo
302 302
 $GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist'][$plugin] = $addList;
303 303
 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue(
304 304
     $plugin,
305
-    $flexFormsDirectory . 'Toolbox.xml'
305
+    $flexFormsDirectory.'Toolbox.xml'
306 306
 );
307 307
 
308 308
 \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin(
309 309
     'Dlf',
310 310
     'Toolbox',
311
-    $pluginsLabel . 'toolbox.title',
312
-    $iconsDirectory . 'tx-dlf-toolbox.svg'
311
+    $pluginsLabel.'toolbox.title',
312
+    $iconsDirectory.'tx-dlf-toolbox.svg'
313 313
 );
Please login to merge, or discard this patch.