original_string: protected function validateInstallerInstall()
      {
          $handlers = $this->install->getHandlers();
  
          if (count($handlers) >= 2) {
  
              $options = array();
              foreach ($handlers as $id => $handler) {
                  $options[$id] = $handler['title'];
              }
  
              $input = $this->menu($options, 'default', $this->text('Installation profile (enter a number)'));
  
              if (!$this->isValidInput($input, 'installer', 'install')) {
                  $this->errors();
                  $this->validateInstallerInstall();
              }
          }
      }
code: protected function validateInstallerInstall()
      {
          $handlers = $this->install->getHandlers();
  
          if (count($handlers) >= 2) {
  
              $options = array();
              foreach ($handlers as $id => $handler) {
                  $options[$id] = $handler['title'];
              }
  
              $input = $this->menu($options, 'default', $this->text('Installation profile (enter a number)'));
  
              if (!$this->isValidInput($input, 'installer', 'install')) {
                  $this->errors();
                  $this->validateInstallerInstall();
              }
          }
      }
code_tokens: protected function validateInstallerInstall ( ) { $ handlers = $ this -> install -> getHandlers ( ) ; if ( count ( $ handlers ) >= 2 ) { $ options = array ( ) ; foreach ( $ handlers as $ id => $ handler ) { $ options [ $ id ] = $ handler [ 'title' ] ; } $ input = $ this -> menu ( $ options , 'default' , $ this -> text ( 'Installation profile (enter a number)' ) ) ; if ( ! $ this -> isValidInput ( $ input , 'installer' , 'install' ) ) { $ this -> errors ( ) ; $ this -> validateInstallerInstall ( ) ; } } }
docstring: Validates installation profile input
docstring_tokens: Validates installation profile input