original_string: public function findAllNew($ids = [])
      {
          $query = $model = $this->makeModel()->where('broadcasted', 0);
          if (!empty($ids)) {
              $values = array_values($ids);
              $query->whereNotIn('id', $values);
          }
          return $query->get();
      }
code: public function findAllNew($ids = [])
      {
          $query = $model = $this->makeModel()->where('broadcasted', 0);
          if (!empty($ids)) {
              $values = array_values($ids);
              $query->whereNotIn('id', $values);
          }
          return $query->get();
      }
code_tokens: public function findAllNew ( $ ids = [ ] ) { $ query = $ model = $ this -> makeModel ( ) -> where ( 'broadcasted' , 0 ) ; if ( ! empty ( $ ids ) ) { $ values = array_values ( $ ids ) ; $ query -> whereNotIn ( 'id' , $ values ) ; } return $ query -> get ( ) ; }
docstring: finds all new notification messages
  
  @param array $ids
  @return \Illuminate\Database\Query\Builder
docstring_tokens: finds all new notification messages