@@ -195,7 +195,7 @@ |
||
| 195 | 195 | public function validate() { |
| 196 | 196 | $result = parent::validate(); |
| 197 | 197 | |
| 198 | - if(ProductCategory::get()->filter('Code', $this->Code)->first()) { |
|
| 198 | + if (ProductCategory::get()->filter('Code', $this->Code)->first()) { |
|
| 199 | 199 | $result->addError('Code must be unique for each category.'); |
| 200 | 200 | } |
| 201 | 201 | |