@@ -47,10 +47,10 @@ |
||
| 47 | 47 | { |
| 48 | 48 | $validator = new Validation(); |
| 49 | 49 | $validator->add('slug', new UniquenessValidator( |
| 50 | - [ |
|
| 51 | - "model" => $this, |
|
| 52 | - "message" => "Category with slug '" . $this->slug . "' is already exists. Take another title" |
|
| 53 | - ] |
|
| 50 | + [ |
|
| 51 | + "model" => $this, |
|
| 52 | + "message" => "Category with slug '" . $this->slug . "' is already exists. Take another title" |
|
| 53 | + ] |
|
| 54 | 54 | )); |
| 55 | 55 | return $this->validate($validator); |
| 56 | 56 | } |