| Conditions | 2 |
| Paths | 2 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | public function getEditForm($id = null, $fields = null) |
||
| 27 | { |
||
| 28 | /** @var $this |Form $form */ |
||
| 29 | $form = parent::getEditForm($id, $fields); |
||
| 30 | // Slightly pointless because it only manages 1 model, but ¯\_(ツ)_/¯ |
||
| 31 | if ($this->modelClass === 'SlackInvite') { |
||
| 32 | $form->Fields() |
||
| 33 | ->fieldByName('SlackInvite') |
||
| 34 | ->getConfig() |
||
| 35 | ->addComponent( |
||
| 36 | new GridfieldInviteResendAction() |
||
| 37 | ); |
||
| 38 | } |
||
| 39 | |||
| 40 | return $form; |
||
| 41 | } |
||
| 43 |
This check marks private properties in classes that are never used. Those properties can be removed.