original_string: protected function validateRequirementsInstall()
      {
          if ($this->isExcluded('requirements')) {
              return null;
          }
  
          if ($this->config->isInitialized()) {
              $error = $this->translation->text('System already installed');
              $this->setError('installed', $error);
              return false;
          }
  
          $requirements = $this->install->getRequirements();
          $errors = $this->install->getRequirementErrors($requirements);
  
          if (empty($errors['danger'])) {
              return true;
          }
  
          $messages = array();
          $messages[] = $this->translation->text('Please fix all critical errors in your environment');
  
          foreach ($requirements as $items) {
              foreach ($items as $name => $info) {
                  if (in_array($name, $errors['danger'])) {
                      $status = empty($info['status']) ? $this->translation->text('No') : $this->translation->text('Yes');
                      $messages[] = " {$info['message']} - $status";
                  }
              }
          }
  
          $this->setError('requirements', implode(PHP_EOL, $messages));
          return false;
      }
code: protected function validateRequirementsInstall()
      {
          if ($this->isExcluded('requirements')) {
              return null;
          }
  
          if ($this->config->isInitialized()) {
              $error = $this->translation->text('System already installed');
              $this->setError('installed', $error);
              return false;
          }
  
          $requirements = $this->install->getRequirements();
          $errors = $this->install->getRequirementErrors($requirements);
  
          if (empty($errors['danger'])) {
              return true;
          }
  
          $messages = array();
          $messages[] = $this->translation->text('Please fix all critical errors in your environment');
  
          foreach ($requirements as $items) {
              foreach ($items as $name => $info) {
                  if (in_array($name, $errors['danger'])) {
                      $status = empty($info['status']) ? $this->translation->text('No') : $this->translation->text('Yes');
                      $messages[] = " {$info['message']} - $status";
                  }
              }
          }
  
          $this->setError('requirements', implode(PHP_EOL, $messages));
          return false;
      }
code_tokens: protected function validateRequirementsInstall ( ) { if ( $ this -> isExcluded ( 'requirements' ) ) { return null ; } if ( $ this -> config -> isInitialized ( ) ) { $ error = $ this -> translation -> text ( 'System already installed' ) ; $ this -> setError ( 'installed' , $ error ) ; return false ; } $ requirements = $ this -> install -> getRequirements ( ) ; $ errors = $ this -> install -> getRequirementErrors ( $ requirements ) ; if ( empty ( $ errors [ 'danger' ] ) ) { return true ; } $ messages = array ( ) ; $ messages [ ] = $ this -> translation -> text ( 'Please fix all critical errors in your environment' ) ; foreach ( $ requirements as $ items ) { foreach ( $ items as $ name => $ info ) { if ( in_array ( $ name , $ errors [ 'danger' ] ) ) { $ status = empty ( $ info [ 'status' ] ) ? $ this -> translation -> text ( 'No' ) : $ this -> translation -> text ( 'Yes' ) ; $ messages [ ] = " {$info['message']} - $status" ; } } } $ this -> setError ( 'requirements' , implode ( PHP_EOL , $ messages ) ) ; return false ; }
docstring: Checks system requirements
  @return boolean
docstring_tokens: Checks system requirements