original_string: public static function normalize($pointer, array $context = null)
      {
          if (is_object($pointer)) {
              return ['value' => $pointer];
          }
          if (is_string($pointer)) {
              return ['classname' => $pointer];
          }
          if ($pointer === null) {
              return [];
          }
          if ($pointer === false) {
              throw new Disabled('');
          }
          if (!is_array($pointer)) {
              throw new InvalidPointer('invalid pointer type');
          }
          if (!isset($pointer[0])) {
              return $pointer;
          }
          return self::normalizeNumeric($pointer, $context);
      }
code: public static function normalize($pointer, array $context = null)
      {
          if (is_object($pointer)) {
              return ['value' => $pointer];
          }
          if (is_string($pointer)) {
              return ['classname' => $pointer];
          }
          if ($pointer === null) {
              return [];
          }
          if ($pointer === false) {
              throw new Disabled('');
          }
          if (!is_array($pointer)) {
              throw new InvalidPointer('invalid pointer type');
          }
          if (!isset($pointer[0])) {
              return $pointer;
          }
          return self::normalizeNumeric($pointer, $context);
      }
code_tokens: public static function normalize ( $ pointer , array $ context = null ) { if ( is_object ( $ pointer ) ) { return [ 'value' => $ pointer ] ; } if ( is_string ( $ pointer ) ) { return [ 'classname' => $ pointer ] ; } if ( $ pointer === null ) { return [ ] ; } if ( $ pointer === false ) { throw new Disabled ( '' ) ; } if ( ! is_array ( $ pointer ) ) { throw new InvalidPointer ( 'invalid pointer type' ) ; } if ( ! isset ( $ pointer [ 0 ] ) ) { return $ pointer ; } return self :: normalizeNumeric ( $ pointer , $ context ) ; }
docstring: Normalizes the pointer format
  
  @param mixed $pointer
  @param array $context [optional]
  @return array
  @throws \axy\creator\errors\InvalidPointer
  @throws \axy\creator\errors\Disabled
docstring_tokens: Normalizes the pointer format