Form/EventListener/CharacteristicsResizeListener.php
private function isNullOrEqualsParentData(CharacteristicInterface $characteristic)
    {
        if ($characteristic->isNull()) {
            return true;
        } elseif (null !== $this->parentDatas &&
            null !== $parentCharacteristic = $this->parentDatas->findCharacteristicByIdentifier($characteristic->getIdentifier())) {
            return $parentCharacteristic->equals($characteristic);
        }

        return false;
    }
private function isNullOrEqualsParentData(CharacteristicInterface $characteristic)
    {
        if ($characteristic->isNull()) {
            return true;
        } elseif (null !== $this->parentDatas &&
            null !== $parentCharacteristic = $this->parentDatas->findCharacteristicByIdentifier($characteristic->getIdentifier())) {
            return $parentCharacteristic->equals($characteristic);
        }

        return false;
    }
private function isNullOrEqualsParentData ( CharacteristicInterface $ characteristic ) { if ( $ characteristic -> isNull ( ) ) { return true ; } elseif ( null !== $ this -> parentDatas && null !== $ parentCharacteristic = $ this -> parentDatas -> findCharacteristicByIdentifier ( $ characteristic -> getIdentifier ( ) ) ) { return $ parentCharacteristic -> equals ( $ characteristic ) ; } return false ; }
Returns whether the characteristic is null or equals parent's or not.

@param \Ekyna\Component\Characteristics\Model\CharacteristicInterface $characteristic
@return bool
Returns whether the characteristic is null or equals parent s or not .