private function normalizeTraversableElement($data, $depth) {
		$maxObjectRecursion = $this->maxRecursionDepth;
		$maxArrayItems = $this->maxArrayItems;
		$count = 1;
		$normalized = [];
		$nextDepth = $depth + 1;
		foreach ($data as $key => $value) {
			if ($count >= $maxArrayItems) {
				$normalized['...'] =
					'Over ' . $maxArrayItems . ' items, aborting normalization';
				break;
			}
			$count++;
			if ($depth < $maxObjectRecursion) {
				$normalized[$key] = $this->normalize($value, $nextDepth);
			}
		}

		return $normalized;
	}
private function normalizeTraversableElement($data, $depth) {
		$maxObjectRecursion = $this->maxRecursionDepth;
		$maxArrayItems = $this->maxArrayItems;
		$count = 1;
		$normalized = [];
		$nextDepth = $depth + 1;
		foreach ($data as $key => $value) {
			if ($count >= $maxArrayItems) {
				$normalized['...'] =
					'Over ' . $maxArrayItems . ' items, aborting normalization';
				break;
			}
			$count++;
			if ($depth < $maxObjectRecursion) {
				$normalized[$key] = $this->normalize($value, $nextDepth);
			}
		}

		return $normalized;
	}
private function normalizeTraversableElement ( $ data , $ depth ) { $ maxObjectRecursion = $ this -> maxRecursionDepth ; $ maxArrayItems = $ this -> maxArrayItems ; $ count = 1 ; $ normalized = [ ] ; $ nextDepth = $ depth + 1 ; foreach ( $ data as $ key => $ value ) { if ( $ count >= $ maxArrayItems ) { $ normalized [ '...' ] = 'Over ' . $ maxArrayItems . ' items, aborting normalization' ; break ; } $ count ++ ; if ( $ depth < $ maxObjectRecursion ) { $ normalized [ $ key ] = $ this -> normalize ( $ value , $ nextDepth ) ; } } return $ normalized ; }
Converts each element of a traversable variable to String

@param $data
@param int $depth

@return array
Converts each element of a traversable variable to String