forked from wallabag/wallabag
Cleanup
This commit is contained in:
@ -234,8 +234,6 @@ class ConfigController extends Controller
|
||||
*/
|
||||
public function resetAction($type)
|
||||
{
|
||||
$em = $this->getDoctrine()->getManager();
|
||||
|
||||
switch ($type) {
|
||||
case 'annotations':
|
||||
$this->getDoctrine()
|
||||
|
||||
@ -39,7 +39,7 @@ class TablePrefixSubscriber implements EventSubscriber
|
||||
return;
|
||||
}
|
||||
|
||||
$classMetadata->setTableName($this->prefix.$classMetadata->getTableName());
|
||||
$classMetadata->setPrimaryTable(['name' => $this->prefix.$classMetadata->getTableName()]);
|
||||
|
||||
foreach ($classMetadata->getAssociationMappings() as $fieldName => $mapping) {
|
||||
if ($mapping['type'] === ClassMetadataInfo::MANY_TO_MANY && isset($classMetadata->associationMappings[$fieldName]['joinTable']['name'])) {
|
||||
|
||||
@ -135,16 +135,16 @@ class DownloadImages
|
||||
|
||||
switch ($ext) {
|
||||
case 'gif':
|
||||
$result = imagegif($im, $localPath);
|
||||
imagegif($im, $localPath);
|
||||
$this->logger->debug('DownloadImages: Re-creating gif');
|
||||
break;
|
||||
case 'jpeg':
|
||||
case 'jpg':
|
||||
$result = imagejpeg($im, $localPath, self::REGENERATE_PICTURES_QUALITY);
|
||||
imagejpeg($im, $localPath, self::REGENERATE_PICTURES_QUALITY);
|
||||
$this->logger->debug('DownloadImages: Re-creating jpg');
|
||||
break;
|
||||
case 'png':
|
||||
$result = imagepng($im, $localPath, ceil(self::REGENERATE_PICTURES_QUALITY / 100 * 9));
|
||||
imagepng($im, $localPath, ceil(self::REGENERATE_PICTURES_QUALITY / 100 * 9));
|
||||
$this->logger->debug('DownloadImages: Re-creating png');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user