File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
app/code/Magento/Elasticsearch/SearchAdapter/Query/Builder Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,9 @@ public function __construct(
74
74
*
75
75
* @param RequestInterface $request
76
76
* @return array
77
+ *
78
+ * @SuppressWarnings(PHPMD.CyclomaticComplexity)
79
+ * @SuppressWarnings(PHPMD.NPathComplexity)
77
80
*/
78
81
public function getSort (RequestInterface $ request )
79
82
{
@@ -94,7 +97,10 @@ public function getSort(RequestInterface $request)
94
97
if (isset ($ this ->map [$ fieldName ])) {
95
98
$ fieldName = $ this ->map [$ fieldName ];
96
99
}
97
- if ($ attribute ->isSortable () && !$ attribute ->isComplexType () && !($ attribute ->isFloatType () || $ attribute ->isIntegerType ())) {
100
+ if ($ attribute ->isSortable () &&
101
+ !$ attribute ->isComplexType () &&
102
+ !($ attribute ->isFloatType () || $ attribute ->isIntegerType ())
103
+ ) {
98
104
$ suffix = $ this ->fieldNameResolver ->getFieldName (
99
105
$ attribute ,
100
106
['type ' => FieldMapperInterface::TYPE_SORT ]
You can’t perform that action at this time.
0 commit comments