@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | ); |
74 | 74 | |
75 | 75 | foreach ($q->execute()->fetchAll() as $row) { |
76 | - $removeIds[] = (int) $row['uid']; |
|
76 | + $removeIds[] = (int)$row['uid']; |
|
77 | 77 | } |
78 | 78 | |
79 | 79 | if (empty($removeIds)) { |
@@ -112,12 +112,12 @@ discard block |
||
112 | 112 | ->fetch(); |
113 | 113 | |
114 | 114 | if (isset($row['value_id'])) { |
115 | - return (int) $row['value_id']; |
|
115 | + return (int)$row['value_id']; |
|
116 | 116 | } |
117 | 117 | |
118 | 118 | $matches = []; |
119 | 119 | if (\preg_match('/^idx-([0-9]+)$/', $value, $matches)) { |
120 | - return (int) $matches[1]; |
|
120 | + return (int)$matches[1]; |
|
121 | 121 | } |
122 | 122 | |
123 | 123 | return 0; |
@@ -139,17 +139,17 @@ discard block |
||
139 | 139 | ->where( |
140 | 140 | $q->expr()->andX( |
141 | 141 | $q->expr()->eq('tablename', $q->expr()->literal(IndexerService::TABLE_NAME)), |
142 | - $q->expr()->eq('value_id', $q->createNamedParameter((int) $value, \PDO::PARAM_INT)) |
|
142 | + $q->expr()->eq('value_id', $q->createNamedParameter((int)$value, \PDO::PARAM_INT)) |
|
143 | 143 | ) |
144 | 144 | ) |
145 | 145 | ->execute() |
146 | 146 | ->fetch(); |
147 | 147 | |
148 | 148 | if (isset($row['value_alias'])) { |
149 | - return (string) $row['value_alias']; |
|
149 | + return (string)$row['value_alias']; |
|
150 | 150 | } |
151 | 151 | |
152 | - $alias = $this->getIndexBase((int) $value); |
|
152 | + $alias = $this->getIndexBase((int)$value); |
|
153 | 153 | $alias = $this->cleanUrl($alias); |
154 | 154 | $entry = [ |
155 | 155 | 'tablename' => IndexerService::TABLE_NAME, |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | } |
164 | 164 | |
165 | 165 | $aliasBase = $alias; |
166 | - for ($i = 0;; ++$i) { |
|
166 | + for ($i = 0; ; ++$i) { |
|
167 | 167 | $alias = $i > 0 ? $aliasBase . '-' . $i : $aliasBase; |
168 | 168 | if (!$this->aliasAlreadyExists($alias)) { |
169 | 169 | $entry['value_alias'] = $alias; |
@@ -174,7 +174,7 @@ discard block |
||
174 | 174 | $q->resetQueryParts(); |
175 | 175 | $q->insert('tx_realurl_uniqalias')->values($entry)->execute(); |
176 | 176 | |
177 | - return (string) $alias; |
|
177 | + return (string)$alias; |
|
178 | 178 | } |
179 | 179 | |
180 | 180 | /** |
@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | ->where($queryBuilder->expr()->eq('value_alias', $queryBuilder->createNamedParameter($alias))) |
195 | 195 | ->execute() |
196 | 196 | ->fetchColumn(0); |
197 | - return (bool) $count; |
|
197 | + return (bool)$count; |
|
198 | 198 | } |
199 | 199 | |
200 | 200 | /** |
@@ -222,7 +222,7 @@ discard block |
||
222 | 222 | $processedTitle = $utility->convertToSafeString($alias); |
223 | 223 | } |
224 | 224 | |
225 | - return (string) $processedTitle; |
|
225 | + return (string)$processedTitle; |
|
226 | 226 | } |
227 | 227 | |
228 | 228 | /** |