$crawler = new Crawler($html);
$result = $crawler
->filterXpath('//img')
- ->extract(array('src'));
+ ->extract(['src']);
$relativePath = $this->getRelativePath($entryId);
continue;
}
- // if image contains "&"" and we can't find it in the html
- // it might be because it's encoded as &
+ // if image contains "&" and we can't find it in the html it might be because it's encoded as &
if (false !== stripos($image, '&') && false === stripos($html, $image)) {
$image = str_replace('&', '&', $image);
}