original_string: public function createFrom($image)
      {
          $type           = pathinfo($image, PATHINFO_EXTENSION);
          $type           = ($type === 'jpg') ? 'jpeg' : $type;
          $createFrom     = 'ImageCreateFrom' . $type;
  
          return $createFrom($image);
      }
code: public function createFrom($image)
      {
          $type           = pathinfo($image, PATHINFO_EXTENSION);
          $type           = ($type === 'jpg') ? 'jpeg' : $type;
          $createFrom     = 'ImageCreateFrom' . $type;
  
          return $createFrom($image);
      }
code_tokens: public function createFrom ( $ image ) { $ type = pathinfo ( $ image , PATHINFO_EXTENSION ) ; $ type = ( $ type === 'jpg' ) ? 'jpeg' : $ type ; $ createFrom = 'ImageCreateFrom' . $ type ; return $ createFrom ( $ image ) ; }
docstring: Create image from type
  
  @param string $image
  @return mixed
docstring_tokens: Create image from type