public static function validateTags(array &$array, $direction = null)
    {
        foreach ($array as $key => $tag) {
            $array[$key] = self::validateTag($tag, $direction);
        }

        return $array;
    }
public static function validateTags(array &$array, $direction = null)
    {
        foreach ($array as $key => $tag) {
            $array[$key] = self::validateTag($tag, $direction);
        }

        return $array;
    }
public static function validateTags ( array & $ array , $ direction = null ) { foreach ( $ array as $ key => $ tag ) { $ array [ $ key ] = self :: validateTag ( $ tag , $ direction ) ; } return $ array ; }
Validates that the given array contains all valid Tag entries

@param array  &$array    An array of strings or Tag objects
@param string $direction Either 'in' or 'out'. Used to specify the direction for all tags in the array

@return void
@throws Exception if any items are invalid.
Validates that the given array contains all valid Tag entries