@@ -80,7 +80,7 @@ |
||
| 80 | 80 | ], $config['spec'], 'CKAN endpoint specification should be provided'); |
| 81 | 81 | $this->assertSame('Teachers', $config['name'], 'Name should be provided'); |
| 82 | 82 | $this->assertSame('Class sizes', $config['resourceName'], 'Resource name should be provided'); |
| 83 | - $this->assertSame('/', $config['basePath'],'Without a page, basePath should be root'); |
|
| 83 | + $this->assertSame('/', $config['basePath'], 'Without a page, basePath should be root'); |
|
| 84 | 84 | } |
| 85 | 85 | |
| 86 | 86 | /** |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | ]; |
| 34 | 34 | |
| 35 | 35 | private static $belongs_to = [ |
| 36 | - 'Page' => CKANRegistryPage::class . '.DataResource', |
|
| 36 | + 'Page' => CKANRegistryPage::class.'.DataResource', |
|
| 37 | 37 | ]; |
| 38 | 38 | |
| 39 | 39 | private static $has_many = [ |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | public function onAfterWrite() |
| 54 | 54 | { |
| 55 | 55 | if ($this->isChanged('Identifier')) { |
| 56 | - $this->Fields()->each(function (ResourceField $field) { |
|
| 56 | + $this->Fields()->each(function(ResourceField $field) { |
|
| 57 | 57 | $field->delete(); |
| 58 | 58 | }); |
| 59 | 59 | |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | |
| 64 | 64 | // Remove the existing filters and add a default text entry to search all ResourceFields |
| 65 | 65 | $this->Filters() |
| 66 | - ->each(function (ResourceFilter $filter) { |
|
| 66 | + ->each(function(ResourceFilter $filter) { |
|
| 67 | 67 | $filter->delete(); |
| 68 | 68 | }) |
| 69 | 69 | ->add(ResourceFilter::create()); |
@@ -124,6 +124,6 @@ discard block |
||
| 124 | 124 | /** @var CKANRegistryPage $page */ |
| 125 | 125 | $page = $this->getComponent('Page'); |
| 126 | 126 | $pagePath = $page->RelativeLink(); |
| 127 | - return '/' . trim($pagePath, '/'); |
|
| 127 | + return '/'.trim($pagePath, '/'); |
|
| 128 | 128 | } |
| 129 | 129 | } |