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.
Completed
Branch master (2347b0)
by Robert
01:25
created

Bitswap::reprovide()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the "php-ipfs" package.
7
 *
8
 * (c) Robert Schönthal <[email protected]>
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code.
12
 */
13
14
namespace IPFS\Api;
15
16
use IPFS\Annotation\Api as Endpoint;
17
use IPFS\Command\Command;
18
19
/**
20
 * @author Robert Schönthal <[email protected]>
21
 * @autogenerated
22
 * @codeCoverageIgnore
23
 */
24
final class Bitswap implements Api
25
{
26
    /**
27
     * Show the current ledger for a peer.
28
     *
29
     * @Endpoint(name="bitswap:ledger")
30
     *
31
     * @param string $arg the PeerID (B58) of the ledger to inspect
32
     *
33
     * @return Command
34
     */
35
    public function ledger(string $arg): Command
36
    {
37
        return new Command(__METHOD__, get_defined_vars());
38
    }
39
40
    /**
41
     * Trigger reprovider.
42
     *
43
     * @Endpoint(name="bitswap:reprovide")
44
     *
45
     * @return Command
46
     */
47
    public function reprovide(): Command
48
    {
49
        return new Command(__METHOD__, get_defined_vars());
50
    }
51
52
    /**
53
     * Show some diagnostic information on the bitswap agent.
54
     *
55
     * @Endpoint(name="bitswap:stat")
56
     *
57
     * @return Command
58
     */
59
    public function stat(): Command
60
    {
61
        return new Command(__METHOD__, get_defined_vars());
62
    }
63
64
    /**
65
     * Remove a given block from your wantlist.
66
     *
67
     * @Endpoint(name="bitswap:unwant")
68
     *
69
     * @param string $arg key(s) to remove from your wantlist
70
     *
71
     * @return Command
72
     */
73
    public function unwant(string $arg): Command
74
    {
75
        return new Command(__METHOD__, get_defined_vars());
76
    }
77
78
    /**
79
     * Show blocks currently on the wantlist.
80
     *
81
     * @Endpoint(name="bitswap:wantlist")
82
     *
83
     * @param string $peer specify which peer to show wantlist for
84
     *
85
     * @return Command
86
     */
87
    public function wantlist(string $peer = null): Command
88
    {
89
        return new Command(__METHOD__, get_defined_vars());
90
    }
91
}
92