@@ -3,7 +3,6 @@ |
||
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 |
@@ -261,8 +261,8 @@ discard block |
||
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 |
||
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 |
||
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 | } |