Adapter/PlentymarketsAdapter/ResponseParser/Product/ProductResponseParser.php
private function getActive(array $variations, array $mainVariation)
    {
        $checkActiveMainVariation = json_decode($this->configService->get('check_active_main_variation'));

        if ($checkActiveMainVariation && !$mainVariation['isActive']) {
            return false;
        }

        foreach ($variations as $variation) {
            if ($variation->getActive()) {
                return true;
            }
        }

        return false;
    }
private function getActive(array $variations, array $mainVariation)
    {
        $checkActiveMainVariation = json_decode($this->configService->get('check_active_main_variation'));

        if ($checkActiveMainVariation && !$mainVariation['isActive']) {
            return false;
        }

        foreach ($variations as $variation) {
            if ($variation->getActive()) {
                return true;
            }
        }

        return false;
    }
private function getActive ( array $ variations , array $ mainVariation ) { $ checkActiveMainVariation = json_decode ( $ this -> configService -> get ( 'check_active_main_variation' ) ) ; if ( $ checkActiveMainVariation && ! $ mainVariation [ 'isActive' ] ) { return false ; } foreach ( $ variations as $ variation ) { if ( $ variation -> getActive ( ) ) { return true ; } } return false ; }
@param Variation[] $variations
@param array       $mainVariation

@return bool
@param Variation [] $variations @param array $mainVariation