@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | public function onAfterWrite() |
49 | 49 | { |
50 | 50 | if ($this->Identifier && $this->isChanged('Identifier')) { |
51 | - $this->Fields()->each(function (ResourceField $field) { |
|
51 | + $this->Fields()->each(function(ResourceField $field) { |
|
52 | 52 | $field->delete(); |
53 | 53 | }); |
54 | 54 | |
@@ -58,11 +58,11 @@ discard block |
||
58 | 58 | |
59 | 59 | // Remove the existing filters and add a default text entry to search all ResourceFields |
60 | 60 | $this->Filters() |
61 | - ->each(function (ResourceFilter $filter) { |
|
61 | + ->each(function(ResourceFilter $filter) { |
|
62 | 62 | $filter->delete(); |
63 | 63 | }) |
64 | 64 | ->add(ResourceFilter::create([ |
65 | - 'FilterLabel' => _t(self::class . '.DEFAULT_FILTER_LABEL', 'Search'), |
|
65 | + 'FilterLabel' => _t(self::class.'.DEFAULT_FILTER_LABEL', 'Search'), |
|
66 | 66 | ])); |
67 | 67 | } |
68 | 68 |