Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions Model/ResourceModel/Post/Fulltext/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,9 @@ public function setStoreId($storeId)
*
* @return int
*/
public function getStoreId()
public function getStoreId(): int
{
return $this->storeId;
return (int)$this->storeId;
}

/**
Expand All @@ -141,7 +141,7 @@ public function getStoreId()
*
* @return $this
*/
public function addStoreFilter($store, $withAdmin = true)
public function addStoreFilter($store, $withAdmin = true): static
{
if (is_object($store)) {
$store = $store->getId();
Expand All @@ -157,13 +157,13 @@ public function addStoreFilter($store, $withAdmin = true)
/**
* Add search query filter
*
* @param string $query Search query text.
* @param string $term Search query text.
*
* @return \Comwrap\ElasticsuiteBlog\Model\ResourceModel\Post\Fulltext\Collection
*/
public function addSearchFilter($query)
public function addSearchFilter($term): static
{
$this->queryText = $query;
$this->queryText = $term;

return $this;
}
Expand Down