original_string: public static function isInteger($value)
      {
          if (!is_scalar($value) || is_float($value)) {
              return false;
          }
          if (is_int($value)) {
              return true;
          }
  
          return (bool)preg_match('/^-?[0-9]+$/', $value);
      }
code: public static function isInteger($value)
      {
          if (!is_scalar($value) || is_float($value)) {
              return false;
          }
          if (is_int($value)) {
              return true;
          }
  
          return (bool)preg_match('/^-?[0-9]+$/', $value);
      }
code_tokens: public static function isInteger ( $ value ) { if ( ! is_scalar ( $ value ) || is_float ( $ value ) ) { return false ; } if ( is_int ( $ value ) ) { return true ; } return ( bool ) preg_match ( '/^-?[0-9]+$/' , $ value ) ; }
docstring: Check that the input value is an integer
  
  This method will accept strings that contain only integer data
  as well.
  
  @param string $value The value to check
  @return bool
docstring_tokens: Check that the input value is an integer