Skip to content
Open
Show file tree
Hide file tree
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
8 changes: 4 additions & 4 deletions Block/Product/RatingSnippet.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ public function __construct(
\Magento\Catalog\Api\CategoryRepositoryInterface $categoryRepository,
\Magento\Framework\Url\Helper\Data $urlHelper,
array $data = [],
\Magento\Customer\Model\Session $customerSession = null,
\Magento\Catalog\Model\CategoryFactory $categoryFactory = null,
ReviewsConfig $reviewsConfigHelper = null,
StoreManagerInterface $storeManager = null
?\Magento\Customer\Model\Session $customerSession = null,
?\Magento\Catalog\Model\CategoryFactory $categoryFactory = null,
?ReviewsConfig $reviewsConfigHelper = null,
?StoreManagerInterface $storeManager = null
) {
$this->_customerSession = $customerSession;
$this->categoryFactory = $categoryFactory;
Expand Down
2 changes: 1 addition & 1 deletion Block/Richsnippet.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public function getRichSnippetSource()
return '<script src="' . $url . '"></script>';
}

public function getRichSnippet($sku = null, $product = null)
public function getRichSnippet(?$sku = null, ?$product = null)
{
if (isset($sku) && is_array($sku)) {
$sku = implode(';', $sku);
Expand Down
4 changes: 2 additions & 2 deletions Model/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function __construct(
$this->store = $storeManagerInterface->getStore();
}

public function apiPost($url, $data, $magento_store_id = null)
public function apiPost($url, $data, ?$magento_store_id = null)
{
if ($magento_store_id == null) {
$magento_store_id = $this->store->getId();
Expand All @@ -51,7 +51,7 @@ public function apiPost($url, $data, $magento_store_id = null)
return $response;
}

protected function getApiDomain($magento_store_id = null)
protected function getApiDomain(?$magento_store_id = null)
{
return $this->configHelper->getRegion($magento_store_id) == 'US' ? 'api.reviews.io' : 'api.reviews.co.uk';
}
Expand Down