original_string: protected function mapUpdatedPictures($current)
  	{
  		$this->deleteCurrentFiles($current);
  
  		return $this->files()->flatMap(function ($item, $key) {
  			$files[] = [
  				'id' => $key,
  				'path' => $item->store($this->directory)
  			];
  
  			return $files;
  		})->all();
  	}
code: protected function mapUpdatedPictures($current)
  	{
  		$this->deleteCurrentFiles($current);
  
  		return $this->files()->flatMap(function ($item, $key) {
  			$files[] = [
  				'id' => $key,
  				'path' => $item->store($this->directory)
  			];
  
  			return $files;
  		})->all();
  	}
code_tokens: protected function mapUpdatedPictures ( $ current ) { $ this -> deleteCurrentFiles ( $ current ) ; return $ this -> files ( ) -> flatMap ( function ( $ item , $ key ) { $ files [ ] = [ 'id' => $ key , 'path' => $ item -> store ( $ this -> directory ) ] ; return $ files ; } ) -> all ( ) ; }
docstring: Map the updated pictures.
  
  @param $current Collection
  
  @return string|array
docstring_tokens: Map the updated pictures .