protected static function getBranchesPassthrough(array $branches)
	{
		$values = [];
		foreach ($branches as $branch)
		{
			$values[] = $branch['passthrough'];
		}

		// If the last branch isn't an "else", we act as if there was an additional branch with no
		// passthrough
		if ($branch['statement'] !== 'else')
		{
			$values[] = 0;
		}

		return array_unique($values);
	}
protected static function getBranchesPassthrough(array $branches)
	{
		$values = [];
		foreach ($branches as $branch)
		{
			$values[] = $branch['passthrough'];
		}

		// If the last branch isn't an "else", we act as if there was an additional branch with no
		// passthrough
		if ($branch['statement'] !== 'else')
		{
			$values[] = 0;
		}

		return array_unique($values);
	}
protected static function getBranchesPassthrough ( array $ branches ) { $ values = [ ] ; foreach ( $ branches as $ branch ) { $ values [ ] = $ branch [ 'passthrough' ] ; } // If the last branch isn't an "else", we act as if there was an additional branch with no // passthrough if ( $ branch [ 'statement' ] !== 'else' ) { $ values [ ] = 0 ; } return array_unique ( $ values ) ; }
Get the unique values for the "passthrough" key of given branches

@param  array     $branches
@return integer[]
Get the unique values for the passthrough key of given branches