GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Push — develop ( 5050db...052270 )
by A s m
04:01
created

User::setWebhookUrl()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
cc 1
eloc 3
c 1
b 0
f 1
nc 1
nop 1
dl 0
loc 6
rs 10
1
<?php
2
3
namespace Multicoin\Api\Traits;
4
5
trait User
6
{
7
    public function balance()
8
    {
9
        $url = '/user/'.$this->coin.'/balance';
10
        $response = $this->client->doGet($url);
11
12
        return $response;
13
    }
14
15
    public function coreBalance()
16
    {
17
        $url = '/user/core-balance';
18
        $response = $this->client->doGet($url);
19
20
        return $response;
21
    }
22
23
    public function info()
24
    {
25
        $url = '/user';
26
        $response = $this->client->doGet($url);
27
28
        return $response;
29
    }
30
31
    public function setWebhookUrl($endPoint)
32
    {
33
        $url = '/user/webhook';
34
        $response = $this->client->doPost($url, ['url'=>$endPoint]);
0 ignored issues
show
Coding Style introduced by
Expected 1 space before "=>"; 0 found
Loading history...
Coding Style introduced by
Expected 1 space after "=>"; 0 found
Loading history...
35
36
        return $response;
37
    }
38
        public function withdraw($address,$amount)
0 ignored issues
show
Coding Style introduced by
Expected 1 space between comma and argument "$amount"; 0 found
Loading history...
39
    {
0 ignored issues
show
Coding Style introduced by
Opening brace indented incorrectly; expected 8 spaces, found 4
Loading history...
40
41
           $url = '/user/'.$this->coin.'/withdraw';
42
        $response = $this->client->doPost($url, ['address'=>$address,'amount'=>$amount]);
0 ignored issues
show
Coding Style introduced by
Expected 1 space before "=>"; 0 found
Loading history...
Coding Style introduced by
Expected 1 space after "=>"; 0 found
Loading history...
43
44
        return $response;
45
    }
0 ignored issues
show
Coding Style introduced by
Closing brace indented incorrectly; expected 8 spaces, found 4
Loading history...
46
}
47