Skip to content

Commit f9b3c17

Browse files
committed
#10089: Add fulltext/keyword search field for product admin grid
- Code style fixes
1 parent 4b15ec6 commit f9b3c17

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

app/code/Magento/CatalogSearch/Ui/DataProvider/Product/AddFulltextFilterToCollection.php

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
<?php
2-
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
36
namespace Magento\CatalogSearch\Ui\DataProvider\Product;
47

58
use Magento\Framework\Data\Collection;
@@ -11,16 +14,14 @@
1114
*/
1215
class AddFulltextFilterToCollection implements AddFilterToCollectionInterface
1316
{
14-
/*
17+
/**
1518
* Search Collection
1619
*
1720
* @var SearchCollection
1821
*/
1922
private $searchCollection;
2023

21-
/*
22-
* Construct
23-
*
24+
/**
2425
* @param SearchCollection $searchCollection
2526
*/
2627
public function __construct(SearchCollection $searchCollection)
@@ -31,7 +32,7 @@ public function __construct(SearchCollection $searchCollection)
3132
/**
3233
* {@inheritdoc}
3334
*
34-
* @SuppressWarnings("UnusedFormalParam")
35+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
3536
*/
3637
public function addFilter(Collection $collection, $field, $condition = null)
3738
{

app/code/Magento/CatalogSearch/view/adminhtml/ui_component/product_listing.xml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
28
<listing xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
39
<listingToolbar name="listing_top">
410
<filterSearch name="fulltext"/>

0 commit comments

Comments
 (0)