Skip to content
This repository has been archived by the owner on Feb 13, 2023. It is now read-only.

use image position for cover image #2

Closed
wants to merge 1 commit into from

Conversation

kardi31
Copy link
Contributor

@kardi31 kardi31 commented Apr 30, 2021

Copy link
Contributor

@wfajczyk wfajczyk left a comment

Choose a reason for hiding this comment

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

In main branch we start GitHub Actions. Please merge main branche to Your branches.

@@ -26,6 +27,12 @@ public function map(
): Shopware6Product {
$media = $shopware6Product->getMedia();
if (!empty($media)) {
usort(
$media,
function (Shopware6ProductMedia $a, Shopware6ProductMedia $b) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Please change variabele name $a and $b.

@kardi31
Copy link
Contributor Author

kardi31 commented May 10, 2021

Closing as @krzysztofsurdy PR has been merged

@kardi31 kardi31 closed this May 10, 2021
@kardi31 kardi31 deleted the cover_image_sorting branch May 10, 2021 05:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants