original_string: public function addParticipants(array $participants)
      {
          if (count($participants)) {
              foreach ($participants as $user_id) {
                  Participant::firstOrCreate([
                      'user_id' => $user_id,
                      'thread_id' => $this->id,
                  ]);
              }
          }
      }
code: public function addParticipants(array $participants)
      {
          if (count($participants)) {
              foreach ($participants as $user_id) {
                  Participant::firstOrCreate([
                      'user_id' => $user_id,
                      'thread_id' => $this->id,
                  ]);
              }
          }
      }
code_tokens: public function addParticipants ( array $ participants ) { if ( count ( $ participants ) ) { foreach ( $ participants as $ user_id ) { Participant :: firstOrCreate ( [ 'user_id' => $ user_id , 'thread_id' => $ this -> id , ] ) ; } } }
docstring: Adds users to this thread
  
  @param array $participants list of all participants
  @return void
docstring_tokens: Adds users to this thread