We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| @@ 1096-1104 (lines=9) @@ | ||
| 1093 | return !empty($this->buttons) && !(count($this->buttons) == 1 && array_key_exists('add', $this->buttons)); |
|
| 1094 | } |
|
| 1095 | ||
| 1096 | public function initButtons() |
|
| 1097 | { |
|
| 1098 | $this->buttons = [ |
|
| 1099 | 'add' => ['route' => "{$this->route}/create", 'label' => trans('crud::crud.buttons.add'), 'class' => '', 'hide' => [], 'icon' => 'fa-plus-circle', 'extra' => []], |
|
| 1100 | 'view' => ['route' => "{$this->route}/%d", 'label' => trans('crud::crud.buttons.view'), 'class' => '', 'hide' => [], 'icon' => 'fa-eye', 'extra' => []], |
|
| 1101 | 'edit' => ['route' => "{$this->route}/%d/edit", 'label' => trans('crud::crud.buttons.edit'), 'class' => '', 'hide' => [], 'icon' => 'fa-edit', 'extra' => []], |
|
| 1102 | 'delete' => ['route' => "{$this->route}/%d", 'label' => trans('crud::crud.buttons.delete'), 'class' => '', 'hide' => [], 'icon' => 'fa-trash', 'extra' => ['data-confirm' => trans('crud::crud.confirm.delete'), 'data-type' => 'delete']], |
|
| 1103 | ]; |
|
| 1104 | } |
|
| 1105 | ||
| 1106 | public function removeButtons($buttons) |
|
| 1107 | { |
|
| @@ 338-346 (lines=9) @@ | ||
| 335 | $this->listActions = ['ordering', 'pagination', 'search', 'save_state']; |
|
| 336 | } |
|
| 337 | ||
| 338 | private function initButtons() |
|
| 339 | { |
|
| 340 | $this->buttons = [ |
|
| 341 | 'add' => ['route' => "{$this->route}/create", 'label' => trans('crud::crud.buttons.add'), 'class' => '', 'hide' => [], 'icon' => 'fa-plus-circle', 'extra' => []], |
|
| 342 | 'view' => ['route' => "{$this->route}/%d", 'label' => trans('crud::crud.buttons.view'), 'class' => '', 'hide' => [], 'icon' => 'fa-eye', 'extra' => []], |
|
| 343 | 'edit' => ['route' => "{$this->route}/%d/edit", 'label' => trans('crud::crud.buttons.edit'), 'class' => '', 'hide' => [], 'icon' => 'fa-edit', 'extra' => []], |
|
| 344 | 'delete' => ['route' => "{$this->route}/%d", 'label' => trans('crud::crud.buttons.delete'), 'class' => '', 'hide' => [], 'icon' => 'fa-trash', 'extra' => ['data-confirm' => trans('crud::crud.confirm.delete'), 'data-type' => 'delete']], |
|
| 345 | ]; |
|
| 346 | } |
|
| 347 | ||
| 348 | private function initState() |
|
| 349 | { |
|