original_string: public function getCandidatesStatus(): array
      {
          $candidates = [];
  
          foreach ($this->getElectedCandidates() as $candidate) {
              $candidates['elected'][] = $candidate->getId();
          }
  
          foreach ($this->getActiveCandidates() as $candidate) {
              $candidates['active'][] = [$candidate->getId(), $candidate->getVotes()];
          }
  
          foreach ($this->getDefeatedCandidates() as $candidate) {
              $candidates['defeated'][] = $candidate->getId();
          }
  
          return $candidates;
      }
code: public function getCandidatesStatus(): array
      {
          $candidates = [];
  
          foreach ($this->getElectedCandidates() as $candidate) {
              $candidates['elected'][] = $candidate->getId();
          }
  
          foreach ($this->getActiveCandidates() as $candidate) {
              $candidates['active'][] = [$candidate->getId(), $candidate->getVotes()];
          }
  
          foreach ($this->getDefeatedCandidates() as $candidate) {
              $candidates['defeated'][] = $candidate->getId();
          }
  
          return $candidates;
      }
code_tokens: public function getCandidatesStatus ( ) : array { $ candidates = [ ] ; foreach ( $ this -> getElectedCandidates ( ) as $ candidate ) { $ candidates [ 'elected' ] [ ] = $ candidate -> getId ( ) ; } foreach ( $ this -> getActiveCandidates ( ) as $ candidate ) { $ candidates [ 'active' ] [ ] = [ $ candidate -> getId ( ) , $ candidate -> getVotes ( ) ] ; } foreach ( $ this -> getDefeatedCandidates ( ) as $ candidate ) { $ candidates [ 'defeated' ] [ ] = $ candidate -> getId ( ) ; } return $ candidates ; }
docstring: Get status of all candidates.
  
  @return array
docstring_tokens: Get status of all candidates .