original_string: protected function validateDbNameInstall()
      {
          $field = 'database.name';
  
          if ($this->isExcluded($field)) {
              return null;
          }
  
          $value = $this->getSubmitted($field);
  
          if (empty($value)) {
              $this->setErrorRequired($field, $this->translation->text('Database name'));
              return false;
          }
  
          return true;
      }
code: protected function validateDbNameInstall()
      {
          $field = 'database.name';
  
          if ($this->isExcluded($field)) {
              return null;
          }
  
          $value = $this->getSubmitted($field);
  
          if (empty($value)) {
              $this->setErrorRequired($field, $this->translation->text('Database name'));
              return false;
          }
  
          return true;
      }
code_tokens: protected function validateDbNameInstall ( ) { $ field = 'database.name' ; if ( $ this -> isExcluded ( $ field ) ) { return null ; } $ value = $ this -> getSubmitted ( $ field ) ; if ( empty ( $ value ) ) { $ this -> setErrorRequired ( $ field , $ this -> translation -> text ( 'Database name' ) ) ; return false ; } return true ; }
docstring: Validates a database name
  @return boolean
docstring_tokens: Validates a database name