lithium\test\filter\Complexity::collect()

public static method

Collects raw data aggregated in Report and prepares it for analysis

Parameters

  • array $filterResults

    The results of the filter on the test run.

Returns

array

The packaged results.

Source

	public static function collect($filterResults) {
		$packagedResults = [];

		foreach ($filterResults as $result) {
			foreach ($result as $class => $method) {
				if (!isset($packagedResults[$class])) {
					$packagedResults[$class] = [];
				}
				$classResult = (array) $result[$class];
				$packagedResults[$class] = array_merge($classResult, $packagedResults[$class]);
			}
		}

		return $packagedResults;
	}