original_string: final protected function validateInt(string $name, $value, array $allowed) : bool
      {
          if (true === in_array('int', $allowed)) {
              if (true === is_int($value)) {
                  if ($value >= 0) {
                      return true;
                  } else {
                      throw new \InvalidArgumentException('Int value for '.$name.' is too low');
                  }
              }
          }
  
          return false;
      }
code: final protected function validateInt(string $name, $value, array $allowed) : bool
      {
          if (true === in_array('int', $allowed)) {
              if (true === is_int($value)) {
                  if ($value >= 0) {
                      return true;
                  } else {
                      throw new \InvalidArgumentException('Int value for '.$name.' is too low');
                  }
              }
          }
  
          return false;
      }
code_tokens: final protected function validateInt ( string $ name , $ value , array $ allowed ) : bool { if ( true === in_array ( 'int' , $ allowed ) ) { if ( true === is_int ( $ value ) ) { if ( $ value >= 0 ) { return true ; } else { throw new \ InvalidArgumentException ( 'Int value for ' . $ name . ' is too low' ) ; } } } return false ; }
docstring: Validates an int setting.
  
  @param string $name    The name of the setting we are validating.
  @param mixed  $value   The value we are validating.
  @param array  $allowed Which items are allowed.
  
  @throws \InvalidArgumentException If the data is inaccurate/incorrect.
  @return bool True if validated, false if not
docstring_tokens: Validates an int setting .