| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | public function render($model = null) |
||
| 10 | { |
||
| 11 | $crud = $this->crud(); |
||
| 12 | $isVisible = parent::shouldRender($model); |
||
|
1 ignored issue
–
show
|
|||
| 13 | if ($crud->isSoftDeleteEnabled()) { |
||
| 14 | $isVisible = !$model->trashed(); |
||
| 15 | } |
||
| 16 | |||
| 17 | return view('jarboe::crud.actions.delete', compact('crud', 'model', 'isVisible')); |
||
| 18 | } |
||
| 19 | |||
| 39 |
This check looks for a call to a parent method whose name is different than the method from which it is called.
Consider the following code:
The
getFirstName()method in theSoncalls the wrong method in the parent class.