diff --git a/app/code/Magento/Swagger/Block/Index.php b/app/code/Magento/Swagger/Block/Index.php index 9df091eb7ff86..afa642bfb905c 100644 --- a/app/code/Magento/Swagger/Block/Index.php +++ b/app/code/Magento/Swagger/Block/Index.php @@ -19,7 +19,7 @@ class Index extends Template */ private function getParamStore() { - return ($this->getRequest()->getParam('store')) ? $this->getRequest()->getParam('store') : 'all'; + return $this->getRequest()->getParam('store') ?: 'all'; } /** diff --git a/app/code/Magento/Swagger/view/frontend/templates/swagger-ui/index.phtml b/app/code/Magento/Swagger/view/frontend/templates/swagger-ui/index.phtml index 6e8ad08efbf6b..27b3767f274bc 100644 --- a/app/code/Magento/Swagger/view/frontend/templates/swagger-ui/index.phtml +++ b/app/code/Magento/Swagger/view/frontend/templates/swagger-ui/index.phtml @@ -12,7 +12,7 @@ * Modified by Magento, Modifications Copyright © Magento, Inc. All rights reserved. */ -/** @var \Magento\Framework\View\Element\Template $block */ +/** @var \Magento\Swagger\Block\Index $block */ $schemaUrl = $block->getSchemaUrl(); ?>