original_string: public function getFirstInvalidPage()
      {
          foreach ($this->pages as $id => $page) {
              if (!$this->getSessionContainer()->getValidationStatus($id)) {
                  return $page;
              }
          }
          return null;
      }
code: public function getFirstInvalidPage()
      {
          foreach ($this->pages as $id => $page) {
              if (!$this->getSessionContainer()->getValidationStatus($id)) {
                  return $page;
              }
          }
          return null;
      }
code_tokens: public function getFirstInvalidPage ( ) { foreach ( $ this -> pages as $ id => $ page ) { if ( ! $ this -> getSessionContainer ( ) -> getValidationStatus ( $ id ) ) { return $ page ; } } return null ; }
docstring: Returns the first page that failed validation
  
  @return   HTML_QuickForm2_Controller_Page|null
docstring_tokens: Returns the first page that failed validation