original_string: private function guardValidIdentifier($identifier)
      {
          if (null === $identifier || '' === $identifier) {
              throw new ResolveComponentDataException('No resolved identifier given');
          }
  
          if (!is_scalar($identifier) && !is_array($identifier)) {
              throw new ResolveComponentDataException('Identifier has to be a scalar or an array');
          }
      }
code: private function guardValidIdentifier($identifier)
      {
          if (null === $identifier || '' === $identifier) {
              throw new ResolveComponentDataException('No resolved identifier given');
          }
  
          if (!is_scalar($identifier) && !is_array($identifier)) {
              throw new ResolveComponentDataException('Identifier has to be a scalar or an array');
          }
      }
code_tokens: private function guardValidIdentifier ( $ identifier ) { if ( null === $ identifier || '' === $ identifier ) { throw new ResolveComponentDataException ( 'No resolved identifier given' ) ; } if ( ! is_scalar ( $ identifier ) && ! is_array ( $ identifier ) ) { throw new ResolveComponentDataException ( 'Identifier has to be a scalar or an array' ) ; } }
docstring: Guard valid identifier.
  
  The identifier can not be empty (but can be zero) and has to be a scalar or array.
  
  @param string|array $identifier
  
  @throws ResolveComponentDataException
docstring_tokens: Guard valid identifier .