Skip to content

Updated the annotations and added translation for Magento_Search module. #17412

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions app/code/Magento/Search/Block/Adminhtml/Dashboard/Last.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ protected function _construct()

/**
* @return $this
* @throws \Magento\Framework\Exception\LocalizedException
*/
protected function _prepareCollection()
{
Expand All @@ -86,6 +87,7 @@ protected function _prepareCollection()

/**
* @return $this
* @throws \Exception
*/
protected function _prepareColumns()
{
Expand Down
2 changes: 2 additions & 0 deletions app/code/Magento/Search/Block/Adminhtml/Term/Edit/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ protected function _construct()
* Prepare form fields
*
* @return $this
* @throws \Magento\Framework\Exception\LocalizedException
* @throws \Magento\Framework\Exception\NoSuchEntityException
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
*/
protected function _prepareForm()
Expand Down
2 changes: 2 additions & 0 deletions app/code/Magento/Search/Block/Term.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ public function __construct(
* Load terms and try to sort it by names
*
* @return $this
* @throws \Magento\Framework\Exception\NoSuchEntityException
*/
protected function _loadTerms()
{
Expand Down Expand Up @@ -109,6 +110,7 @@ protected function _loadTerms()

/**
* @return array
* @throws \Magento\Framework\Exception\NoSuchEntityException
*/
public function getTerms()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,10 @@ class Edit extends \Magento\Backend\App\Action
/**
* Edit constructor.
*
* @param \Magento\Backend\App\Action\Context $context
* @param \Magento\Backend\Model\Session $session
* @param \Magento\Framework\Registry $registry
* @param \Magento\Backend\App\Action\Context $context
* @param \Magento\Framework\Registry $registry
* @param \Magento\Search\Controller\Adminhtml\Synonyms\ResultPageBuilder $pageBuilder
* @param \Magento\Search\Api\SynonymGroupRepositoryInterface $synGroupRepository
* @param \Magento\Search\Api\SynonymGroupRepositoryInterface $synGroupRepository
*/
public function __construct(
\Magento\Backend\App\Action\Context $context,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public function __construct(
* Export search report grid to CSV format
*
* @return \Magento\Framework\App\ResponseInterface
* @throws \Exception
*/
public function execute()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public function __construct(
* Export search report to Excel XML format
*
* @return \Magento\Framework\App\ResponseInterface
* @throws \Exception
*/
public function execute()
{
Expand Down
1 change: 1 addition & 0 deletions app/code/Magento/Search/Controller/Term/Popular.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ public function __construct(Context $context, ScopeConfigInterface $scopeConfig)
*
* @param \Magento\Framework\App\RequestInterface $request
* @return \Magento\Framework\App\ResponseInterface
* @throws \Magento\Framework\Exception\NotFoundException
*/
public function dispatch(RequestInterface $request)
{
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Search/i18n/pt_BR.csv
Original file line number Diff line number Diff line change
@@ -1 +1 @@
"Search Engine","Search Engine"
"Search Engine","Mecanismo de Busca"