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(
7474 *
7575 * @param RequestInterface $request
7676 * @return array
77+ *
78+ * @SuppressWarnings(PHPMD.CyclomaticComplexity)
79+ * @SuppressWarnings(PHPMD.NPathComplexity)
7780 */
7881 public function getSort (RequestInterface $ request )
7982 {
@@ -94,7 +97,10 @@ public function getSort(RequestInterface $request)
9497 if (isset ($ this ->map [$ fieldName ])) {
9598 $ fieldName = $ this ->map [$ fieldName ];
9699 }
97- if ($ attribute ->isSortable () && !$ attribute ->isComplexType () && !($ attribute ->isFloatType () || $ attribute ->isIntegerType ())) {
100+ if ($ attribute ->isSortable () &&
101+ !$ attribute ->isComplexType () &&
102+ !($ attribute ->isFloatType () || $ attribute ->isIntegerType ())
103+ ) {
98104 $ suffix = $ this ->fieldNameResolver ->getFieldName (
99105 $ attribute ,
100106 ['type ' => FieldMapperInterface::TYPE_SORT ]
You can’t perform that action at this time.
0 commit comments