Skip to content

Commit 98a707a

Browse files
committed
removed useless imports
1 parent 9446ac2 commit 98a707a

File tree

6 files changed

+4
-13
lines changed

6 files changed

+4
-13
lines changed

Block/Adminhtml/System/Config/Form/Field/SocialLinks.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@
1010
namespace Paskel\Seo\Block\Adminhtml\System\Config\Form\Field;
1111

1212
use Magento\Config\Block\System\Config\Form\Field\FieldArray\AbstractFieldArray;
13-
use Magento\Framework\DataObject;
14-
use Magento\Framework\Exception\LocalizedException;
15-
use Paskel\Seo\Block\Adminhtml\System\Config\Form\Field\Column\CountryColumn;
16-
use Paskel\Seo\Block\Adminhtml\System\Config\Form\Field\Column\LanguageColumn;
1713

1814
/**
1915
* Class SocialLinks

Controller/Adminhtml/SocialMarkup/ImageUpload.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
namespace Paskel\Seo\Controller\Adminhtml\SocialMarkup;
1111

12+
use Exception;
1213
use Magento\Backend\App\Action;
1314
use Magento\Backend\App\Action\Context;
1415
use Magento\Catalog\Model\ImageUploader;
@@ -50,7 +51,7 @@ public function execute()
5051
{
5152
try {
5253
$result = $this->imageUploader->saveFileToTmpDir(SocialMarkupInterface::IMAGE_FIELD_DB);
53-
} catch (\Exception $e) {
54+
} catch (Exception $e) {
5455
$result = ['error' => $e->getMessage(), 'errorcode' => $e->getCode()];
5556
}
5657
return $this->resultFactory->create(ResultFactory::TYPE_JSON)->setData($result);

Model/SchemaOrg/Website.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,10 @@
1111

1212
use Magento\Framework\App\Config\ScopeConfigInterface;
1313
use Magento\Framework\Exception\NoSuchEntityException;
14-
use Magento\Framework\Serialize\Serializer\Json;
15-
use Magento\Framework\UrlInterface;
1614
use Magento\Store\Model\ScopeInterface;
1715
use Magento\Store\Model\Store;
1816
use Magento\Store\Model\StoreManagerInterface;
1917
use Paskel\Seo\Helper\FrontendSettings;
20-
use Paskel\Seo\Helper\Url as UrlHelper;
2118

2219
/**
2320
* Class Website

Observer/Hreflang/ConfigSave.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,9 @@
99

1010
namespace Paskel\Seo\Observer\Hreflang;
1111

12-
use Magento\Cms\Model\Page;
13-
use Magento\CmsUrlRewrite\Model\CmsPageUrlRewriteGenerator;
14-
use Magento\Cms\Model\Page\Authorization;
1512
use Magento\Framework\Event\Observer;
1613
use Magento\Framework\Event\ObserverInterface;
1714
use Magento\Framework\Exception\LocalizedException;
18-
use Paskel\Seo\Helper\Hreflang as HreflangHelper;
1915
use Paskel\Seo\Console\Hreflang;
2016

2117
/**

Plugin/SocialMarkup/ImageUploaderFixer.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
namespace Paskel\Seo\Plugin\SocialMarkup;
1111

12+
use Exception;
1213
use Magento\Cms\Model\Page\DataProvider;
1314
use Magento\Framework\Filesystem\DirectoryList;
1415
use Paskel\Seo\Api\Data\SocialMarkupInterface;
@@ -58,7 +59,7 @@ public function afterGetData(DataProvider $subject, array $result)
5859
$pubPath = $this->_dir->getPath('pub');
5960
$size = filesize($pubPath . $imageUrl);
6061
}
61-
} catch (\Exception $e) {
62+
} catch (Exception $e) {
6263
// silence exception
6364
}
6465
$image = [

images/socialMarkup_settings.png

14.7 KB
Loading

0 commit comments

Comments
 (0)