original_string: protected function validateInputDbTypeInstall()
      {
          $drivers = PDO::getAvailableDrivers();
          $title = $this->text('Database type (enter a number)');
          $input = $this->menu(array_combine($drivers, $drivers), 'mysql', $title);
  
          if (!$this->isValidInput($input, 'database.type', 'install')) {
              $this->errors();
              $this->validateInputDbTypeInstall();
          }
      }
code: protected function validateInputDbTypeInstall()
      {
          $drivers = PDO::getAvailableDrivers();
          $title = $this->text('Database type (enter a number)');
          $input = $this->menu(array_combine($drivers, $drivers), 'mysql', $title);
  
          if (!$this->isValidInput($input, 'database.type', 'install')) {
              $this->errors();
              $this->validateInputDbTypeInstall();
          }
      }
code_tokens: protected function validateInputDbTypeInstall ( ) { $ drivers = PDO :: getAvailableDrivers ( ) ; $ title = $ this -> text ( 'Database type (enter a number)' ) ; $ input = $ this -> menu ( array_combine ( $ drivers , $ drivers ) , 'mysql' , $ title ) ; if ( ! $ this -> isValidInput ( $ input , 'database.type' , 'install' ) ) { $ this -> errors ( ) ; $ this -> validateInputDbTypeInstall ( ) ; } }
docstring: Validates a database port input
docstring_tokens: Validates a database port input