Passed
Push — master ( 7c785c...55c384 )
by Tim
07:43
created

Wallet::balance()   A

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 0
1
<?php
2
3
4
    namespace Digikraaft\Mono;
5
6
7
    class Wallet extends ApiResource
8
    {
9
        /**
10
         * @return array|object
11
         * @throws Exceptions\InvalidArgumentException
12
         * @throws Exceptions\IsNullException
13
         * @link https://docs.mono.co/reference#fetch-balance
14
         */
15
        public static function balance()
16
        {
17
            $url = "users/stats/wallet";
18
19
            return static::staticRequest('GET', $url);
0 ignored issues
show
Bug introduced by
The method staticRequest() does not exist on Digikraaft\Mono\Wallet. ( Ignorable by Annotation )

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

19
            return static::/** @scrutinizer ignore-call */ staticRequest('GET', $url);

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
20
        }
21
    }
22