@@ -77,12 +77,10 @@ |
||
| 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 | |
@@ -83,7 +83,7 @@ |
||
| 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 |