Completed
Push — master ( dd6eaf...7caedd )
by Tim
03:13
created
Classes/Service/Url/RealUrl.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
             );
73 73
 
74 74
         foreach ($q->execute()->fetchAll() as $row) {
75
-            $removeIds[] = (int) $row['uid'];
75
+            $removeIds[] = (int)$row['uid'];
76 76
         }
77 77
 
78 78
         if (empty($removeIds)) {
@@ -111,12 +111,12 @@  discard block
 block discarded – undo
111 111
             ->fetch();
112 112
 
113 113
         if (isset($row['value_id'])) {
114
-            return (int) $row['value_id'];
114
+            return (int)$row['value_id'];
115 115
         }
116 116
 
117 117
         $matches = [];
118 118
         if (\preg_match('/^idx-([0-9]+)$/', $value, $matches)) {
119
-            return (int) $matches[1];
119
+            return (int)$matches[1];
120 120
         }
121 121
 
122 122
         return 0;
@@ -138,17 +138,17 @@  discard block
 block discarded – undo
138 138
             ->where(
139 139
                 $q->expr()->andX(
140 140
                     $q->expr()->eq('tablename', $q->expr()->literal(IndexerService::TABLE_NAME)),
141
-                    $q->expr()->eq('value_id', $q->createNamedParameter((int) $value, \PDO::PARAM_INT))
141
+                    $q->expr()->eq('value_id', $q->createNamedParameter((int)$value, \PDO::PARAM_INT))
142 142
                 )
143 143
             )
144 144
             ->execute()
145 145
             ->fetch();
146 146
 
147 147
         if (isset($row['value_alias'])) {
148
-            return (string) $row['value_alias'];
148
+            return (string)$row['value_alias'];
149 149
         }
150 150
 
151
-        $alias = $this->getIndexBase((int) $value);
151
+        $alias = $this->getIndexBase((int)$value);
152 152
         $alias = $this->cleanUrl($alias);
153 153
 
154 154
         $entry = [
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     /**
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
         $db = HelperUtility::getDatabaseConnection('tx_realurl_uniqalias');
190 190
         $count = $db->count('*', 'tx_realurl_uniqalias', ['value_alias' => $db->quoteIdentifier($alias)]);
191 191
 
192
-        return (bool) $count;
192
+        return (bool)$count;
193 193
     }
194 194
 
195 195
     /**
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
             $processedTitle = $utility->convertToSafeString($alias);
218 218
         }
219 219
 
220
-        return (string) $processedTitle;
220
+        return (string)$processedTitle;
221 221
     }
222 222
 
223 223
     /**
Please login to merge, or discard this patch.