Completed
Push — master ( a8983c...25637c )
by Tim
02:04
created
Classes/Domain/Model/Index.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -11,8 +11,6 @@
 block discarded – undo
11 11
 use HDNET\Calendarize\Register;
12 12
 use HDNET\Calendarize\Utility\DateTimeUtility;
13 13
 use HDNET\Calendarize\Utility\EventUtility;
14
-use TYPO3\CMS\Backend\Utility\BackendUtility;
15
-use TYPO3\CMS\Core\Utility\MathUtility;
16 14
 use TYPO3\CMS\Extbase\DomainObject\AbstractEntity;
17 15
 
18 16
 /**
Please login to merge, or discard this patch.
Classes/Domain/Repository/IndexRepository.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -92,13 +92,13 @@  discard block
 block discarded – undo
92 92
         $query->getQuerySettings()->setIgnoreEnableFields(true);
93 93
         $query->getQuerySettings()->setRespectSysLanguage(false);
94 94
         $query->getQuerySettings()->setLanguageOverlayMode(false);
95
-        $query->getQuerySettings()->setLanguageMode( "ignore");
95
+        $query->getQuerySettings()->setLanguageMode("ignore");
96 96
 
97 97
         // Notice Selection without any language handling
98 98
         unset($GLOBALS['TCA']['tx_calendarize_domain_model_index']['ctrl']['languageField']);
99 99
         unset($GLOBALS['TCA']['tx_calendarize_domain_model_index']['ctrl']['transOrigPointerField']);
100 100
 
101
-        $result =  $query->execute();
101
+        $result = $query->execute();
102 102
 
103 103
         return $result;
104 104
     }
@@ -379,7 +379,7 @@  discard block
 block discarded – undo
379 379
      */
380 380
     public function findWeek($year, $week, $weekStart = 1)
381 381
     {
382
-        $weekStart = (int) $weekStart;
382
+        $weekStart = (int)$weekStart;
383 383
         $daysShift = $weekStart - 1;
384 384
         $firstDay = DateTimeUtility::convertWeekYear2DayMonthYear($week, $year);
385 385
         $timezone = DateTimeUtility::getTimeZone();
@@ -402,7 +402,7 @@  discard block
 block discarded – undo
402 402
     public function findDifferentTypesAndLocations(): array
403 403
     {
404 404
         $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)->getQueryBuilderForTable('tx_calendarize_domain_model_index');
405
-        return (array) $queryBuilder->select('unique_register_key','pid', 'foreign_table')->from('tx_calendarize_domain_model_index')->groupBy('pid', 'foreign_table', 'unique_register_key')->execute()->fetchAll();
405
+        return (array)$queryBuilder->select('unique_register_key', 'pid', 'foreign_table')->from('tx_calendarize_domain_model_index')->groupBy('pid', 'foreign_table', 'unique_register_key')->execute()->fetchAll();
406 406
     }
407 407
 
408 408
     /**
@@ -495,7 +495,7 @@  discard block
 block discarded – undo
495 495
         $config = $objectManager->get(ConfigurationManagerInterface::class);
496 496
         $pluginConfig = $config->getConfiguration(ConfigurationManagerInterface::CONFIGURATION_TYPE_SETTINGS);
497 497
 
498
-        $mode = isset($pluginConfig['indexLanguageMode']) ? (string) $pluginConfig['indexLanguageMode'] : 'strict';
498
+        $mode = isset($pluginConfig['indexLanguageMode']) ? (string)$pluginConfig['indexLanguageMode'] : 'strict';
499 499
 
500 500
         return $mode;
501 501
     }
Please login to merge, or discard this patch.