Skip to content

Commit

Permalink
[FEATURE][IN23-284]changed str_strt with strpos for php 7 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
DRdevil27 committed Oct 18, 2024
1 parent 67f5555 commit ca5f313
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Console/Command/Import.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,13 +205,12 @@ private function renderConversion($data)
/**
* @param $fromUrl
* @param $storeId
* @return int
*/
private function getStoreView($fromUrl): int
private function getStoreView($fromUrl)
{
$storeId = $this->storeManager->getDefaultStoreView()->getId();
foreach ($this->storeRepository->getList() as $store) {
if (str_starts_with($fromUrl, $store->getBaseUrl())) {
if (strpos($fromUrl, $store->getBaseUrl(), 0)) {
$storeId = $store->getId();
break;
}
Expand Down

0 comments on commit ca5f313

Please sign in to comment.