original_string: public function removeAllTeamMembers()
      {
          $team = $this->getTeam();
          $last_team = $team;
  
          foreach ($team->getAccounts() as $account) {
              if (!$account->isTeamAdmin()) {
                  $last_team = $this->removeTeamMember($account->getId());
              }
          }
  
          return $last_team;
      }
code: public function removeAllTeamMembers()
      {
          $team = $this->getTeam();
          $last_team = $team;
  
          foreach ($team->getAccounts() as $account) {
              if (!$account->isTeamAdmin()) {
                  $last_team = $this->removeTeamMember($account->getId());
              }
          }
  
          return $last_team;
      }
code_tokens: public function removeAllTeamMembers ( ) { $ team = $ this -> getTeam ( ) ; $ last_team = $ team ; foreach ( $ team -> getAccounts ( ) as $ account ) { if ( ! $ account -> isTeamAdmin ( ) ) { $ last_team = $ this -> removeTeamMember ( $ account -> getId ( ) ) ; } } return $ last_team ; }
docstring: Removes all team members from current Team
  
  @return Team
  @throws BaseException
docstring_tokens: Removes all team members from current Team