original_string: 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');
      }
code: 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');
      }
code_tokens: 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' ) ; }
docstring: Returns extracted data from the paperclip instance for a variant.
  
  @param PaperclipAttachmentInstance $paperclip
  @param string                      $variant
  @return array    associative
docstring_tokens: Returns extracted data from the paperclip instance for a variant .