protected function toLaravelRules(array $parsedRules)
    {
        $laravelRules = [];

        foreach ($parsedRules as $key=>$keyRules) {
            $laravelRules[$key] = [];

            foreach ($keyRules as $ruleName=>$parameters) {
                $separator = $parameters ? ':' : '';
                $laravelRules[$key][] = $ruleName.$separator.implode(',', $parameters);
            }
        }

        return $laravelRules;
    }
protected function toLaravelRules(array $parsedRules)
    {
        $laravelRules = [];

        foreach ($parsedRules as $key=>$keyRules) {
            $laravelRules[$key] = [];

            foreach ($keyRules as $ruleName=>$parameters) {
                $separator = $parameters ? ':' : '';
                $laravelRules[$key][] = $ruleName.$separator.implode(',', $parameters);
            }
        }

        return $laravelRules;
    }
protected function toLaravelRules ( array $ parsedRules ) { $ laravelRules = [ ] ; foreach ( $ parsedRules as $ key => $ keyRules ) { $ laravelRules [ $ key ] = [ ] ; foreach ( $ keyRules as $ ruleName => $ parameters ) { $ separator = $ parameters ? ':' : '' ; $ laravelRules [ $ key ] [ ] = $ ruleName . $ separator . implode ( ',' , $ parameters ) ; } } return $ laravelRules ; }
Convert the ems rules into the laravel format

@param array $parsedRules

@return array
Convert the ems rules into the laravel format