Completed
Pull Request — master (#92)
by
unknown
05:45
created
src/Felixkiss/UniqueWithValidator/RuleParser.php 1 patch
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.