original_string: protected function validateEntityIdFile()
      {
          $field = 'entity_id';
  
          if ($this->isExcluded($field)) {
              return null;
          }
  
          $value = $this->getSubmitted($field);
  
          if (!isset($value)) {
              $this->unsetSubmitted($field);
              return null;
          }
  
          $label = $this->translation->text('Entity ID');
  
          if (!is_numeric($value)) {
              $this->setErrorInteger($field, $label);
              return false;
          }
  
          if (strlen($value) > 10) {
              $this->setErrorLengthRange($field, $label, 0, 10);
              return false;
          }
  
          return true;
      }
code: protected function validateEntityIdFile()
      {
          $field = 'entity_id';
  
          if ($this->isExcluded($field)) {
              return null;
          }
  
          $value = $this->getSubmitted($field);
  
          if (!isset($value)) {
              $this->unsetSubmitted($field);
              return null;
          }
  
          $label = $this->translation->text('Entity ID');
  
          if (!is_numeric($value)) {
              $this->setErrorInteger($field, $label);
              return false;
          }
  
          if (strlen($value) > 10) {
              $this->setErrorLengthRange($field, $label, 0, 10);
              return false;
          }
  
          return true;
      }
code_tokens: protected function validateEntityIdFile ( ) { $ field = 'entity_id' ; if ( $ this -> isExcluded ( $ field ) ) { return null ; } $ value = $ this -> getSubmitted ( $ field ) ; if ( ! isset ( $ value ) ) { $ this -> unsetSubmitted ( $ field ) ; return null ; } $ label = $ this -> translation -> text ( 'Entity ID' ) ; if ( ! is_numeric ( $ value ) ) { $ this -> setErrorInteger ( $ field , $ label ) ; return false ; } if ( strlen ( $ value ) > 10 ) { $ this -> setErrorLengthRange ( $ field , $ label , 0 , 10 ) ; return false ; } return true ; }
docstring: Validates entity ID
  @return bool|null
docstring_tokens: Validates entity ID