Destroy   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 9
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __invoke() 0 7 1
1
<?php
2
3
namespace App\Http\Controllers\Sourcerefeven;
4
5
use App\Models\SourceRefEven;
6
use Illuminate\Routing\Controller;
7
8
class Destroy extends Controller
9
{
10
    public function __invoke(SourceRefEven $sourceRefEven)
11
    {
12
        $sourceRefEven->delete();
13
14
        return [
15
            'message' => __('The source ref even was successfully deleted'),
16
            'redirect' => 'sourcerefevents.index',
17
        ];
18
    }
19
}
20