Completed
Push — dev ( 4f11ce...5d65d1 )
by Alies
06:00 queued 01:47
created

TransactionController   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 10
c 0
b 0
f 0
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A index() 0 3 1
A show() 0 3 1
1
<?php
2
3
namespace Diglabby\Doika\Http\Controllers\Dashboard;
4
5
use App\Http\Controllers\Controller;
6
use Diglabby\Doika\Models\Transaction;
7
8
final class TransactionController extends Controller
9
{
10
    public function index()
11
    {
12
        return factory(Transaction::class, 10)->make();
13
    }
14
15
    public function show(int $transactionId)
0 ignored issues
show
Unused Code introduced by
The parameter $transactionId is not used and could be removed. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-unused  annotation

15
    public function show(/** @scrutinizer ignore-unused */ int $transactionId)

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
16
    {
17
        return factory(Transaction::class)->make();
18
    }
19
}
20