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.

Transaction   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Importance

Changes 6
Bugs 4 Features 0
Metric Value
eloc 10
c 6
b 4
f 0
dl 0
loc 24
rs 10
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A transactionConfirmations() 0 6 1
A transactionValidate() 0 6 1
A transaction() 0 6 1
1
<?php
2
3
namespace Multicoin\Api\Traits;
4
5
trait Transaction
6
{
7
    public function transaction($txid)
8
    {
9
        $url = $this->buildUrl('/tx/'.$txid);
0 ignored issues
show
Bug introduced by
It seems like buildUrl() must be provided by classes using this trait. How about adding it as abstract method to this trait? ( Ignorable by Annotation )

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

9
        /** @scrutinizer ignore-call */ 
10
        $url = $this->buildUrl('/tx/'.$txid);
Loading history...
10
        $response = $this->client->doGet($url);
11
12
        return $response;
13
    }
14
15
    public function transactionConfirmations($txid)
16
    {
17
        $url = $this->buildUrl('/tx/'.$txid.'/confirmations');
18
        $response = $this->client->doGet($url);
19
20
        return $response;
21
    }
22
23
    public function transactionValidate($txid)
24
    {
25
        $url = $this->buildUrl('/tx/'.$txid.'/validate');
26
        $response = $this->client->doGet($url);
27
28
        return $response;
29
    }
30
}
31