From c776df631fd47dd8d8d69ed9f059745da4686f69 Mon Sep 17 00:00:00 2001 From: Roman Glushko Date: Mon, 2 Jul 2018 23:35:31 +0300 Subject: [PATCH] #32 Fixed code styling --- .../CmsGraphQl/Model/Resolver/Cms/CmsBlockDataProvider.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/code/Magento/CmsGraphQl/Model/Resolver/Cms/CmsBlockDataProvider.php b/app/code/Magento/CmsGraphQl/Model/Resolver/Cms/CmsBlockDataProvider.php index 98e9503df83..f3a6bda382d 100644 --- a/app/code/Magento/CmsGraphQl/Model/Resolver/Cms/CmsBlockDataProvider.php +++ b/app/code/Magento/CmsGraphQl/Model/Resolver/Cms/CmsBlockDataProvider.php @@ -9,6 +9,7 @@ use Magento\Cms\Api\BlockRepositoryInterface as CmsBlockRepositoryInterface; use Magento\Cms\Api\Data\BlockInterface as CmsBlockInterface; +use Magento\Framework\Exception\LocalizedException; use Magento\Framework\Exception\NoSuchEntityException; use Magento\Framework\GraphQl\Exception\GraphQlInputException; @@ -37,6 +38,7 @@ public function __construct( * @param string $cmsBlockIdentifier * @return array|GraphQlInputException * @throws NoSuchEntityException + * @throws LocalizedException */ public function getCmsBlockById(string $cmsBlockIdentifier) { @@ -65,5 +67,4 @@ private function processCmsBlock(CmsBlockInterface $cmsBlockModel) : array return $cmsBlockData; } - -} \ No newline at end of file +}