original_string: public function getRiverItem() {
  
  		if (isset($this->_river_item)) {
  			return $this->_river_item;
  		}
  
  		$id = $this->river_id;
  
  		$items = elgg_get_river(array(
  			'ids' => $id,
  			'limit' => 1,
  		));
  
  		$this->_river_item = (is_array($items) && count($items)) ? $items[0] : false;
  		return $this->_river_item;
  	}
code: public function getRiverItem() {
  
  		if (isset($this->_river_item)) {
  			return $this->_river_item;
  		}
  
  		$id = $this->river_id;
  
  		$items = elgg_get_river(array(
  			'ids' => $id,
  			'limit' => 1,
  		));
  
  		$this->_river_item = (is_array($items) && count($items)) ? $items[0] : false;
  		return $this->_river_item;
  	}
code_tokens: public function getRiverItem ( ) { if ( isset ( $ this -> _river_item ) ) { return $ this -> _river_item ; } $ id = $ this -> river_id ; $ items = elgg_get_river ( array ( 'ids' => $ id , 'limit' => 1 , ) ) ; $ this -> _river_item = ( is_array ( $ items ) && count ( $ items ) ) ? $ items [ 0 ] : false ; return $ this -> _river_item ; }
docstring: Get river item
  @return ElggRiverItem|false
docstring_tokens: Get river item