We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| @@ 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 | { |
|
| @@ 1142-1150 (lines=9) @@ | ||
| 1139 | return !empty($this->buttons) && !(count($this->buttons) == 1 && array_key_exists('add', $this->buttons)); |
|
| 1140 | } |
|
| 1141 | ||
| 1142 | public function initButtons() |
|
| 1143 | { |
|
| 1144 | $this->buttons = [ |
|
| 1145 | 'add' => ['route' => "{$this->route}/create", 'label' => trans('crud::crud.buttons.add'), 'class' => '', 'hide' => [], 'icon' => 'fa-plus-circle', 'extra' => []], |
|
| 1146 | 'view' => ['route' => "{$this->route}/%d", 'label' => trans('crud::crud.buttons.view'), 'class' => '', 'hide' => [], 'icon' => 'fa-eye', 'extra' => []], |
|
| 1147 | 'edit' => ['route' => "{$this->route}/%d/edit", 'label' => trans('crud::crud.buttons.edit'), 'class' => '', 'hide' => [], 'icon' => 'fa-edit', 'extra' => []], |
|
| 1148 | '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']], |
|
| 1149 | ]; |
|
| 1150 | } |
|
| 1151 | ||
| 1152 | public function removeButtons($buttons) |
|
| 1153 | { |
|