Completed
Pull Request — development (#767)
by Nick
44:59 queued 40:29
created
htdocs/src/OcLegacy/Admin/Gdpr/GdprHandler.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
                 WHERE cache_id = :cacheId;
226 226
 SQL
227 227
             , [
228
-                'cacheId' => (int) $cache['cache_id'],
228
+                'cacheId' => (int)$cache['cache_id'],
229 229
             ]);
230 230
 
231 231
             $this->connection->executeQuery(<<<'SQL'
@@ -237,19 +237,19 @@  discard block
 block discarded – undo
237 237
                 WHERE cache_id = :cacheId
238 238
 SQL
239 239
             , [
240
-                'cacheId' => (int) $cache['cache_id'],
240
+                'cacheId' => (int)$cache['cache_id'],
241 241
             ]);
242 242
 
243 243
             $this->connection->executeQuery('DELETE FROM cache_desc_modified WHERE cache_id = :cacheId', [
244
-                'cacheId' => (int) $cache['cache_id'],
244
+                'cacheId' => (int)$cache['cache_id'],
245 245
             ]);
246 246
 
247 247
             $this->connection->executeQuery('DELETE FROM cache_ignore WHERE cache_id = :cacheId', [
248
-                'cacheId' => (int) $cache['cache_id'],
248
+                'cacheId' => (int)$cache['cache_id'],
249 249
             ]);
250 250
 
251 251
             $this->connection->executeQuery('DELETE FROM caches_modified WHERE cache_id = :cacheId', [
252
-                'cacheId' => (int) $cache['cache_id'],
252
+                'cacheId' => (int)$cache['cache_id'],
253 253
             ]);
254 254
         }
255 255
     }
@@ -260,8 +260,8 @@  discard block
 block discarded – undo
260 260
             return [];
261 261
         }
262 262
 
263
-        $ids = array_map(static function (array $cache) use ($idField) {
264
-            return (int) $cache[$idField];
263
+        $ids = array_map(static function(array $cache) use ($idField) {
264
+            return (int)$cache[$idField];
265 265
         }, $data);
266 266
 
267 267
         $pictures = $this->connection->fetchAll('SELECT * FROM pictures WHERE object_id IN (' . implode(',', $ids) . ') AND object_type = :objectType', [
@@ -281,8 +281,8 @@  discard block
 block discarded – undo
281 281
             return [];
282 282
         }
283 283
 
284
-        $ids = array_map(static function (array $cache) use ($idField) {
285
-            return (int) $cache[$idField];
284
+        $ids = array_map(static function(array $cache) use ($idField) {
285
+            return (int)$cache[$idField];
286 286
         }, $data);
287 287
 
288 288
         return $this->connection->fetchAll('SELECT * FROM pictures_modified WHERE object_id IN (' . implode(',', $ids) . ') AND object_type = :objectType', [
Please login to merge, or discard this patch.