Skip to content

Commit

Permalink
Fix phpstan errors
Browse files Browse the repository at this point in the history
  • Loading branch information
0m3r committed Jul 17, 2023
1 parent fc8e70e commit 09477e1
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ class DataProvider
*/
private $tableResolver;

/**
* @var \Magento\Catalog\Model\Layer
*/
private $layer;

/**
* DataProvider constructor.
* @param ResourceConnection $resource
Expand Down
3 changes: 3 additions & 0 deletions Model/Indexer/IndexerHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ public function saveIndex($dimensions, \Traversable $documents)
foreach ($this->batch->getItems($documents, $this->batchSize) as $batchDocuments) {
$this->insertDocuments($batchDocuments, $dimensions);
}
return $this;
}

/**
Expand All @@ -114,6 +115,7 @@ public function deleteIndex($dimensions, \Traversable $documents)
$this->resource->getConnection()
->delete($this->getTableName($dimensions), ['entity_id in (?)' => $batchDocuments]);
}
return $this;
}

/**
Expand All @@ -123,6 +125,7 @@ public function cleanIndex($dimensions)
{
$this->indexStructure->delete($this->getIndexName(), $dimensions);
$this->indexStructure->create($this->getIndexName(), [], $dimensions);
return $this;
}

/**
Expand Down
1 change: 1 addition & 0 deletions Model/Search/FilterMapper/ExclusionStrategy.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ public function apply(
} elseif ($filter->getField() === 'category_ids') {
return $this->applyCategoryFilter($filter, $select);
}
return false;
}

/**
Expand Down
1 change: 1 addition & 0 deletions Setup/Patch/Data/MySQLCatalogSearchTableCreation.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ public function apply()
$this->indexStructure->create(Fulltext::INDEXER_ID, [], $dimension);
}
}
return $this;
}

/**
Expand Down

1 comment on commit 09477e1

@ci-swissuplabs
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job! All tests are passed!

Please sign in to comment.