original_string: public function update($current)
  	{
  		$this->validate();
  
  		if ($this->files()->isEmpty()) {
  			return $this->currentPictures($current);
  		}
  
  		$result = $this->mapUpdatedPictures($current);
  
  		if (count($result) == 1 && is_array($result[0])) {
  			return $result[0];
  		}
  
  		return $result;
  	}
code: public function update($current)
  	{
  		$this->validate();
  
  		if ($this->files()->isEmpty()) {
  			return $this->currentPictures($current);
  		}
  
  		$result = $this->mapUpdatedPictures($current);
  
  		if (count($result) == 1 && is_array($result[0])) {
  			return $result[0];
  		}
  
  		return $result;
  	}
code_tokens: public function update ( $ current ) { $ this -> validate ( ) ; if ( $ this -> files ( ) -> isEmpty ( ) ) { return $ this -> currentPictures ( $ current ) ; } $ result = $ this -> mapUpdatedPictures ( $ current ) ; if ( count ( $ result ) == 1 && is_array ( $ result [ 0 ] ) ) { return $ result [ 0 ] ; } return $ result ; }
docstring: Update the given pictures.
  
  @param  Collection $current
  
  @return string|array
docstring_tokens: Update the given pictures .