original_string: public function stripResponseData(array $data)
  	{
  		if (isset($data[self::getEntityName()]) && is_array($data[self::getEntityName()]))
  			$data = $data[self::getEntityName()];
  
  		if (isset($data[self::getSingularEntityName()]) && is_array($data[self::getSingularEntityName()]))
  			$data = $data[self::getSingularEntityName()];
  
  		return $data;
  	}
code: public function stripResponseData(array $data)
  	{
  		if (isset($data[self::getEntityName()]) && is_array($data[self::getEntityName()]))
  			$data = $data[self::getEntityName()];
  
  		if (isset($data[self::getSingularEntityName()]) && is_array($data[self::getSingularEntityName()]))
  			$data = $data[self::getSingularEntityName()];
  
  		return $data;
  	}
code_tokens: public function stripResponseData ( array $ data ) { if ( isset ( $ data [ self :: getEntityName ( ) ] ) && is_array ( $ data [ self :: getEntityName ( ) ] ) ) $ data = $ data [ self :: getEntityName ( ) ] ; if ( isset ( $ data [ self :: getSingularEntityName ( ) ] ) && is_array ( $ data [ self :: getSingularEntityName ( ) ] ) ) $ data = $ data [ self :: getSingularEntityName ( ) ] ; return $ data ; }
docstring: This function removes all the unecessary data from a response
  and leaves us with what we need when trying to populate objects or
  collections with data
  
  @param  array $data
  @return array
docstring_tokens: This function removes all the unecessary data from a response and leaves us with what we need when trying to populate objects or collections with data