@@ -574,7 +574,7 @@ private function getAttributeValue($attributeId, $valueIds, $storeId)
574574 if (false !== $ value ) {
575575 $ optionValue = $ this ->getAttributeOptionValue ($ attributeId , $ valueIds , $ storeId );
576576 if (null === $ optionValue ) {
577- $ value = ( $ value !== null ) ? $ this ->filterAttributeValue ($ value ) : '' ;
577+ $ value = $ value !== null ? $ this ->filterAttributeValue ($ value ) : '' ;
578578 } else {
579579 $ value = implode ($ this ->separator , array_filter ([$ value , $ optionValue ]));
580580 }
@@ -594,7 +594,7 @@ private function getAttributeValue($attributeId, $valueIds, $storeId)
594594 private function getAttributeOptionValue ($ attributeId , $ valueIds , $ storeId )
595595 {
596596 $ optionKey = $ attributeId . '- ' . $ storeId ;
597- $ attributeValueIds = ( $ valueIds !== null ) ? explode (', ' , $ valueIds ) : ['' ];
597+ $ attributeValueIds = $ valueIds !== null ? explode (', ' , $ valueIds ) : [];
598598 $ attributeOptionValue = '' ;
599599 if (!array_key_exists ($ optionKey , $ this ->attributeOptions )
600600 ) {
@@ -608,7 +608,7 @@ private function getAttributeOptionValue($attributeId, $valueIds, $storeId)
608608 $ this ->attributeOptions [$ optionKey ] = array_column ($ options , 'label ' , 'value ' );
609609 $ this ->attributeOptions [$ optionKey ] = array_map (
610610 function ($ value ) {
611- return ( $ value !== null ) ? $ this ->filterAttributeValue ($ value ) : '' ;
611+ return $ value !== null ? $ this ->filterAttributeValue ($ value ) : '' ;
612612 },
613613 $ this ->attributeOptions [$ optionKey ]
614614 );
0 commit comments