original_string: protected function getChoiceByUsernameOrEmail($selection)
      {
          foreach ($this->choices as $item) {
              if ($item->getUsername() === $selection) {
                  return $item;
              }
              if ($item->getEmail() === $selection) {
                  return $item;
              }
          }
  
          return;
      }
code: protected function getChoiceByUsernameOrEmail($selection)
      {
          foreach ($this->choices as $item) {
              if ($item->getUsername() === $selection) {
                  return $item;
              }
              if ($item->getEmail() === $selection) {
                  return $item;
              }
          }
  
          return;
      }
code_tokens: protected function getChoiceByUsernameOrEmail ( $ selection ) { foreach ( $ this -> choices as $ item ) { if ( $ item -> getUsername ( ) === $ selection ) { return $ item ; } if ( $ item -> getEmail ( ) === $ selection ) { return $ item ; } } return ; }
docstring: Find User by username or email
  
  @param string $username
  
  @return User
docstring_tokens: Find User by username or email