original_string: public function mapType($ctype)
      {
          if (is_array($ctype)) {
              return array_map([$this, 'mapType'], $ctype);
          }
  
          foreach ($this->_mimeTypes as $alias => $types) {
              if (in_array($ctype, (array)$types)) {
                  return $alias;
              }
          }
  
          return null;
      }
code: public function mapType($ctype)
      {
          if (is_array($ctype)) {
              return array_map([$this, 'mapType'], $ctype);
          }
  
          foreach ($this->_mimeTypes as $alias => $types) {
              if (in_array($ctype, (array)$types)) {
                  return $alias;
              }
          }
  
          return null;
      }
code_tokens: public function mapType ( $ ctype ) { if ( is_array ( $ ctype ) ) { return array_map ( [ $ this , 'mapType' ] , $ ctype ) ; } foreach ( $ this -> _mimeTypes as $ alias => $ types ) { if ( in_array ( $ ctype , ( array ) $ types ) ) { return $ alias ; } } return null ; }
docstring: Maps a content-type back to an alias
  
  e.g `mapType('application/pdf'); // returns 'pdf'`
  
  @param string|array $ctype Either a string content type to map, or an array of types.
  @return string|array|null Aliases for the types provided.
docstring_tokens: Maps a content - type back to an alias