original_string: public function updateDefaultPicture($pictureId)
      {
      	if ($pictureId) {
          	$this->pictures()->update(['default' => false]);
          	$this->pictures()->where('id', $pictureId)->update(['default' => true]);
      	}
      }
code: public function updateDefaultPicture($pictureId)
      {
      	if ($pictureId) {
          	$this->pictures()->update(['default' => false]);
          	$this->pictures()->where('id', $pictureId)->update(['default' => true]);
      	}
      }
code_tokens: public function updateDefaultPicture ( $ pictureId ) { if ( $ pictureId ) { $ this -> pictures ( ) -> update ( [ 'default' => false ] ) ; $ this -> pictures ( ) -> where ( 'id' , $ pictureId ) -> update ( [ 'default' => true ] ) ; } }
docstring: Updates the given product default picture.
  
  @param  integer $pictureId
  
  @return void
docstring_tokens: Updates the given product default picture .