Completed
Pull Request — master (#70)
by Felix
01:58
created
src/Felixkiss/UniqueWithValidator/UniqueWithValidatorServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,8 +26,8 @@
 block discarded – undo
26 26
     {
27 27
         // Whenever the validator factory is accessed in the container, we set
28 28
         // the custom resolver on it (this works in Larvel >= 5.2 as well).
29
-        $this->app->resolving('validator', function ($factory, $app) {
30
-            $factory->resolver(function ($translator, $data, $rules, $messages, $customAttributes = []) {
29
+        $this->app->resolving('validator', function($factory, $app) {
30
+            $factory->resolver(function($translator, $data, $rules, $messages, $customAttributes = []) {
31 31
                 return new ValidatorExtension(
32 32
                     $translator,
33 33
                     $data,
Please login to merge, or discard this patch.
src/Felixkiss/UniqueWithValidator/ValidatorExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
     public function __construct($translator, $data, $rules, $messages, array $customAttributes = array())
11 11
     {
12 12
         // Set custom validation error messages
13
-        if(!isset($messages['unique_with']))
13
+        if (!isset($messages['unique_with']))
14 14
         {
15 15
             $messages['unique_with'] = $translator->get(
16 16
                 'uniquewith-validator::validation.unique_with'
Please login to merge, or discard this patch.