From fdb53311bac68bcee5f6b026c0f526c98ea1da65 Mon Sep 17 00:00:00 2001 From: Maxime Rainville Date: Mon, 8 Oct 2018 14:25:37 +1300 Subject: [PATCH] Fix linting issue. --- src/Forms/GridField/GridFieldLazyLoader.php | 1 - tests/php/Forms/GridField/GridFieldLazyLoaderTest.php | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) 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; } - }