public static function makeValid(...$ruts)
    {
        $ruts = self::make(...$ruts);

        $ruts = is_array($ruts) ? $ruts : [$ruts];

        foreach ($ruts as $rut) {
            if (!$rut->isValid()) {
                throw new InvalidRutException($rut);
            }
        }

        return count($ruts) === 1 ? $ruts[0] : $ruts;
    }
public static function makeValid(...$ruts)
    {
        $ruts = self::make(...$ruts);

        $ruts = is_array($ruts) ? $ruts : [$ruts];

        foreach ($ruts as $rut) {
            if (!$rut->isValid()) {
                throw new InvalidRutException($rut);
            }
        }

        return count($ruts) === 1 ? $ruts[0] : $ruts;
    }
public static function makeValid ( ... $ ruts ) { $ ruts = self :: make ( ... $ ruts ) ; $ ruts = is_array ( $ ruts ) ? $ ruts : [ $ ruts ] ; foreach ( $ ruts as $ rut ) { if ( ! $ rut -> isValid ( ) ) { throw new InvalidRutException ( $ rut ) ; } } return count ( $ ruts ) === 1 ? $ ruts [ 0 ] : $ ruts ; }
Makes only Valid Ruts

@param mixed ...$ruts
@return Rut|array
@throws InvalidRutException
Makes only Valid Ruts