@@ -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 | |