Issues (15)

src/IndoBank.php (3 issues)

Severity
1
<?php
2
3
/*
4
 * This file is part of the IndoBank package.
5
 *
6
 * (c) Andri Desmana <andridesmana.pw | [email protected]>
7
 *
8
 */
9
10
namespace Andes2912\IndoBank;
11
12
use App\Models\Bank;
13
14
class IndoBank
15
{
16
    public function getBanks()
17
    {
18
        # code...
19
    }
20
21
    public function searchBanks($name = '')
0 ignored issues
show
The parameter $name 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

21
    public function searchBanks(/** @scrutinizer ignore-unused */ $name = '')

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...
22
    {
23
        # code...
24
    }
25
26
    public function findBank($key = '', $value = '')
0 ignored issues
show
The parameter $value 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

26
    public function findBank($key = '', /** @scrutinizer ignore-unused */ $value = '')

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...
The parameter $key 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

26
    public function findBank(/** @scrutinizer ignore-unused */ $key = '', $value = '')

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...
27
    {
28
        # code...
29
    }
30
}