mirror of
https://github.com/symbiote/silverstripe-gridfieldextensions.git
synced 2024-10-22 17:05:39 +02:00
MINOR Apply PSR-2 linting
This commit is contained in:
parent
3ee4ff4cb7
commit
0ad1fc367e
@ -13,9 +13,11 @@ use SilverStripe\Forms\GridField\GridFieldDetailForm;
|
||||
use Symbiote\GridFieldExtensions\GridFieldAddNewMultiClass;
|
||||
use Symbiote\GridFieldExtensions\GridFieldAddNewMultiClassHandler;
|
||||
|
||||
class GridFieldAddNewMultiClassWithNamespacesTest extends SapphireTest {
|
||||
class GridFieldAddNewMultiClassWithNamespacesTest extends SapphireTest
|
||||
{
|
||||
|
||||
public function testGetClassesWithNamespaces() {
|
||||
public function testGetClassesWithNamespaces()
|
||||
{
|
||||
$grid = new GridField('TestGridField');
|
||||
$grid->setModelClass('Symbiote\\Test\\NamespacedClass');
|
||||
|
||||
@ -30,7 +32,8 @@ class GridFieldAddNewMultiClassWithNamespacesTest extends SapphireTest {
|
||||
);
|
||||
}
|
||||
|
||||
public function testHandleAddWithNamespaces() {
|
||||
public function testHandleAddWithNamespaces()
|
||||
{
|
||||
$grid = new GridField('TestGridField');
|
||||
$grid->getConfig()->addComponent(new GridFieldDetailForm());
|
||||
$grid->setModelClass('Symbiote\\Test\\NamespacedClass');
|
||||
@ -46,19 +49,21 @@ class GridFieldAddNewMultiClassWithNamespacesTest extends SapphireTest {
|
||||
$record->setAccessible(true);
|
||||
$this->assertInstanceOf('Symbiote\\Test\\NamespacedClass', $record->getValue($response));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**#@+
|
||||
* @ignore
|
||||
*/
|
||||
|
||||
class NamespacedClass implements TestOnly {
|
||||
public function i18n_singular_name() {
|
||||
class NamespacedClass implements TestOnly
|
||||
{
|
||||
public function i18n_singular_name()
|
||||
{
|
||||
return 'NamespacedClass';
|
||||
}
|
||||
|
||||
public function canCreate() {
|
||||
public function canCreate()
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user