Skip to content

Commit 8c35b33

Browse files
committed
feat: add lint
1 parent dc92eb4 commit 8c35b33

5 files changed

Lines changed: 3 additions & 4 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Menu Manager is licensed under an [MIT license](http://heyday.mit-license.org/)
99

1010
## Installation
1111

12-
```
12+
```sh
1313
composer require heyday/silverstripe-menumanager
1414
```
1515

composer.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434
},
3535
"scripts": {
3636
"test": "phpunit -d memory_limit=512M -d flush=1",
37+
"lint": "phpcs src tests",
38+
"lint:fix": "phpcbf src tests",
3739
"test-with-coverage": [
3840
"phpunit --coverage-html coverage/php --coverage-clover coverage/php/clover.xml"
3941
]

tests/MenuAdminTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,4 @@ public function testEditForm(): void
2727
$form = $admin->getEditForm()->Fields();
2828
$this->assertInstanceOf(GridField::class, $form->dataFieldByName($menuSetName));
2929
}
30-
3130
}

tests/MenuItemTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,4 @@ public function testCmsFields(): void
4444
$this->assertInstanceOf(CheckboxField::class, $fields->dataFieldByName('IsNewWindow'));
4545
$this->assertInstanceOf(UploadField::class, $fields->dataFieldByName('File'));
4646
}
47-
4847
}

tests/MenuSetTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,4 @@ public function testCmsFields(): void
4646
MenuSet::create()->getCMSFields()->dataFieldByName('Name')
4747
);
4848
}
49-
5049
}

0 commit comments

Comments
 (0)