IndoBank   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
eloc 1
dl 0
loc 14
c 1
b 0
f 0
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A searchBanks() 0 2 1
A getBanks() 0 2 1
A findBank() 0 2 1
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
Unused Code introduced by
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
Unused Code introduced by
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...
Unused Code introduced by
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
}