Completed
Pull Request — master (#92)
by
unknown
05:45
created
src/Felixkiss/UniqueWithValidator/RuleParser.php 2 patches
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -77,12 +77,10 @@
 block discarded – undo
77 77
         }
78 78
         
79 79
         // if !deleted parameter exists, then ignore deleted (with softDeletes) items
80
-        if (in_array('!deleted', $this->parameters))
81
-        {
80
+        if (in_array('!deleted', $this->parameters)) {
82 81
             // if no deleted_at specified, than set it to NULL, so that validation could
83 82
             // search duplicates only within rows with deleted_at = NULL
84
-            if (!array_key_exists('deleted_at', $this->data))
85
-            {
83
+            if (!array_key_exists('deleted_at', $this->data)) {
86 84
                 $this->additionalFields['deleted_at'] = NULL;
87 85
             }
88 86
 
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@
 block discarded – undo
83 83
             // search duplicates only within rows with deleted_at = NULL
84 84
             if (!array_key_exists('deleted_at', $this->data))
85 85
             {
86
-                $this->additionalFields['deleted_at'] = NULL;
86
+                $this->additionalFields['deleted_at'] = null;
87 87
             }
88 88
 
89 89
             // replace !deleted with deleted_at
Please login to merge, or discard this patch.