original_string: protected function _normalizeArray($value)
      {
          if ($value instanceof stdClass) {
              $value = (array) $value;
          }
  
          if (is_array($value)) {
              return $value;
          }
  
          if (!($value instanceof Traversable)) {
              throw $this->_createInvalidArgumentException($this->__('Not an iterable'), null, null, $value);
          }
  
          $value = iterator_to_array($value, true);
  
          return $value;
      }
code: protected function _normalizeArray($value)
      {
          if ($value instanceof stdClass) {
              $value = (array) $value;
          }
  
          if (is_array($value)) {
              return $value;
          }
  
          if (!($value instanceof Traversable)) {
              throw $this->_createInvalidArgumentException($this->__('Not an iterable'), null, null, $value);
          }
  
          $value = iterator_to_array($value, true);
  
          return $value;
      }
code_tokens: protected function _normalizeArray ( $ value ) { if ( $ value instanceof stdClass ) { $ value = ( array ) $ value ; } if ( is_array ( $ value ) ) { return $ value ; } if ( ! ( $ value instanceof Traversable ) ) { throw $ this -> _createInvalidArgumentException ( $ this -> __ ( 'Not an iterable' ) , null , null , $ value ) ; } $ value = iterator_to_array ( $ value , true ) ; return $ value ; }
docstring: Normalizes a value into an array.
  
  @since [*next-version*]
  
  @param array|stdClass|Traversable $value The value to normalize.
  
  @throws InvalidArgumentException If value cannot be normalized.
  
  @return array The normalized value.
docstring_tokens: Normalizes a value into an array .