@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | public function onAfterWrite() |
| 44 | 44 | { |
| 45 | 45 | if ($this->isChanged('Identifier')) { |
| 46 | - $this->Fields()->each(function (ResourceField $field) { |
|
| 46 | + $this->Fields()->each(function(ResourceField $field) { |
|
| 47 | 47 | $field->delete(); |
| 48 | 48 | }); |
| 49 | 49 | |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | |
| 54 | 54 | // Remove the existing filters and add a default text entry to search all ResourceFields |
| 55 | 55 | $this->Filters() |
| 56 | - ->each(function (ResourceFilter $filter) { |
|
| 56 | + ->each(function(ResourceFilter $filter) { |
|
| 57 | 57 | $filter->delete(); |
| 58 | 58 | }) |
| 59 | 59 | ->add(ResourceFilter::create()); |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | $update = SQLUpdate::create( |
| 56 | - '"' . $record->baseTable() . '"', |
|
| 56 | + '"'.$record->baseTable().'"', |
|
| 57 | 57 | [], |
| 58 | 58 | $where + ['"ID" != ?' => $record->ID, '"ResourceID"' => $resource->ID] |
| 59 | 59 | ); |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | 'resourceName' => $resource->ResourceName, |
| 45 | 45 | 'basePath' => $this->getBasePath($holder), |
| 46 | 46 | 'fields' => array_map( |
| 47 | - function (ResourceField $field) { |
|
| 47 | + function(ResourceField $field) { |
|
| 48 | 48 | return [ |
| 49 | 49 | 'OriginalLabel' => $field->OriginalLabel, |
| 50 | 50 | 'ReadableLabel' => $field->ReadableLabel, |
@@ -80,6 +80,6 @@ discard block |
||
| 80 | 80 | } |
| 81 | 81 | |
| 82 | 82 | $link = $holder->RelativeLink(); |
| 83 | - return Director::baseURL() . trim($link, '/'); |
|
| 83 | + return Director::baseURL().trim($link, '/'); |
|
| 84 | 84 | } |
| 85 | 85 | } |