protected function style(AttachmentDataInterface $attachment, $variant = '')
    {
        if ($variant) {
            return $variant;
        }

        return Arr::get($attachment->getConfig(), 'default-variant', FileHandler::ORIGINAL);
    }
protected function style(AttachmentDataInterface $attachment, $variant = '')
    {
        if ($variant) {
            return $variant;
        }

        return Arr::get($attachment->getConfig(), 'default-variant', FileHandler::ORIGINAL);
    }
protected function style ( AttachmentDataInterface $ attachment , $ variant = '' ) { if ( $ variant ) { return $ variant ; } return Arr :: get ( $ attachment -> getConfig ( ) , 'default-variant' , FileHandler :: ORIGINAL ) ; }
Returns the style, or the default style if an empty style is supplied.

@param AttachmentDataInterface $attachment
@param string                  $variant
@return string
Returns the style or the default style if an empty style is supplied .