|
@@ -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.