protected function extractPaperclipVariantInfo(PaperclipAttachmentInstance $paperclip, $variant)
    {
        $config = $paperclip->getNormalizedConfig();

        $variantSteps = array_get($config, "variants.{$variant}", []);

        $dimensions = array_get($variantSteps, 'resize.dimensions');
        $extension  = array_get($variantSteps, "extensions.{$variant}");
        $mimeType   = array_get($variantSteps, "types.{$variant}");

        return compact('dimensions', 'extension', 'mimeType');
    }
protected function extractPaperclipVariantInfo(PaperclipAttachmentInstance $paperclip, $variant)
    {
        $config = $paperclip->getNormalizedConfig();

        $variantSteps = array_get($config, "variants.{$variant}", []);

        $dimensions = array_get($variantSteps, 'resize.dimensions');
        $extension  = array_get($variantSteps, "extensions.{$variant}");
        $mimeType   = array_get($variantSteps, "types.{$variant}");

        return compact('dimensions', 'extension', 'mimeType');
    }
protected function extractPaperclipVariantInfo ( PaperclipAttachmentInstance $ paperclip , $ variant ) { $ config = $ paperclip -> getNormalizedConfig ( ) ; $ variantSteps = array_get ( $ config , "variants.{$variant}" , [ ] ) ; $ dimensions = array_get ( $ variantSteps , 'resize.dimensions' ) ; $ extension = array_get ( $ variantSteps , "extensions.{$variant}" ) ; $ mimeType = array_get ( $ variantSteps , "types.{$variant}" ) ; return compact ( 'dimensions' , 'extension' , 'mimeType' ) ; }
Returns extracted data from the paperclip instance for a variant.

@param PaperclipAttachmentInstance $paperclip
@param string                      $variant
@return array    associative
Returns extracted data from the paperclip instance for a variant .