protected function extractCustomValidationRules(array $rules)
    {
        $customRules = array_filter($rules, function ($rule) {
            return $this->isCustomRule($rule);
        });

        return $customRules;
    }
protected function extractCustomValidationRules(array $rules)
    {
        $customRules = array_filter($rules, function ($rule) {
            return $this->isCustomRule($rule);
        });

        return $customRules;
    }
protected function extractCustomValidationRules ( array $ rules ) { $ customRules = array_filter ( $ rules , function ( $ rule ) { return $ this -> isCustomRule ( $ rule ) ; } ) ; return $ customRules ; }
Extracts the custom validation rules from the given rules array.

@param array $rules

@return array
Extracts the custom validation rules from the given rules array .