diff --git a/src/Forms/GridField/GridFieldLazyLoader.php b/src/Forms/GridField/GridFieldLazyLoader.php index 9f02f57a0..ac1881b5a 100755 --- a/src/Forms/GridField/GridFieldLazyLoader.php +++ b/src/Forms/GridField/GridFieldLazyLoader.php @@ -74,6 +74,5 @@ class GridFieldLazyLoader implements GridField_DataManipulator, GridField_HTMLPr } else { return false; } - } } diff --git a/tests/php/Forms/GridField/GridFieldLazyLoaderTest.php b/tests/php/Forms/GridField/GridFieldLazyLoaderTest.php index c88ebce18..cd4716d33 100644 --- a/tests/php/Forms/GridField/GridFieldLazyLoaderTest.php +++ b/tests/php/Forms/GridField/GridFieldLazyLoaderTest.php @@ -113,7 +113,8 @@ class GridFieldLazyLoaderTest extends SapphireTest * This GridField will be lazy because it doesn't have a `X-Pjax` header. * @return GridField */ - private function getHeaderlessGridField() { + private function getHeaderlessGridField() + { $this->gridField->setRequest(new HTTPRequest('GET', 'admin/pages/edit/show/9999')); $fieldList = FieldList::create(new TabSet("Root", new Tab("Main"))); $fieldList->addFieldToTab('Root.GridField', $this->gridField); @@ -149,5 +150,4 @@ class GridFieldLazyLoaderTest extends SapphireTest Form::create(null, 'Form', $fieldList, FieldList::create()); return $this->gridField; } - }