Skip to content

Commit 1c087cd

Browse files
#23283: Static tests fix.
1 parent 412dd8a commit 1c087cd

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

app/code/Magento/Elasticsearch/Model/Adapter/FieldMapper/FieldMapperResolver.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
use Magento\Elasticsearch\Model\Adapter\FieldMapperInterface;
1010
use Magento\Elasticsearch\Model\Config;
1111

12+
/**
13+
* Field Mapper resolver.
14+
*/
1215
class FieldMapperResolver implements FieldMapperInterface
1316
{
1417
/**
@@ -43,7 +46,7 @@ public function __construct(
4346
}
4447

4548
/**
46-
* {@inheritdoc}
49+
* @inheritdoc
4750
*/
4851
public function getFieldName($attributeCode, $context = [])
4952
{
@@ -52,7 +55,7 @@ public function getFieldName($attributeCode, $context = [])
5255
}
5356

5457
/**
55-
* {@inheritdoc}
58+
* @inheritdoc
5659
*/
5760
public function getAllAttributesTypes($context = [])
5861
{
@@ -71,6 +74,7 @@ private function getEntity($entityType)
7174
{
7275
if (empty($this->fieldMapperEntity[$entityType])) {
7376
if (empty($entityType)) {
77+
// phpcs:ignore Magento2.Exceptions.DirectThrow
7478
throw new \Exception(
7579
'No entity type given'
7680
);

0 commit comments

Comments
 (0)