Completed
Pull Request — development (#767)
by Nick
04:18
created
htdocs/src/OcLegacy/Admin/Gdpr/GdprHandler.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace OcLegacy\Admin\Gdpr;
4 4
 
5 5
 use Doctrine\DBAL\Connection;
6
-use Doctrine\DBAL\FetchMode;
7 6
 use Exception;
8 7
 
9 8
 class GdprHandler
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -261,8 +261,8 @@  discard block
 block discarded – undo
261 261
             return [];
262 262
         }
263 263
 
264
-        $ids = array_map(static function (array $cache) use ($idField) {
265
-            return (int) $cache[$idField];
264
+        $ids = array_map(static function(array $cache) use ($idField) {
265
+            return (int)$cache[$idField];
266 266
         }, $data);
267 267
 
268 268
         $pictures = $this->connection->fetchAll('SELECT * FROM pictures WHERE object_id IN (' . implode(',', $ids) . ') AND object_type = :objectType', [
@@ -283,8 +283,8 @@  discard block
 block discarded – undo
283 283
             return [];
284 284
         }
285 285
 
286
-        $ids = array_map(static function (array $cache) use ($idField) {
287
-            return (int) $cache[$idField];
286
+        $ids = array_map(static function(array $cache) use ($idField) {
287
+            return (int)$cache[$idField];
288 288
         }, $data);
289 289
 
290 290
         return $this->connection->fetchAll('SELECT * FROM pictures_modified WHERE object_id IN (' . implode(',', $ids) . ') AND object_type = :objectType', [
@@ -298,7 +298,7 @@  discard block
 block discarded – undo
298 298
             $imagePath = parse_url($picture['url'], PHP_URL_PATH);
299 299
             @unlink($this->projectDir . $imagePath);
300 300
 
301
-            if(isset($picture['thumb_url'])) {
301
+            if (isset($picture['thumb_url'])) {
302 302
                 $thumbPath = parse_url($picture['thumb_url'], PHP_URL_PATH);
303 303
                 @unlink($this->projectDir . $thumbPath);
304 304
             }
Please login to merge, or discard this patch.