Wallet::balanceByCurrency()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 2
c 1
b 0
f 0
dl 0
loc 5
rs 10
cc 1
nc 1
nop 1
1
<?php
2
3
namespace Digikraaft\Flutterwave;
4
5
class Wallet extends ApiResource
6
{
7
    const OBJECT_NAME = 'balances';
8
9
    use ApiOperations\All;
10
    use ApiOperations\Create;
11
12
    /**
13
     * @param string $currency
14
     * @return array|object
15
     * @link https://developer.flutterwave.com/reference#get-balances-per-currency
16
     */
17
    public static function balanceByCurrency(string $currency)
0 ignored issues
show
Unused Code introduced by
The parameter $currency 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

17
    public static function balanceByCurrency(/** @scrutinizer ignore-unused */ string $currency)

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...
18
    {
19
        $url = static::endPointUrl("{currency}");
20
21
        return static::staticRequest('DELETE', $url);
22
    }
23
}
24