Completed
Pull Request — master (#220)
by
unknown
07:54
created
Classes/Service/AbstractService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
 /**
4 4
  * Service abstraction.
5 5
  */
6
-declare(strict_types=1);
6
+declare(strict_types = 1);
7 7
 
8 8
 namespace HDNET\Calendarize\Service;
9 9
 
Please login to merge, or discard this patch.
Classes/Service/CalDav.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
 /**
4 4
  * Wrapper for the Cal Dav structure.
5 5
  */
6
-declare(strict_types=1);
6
+declare(strict_types = 1);
7 7
 
8 8
 namespace HDNET\Calendarize\Service;
9 9
 
Please login to merge, or discard this patch.
Classes/Service/ContentElementLayoutService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
 /**
4 4
  * Layout for BE content elements.
5 5
  */
6
-declare(strict_types=1);
6
+declare(strict_types = 1);
7 7
 
8 8
 namespace HDNET\Calendarize\Service;
9 9
 
Please login to merge, or discard this patch.
Classes/Service/IcsReaderService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
 /**
4 4
  * ICS Service.
5 5
  */
6
-declare(strict_types=1);
6
+declare(strict_types = 1);
7 7
 
8 8
 namespace HDNET\Calendarize\Service;
9 9
 
Please login to merge, or discard this patch.
Classes/Service/PluginConfigurationService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@  discard block
 block discarded – undo
3 3
 /**
4 4
  * PluginConfigurationService.
5 5
  */
6
-declare(strict_types=1);
6
+declare(strict_types = 1);
7 7
 
8 8
 namespace HDNET\Calendarize\Service;
9 9
 
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
      */
25 25
     public function respectPluginConfiguration(array $settings)
26 26
     {
27
-        $settings['pluginConfiguration'] = $this->buildPluginConfigurationObject((int) $settings['pluginConfiguration']);
27
+        $settings['pluginConfiguration'] = $this->buildPluginConfigurationObject((int)$settings['pluginConfiguration']);
28 28
         if ($settings['pluginConfiguration'] instanceof PluginConfiguration) {
29 29
             $checkFields = [
30 30
                 'detailPid',
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
     protected function buildPluginConfigurationObject($uid)
84 84
     {
85 85
         $db = HelperUtility::getDatabaseConnection();
86
-        $row = $db->exec_SELECTgetSingleRow('*', 'tx_calendarize_domain_model_pluginconfiguration', 'uid=' . (int) $uid);
86
+        $row = $db->exec_SELECTgetSingleRow('*', 'tx_calendarize_domain_model_pluginconfiguration', 'uid=' . (int)$uid);
87 87
         if (!isset($row['model_name'])) {
88 88
             return;
89 89
         }
Please login to merge, or discard this patch.
Classes/Service/IndexPreparationService.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
  * Helper class for the IndexService
5 5
  * Prepare the index.
6 6
  */
7
-declare(strict_types=1);
7
+declare(strict_types = 1);
8 8
 
9 9
 namespace HDNET\Calendarize\Service;
10 10
 
@@ -82,11 +82,11 @@  discard block
 block discarded – undo
82 82
         if (!$languageField || !$transPointer) {
83 83
             return;
84 84
         }
85
-        if ((int) $record[$transPointer] > 0) {
85
+        if ((int)$record[$transPointer] > 0) {
86 86
             // no Index for language child elements
87 87
             return;
88 88
         }
89
-        $language = (int) $record[$languageField];
89
+        $language = (int)$record[$languageField];
90 90
 
91 91
         foreach (\array_keys($neededItems) as $key) {
92 92
             $neededItems[$key]['sys_language_uid'] = $language;
@@ -109,16 +109,16 @@  discard block
 block discarded – undo
109 109
 
110 110
         $addFields = [];
111 111
         if (isset($enableFields['disabled'])) {
112
-            $addFields['hidden'] = (int) $record[$enableFields['disabled']];
112
+            $addFields['hidden'] = (int)$record[$enableFields['disabled']];
113 113
         }
114 114
         if (isset($enableFields['starttime'])) {
115
-            $addFields['starttime'] = (int) $record[$enableFields['starttime']];
115
+            $addFields['starttime'] = (int)$record[$enableFields['starttime']];
116 116
         }
117 117
         if (isset($enableFields['endtime'])) {
118
-            $addFields['endtime'] = (int) $record[$enableFields['endtime']];
118
+            $addFields['endtime'] = (int)$record[$enableFields['endtime']];
119 119
         }
120 120
         if (isset($enableFields['fe_group'])) {
121
-            $addFields['fe_group'] = (string) $record[$enableFields['fe_group']];
121
+            $addFields['fe_group'] = (string)$record[$enableFields['fe_group']];
122 122
         }
123 123
 
124 124
         foreach ($neededItems as $key => $value) {
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
             if ($value instanceof \DateTimeInterface) {
138 138
                 $record[$key] = $value->getTimestamp();
139 139
             } elseif (\is_bool($value) || 'start_time' === $key || 'end_time' === $key) {
140
-                $record[$key] = (int) $value;
140
+                $record[$key] = (int)$value;
141 141
             } elseif (null === $value) {
142 142
                 $record[$key] = '';
143 143
             }
Please login to merge, or discard this patch.
Classes/Service/Url/CoolUri.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@  discard block
 block discarded – undo
3 3
 /**
4 4
  * CoolUri.
5 5
  */
6
-declare(strict_types=1);
6
+declare(strict_types = 1);
7 7
 
8 8
 namespace HDNET\Calendarize\Service\Url;
9 9
 
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
      */
60 60
     public function coolUri($xml, $value)
61 61
     {
62
-        $alias = $this->getIndexBase((int) $value);
62
+        $alias = $this->getIndexBase((int)$value);
63 63
         $alias = Functions::URLize($alias);
64 64
         $alias = Functions::sanitize_title_with_dashes($alias);
65 65
 
Please login to merge, or discard this patch.
Classes/Service/Url/AbstractUrl.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@  discard block
 block discarded – undo
3 3
 /**
4 4
  * AbstractUrl.
5 5
  */
6
-declare(strict_types=1);
6
+declare(strict_types = 1);
7 7
 
8 8
 namespace HDNET\Calendarize\Service\Url;
9 9
 
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     protected function getIndexBase($indexUid)
37 37
     {
38 38
         $indexRepository = HelperUtility::create(IndexRepository::class);
39
-        $index = $indexRepository->findByUid((int) $indexUid);
39
+        $index = $indexRepository->findByUid((int)$indexUid);
40 40
         if (!($index instanceof Index)) {
41 41
             return 'idx-' . $indexUid;
42 42
         }
Please login to merge, or discard this patch.
Classes/Service/Url/RealUrl.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@  discard block
 block discarded – undo
3 3
 /**
4 4
  * RealUrl.
5 5
  */
6
-declare(strict_types=1);
6
+declare(strict_types = 1);
7 7
 
8 8
 namespace HDNET\Calendarize\Service\Url;
9 9
 
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 WHERE tx_calendarize_domain_model_index.uid IS NULL AND tx_realurl_uniqalias.tablename=\'tx_calendarize_domain_model_index\'';
65 65
         $res = $databaseConnection->admin_query($selectInvalidItems);
66 66
         while ($row = $databaseConnection->sql_fetch_assoc($res)) {
67
-            $removeIds[] = (int) $row['uid'];
67
+            $removeIds[] = (int)$row['uid'];
68 68
         }
69 69
         if (empty($removeIds)) {
70 70
             return;
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
             )
93 93
         );
94 94
         if (isset($row['value_id'])) {
95
-            return (int) $row['value_id'];
95
+            return (int)$row['value_id'];
96 96
         }
97 97
 
98 98
         $matches = [];
@@ -117,13 +117,13 @@  discard block
 block discarded – undo
117 117
             'tablename=' . $databaseConnection->fullQuoteStr(
118 118
                 IndexerService::TABLE_NAME,
119 119
                 IndexerService::TABLE_NAME
120
-            ) . ' AND value_id=' . (int) $value
120
+            ) . ' AND value_id=' . (int)$value
121 121
         );
122 122
         if (isset($row['value_alias'])) {
123 123
             return $row['value_alias'];
124 124
         }
125 125
 
126
-        $alias = $this->getIndexBase((int) $value);
126
+        $alias = $this->getIndexBase((int)$value);
127 127
         $alias = $this->cleanUrl($alias);
128 128
 
129 129
         $databaseConnection = HelperUtility::getDatabaseConnection();
Please login to merge, or discard this patch.