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.

Filestore::dups()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 4
Ratio 100 %

Importance

Changes 0
Metric Value
dl 4
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 View Code Duplication
final class Filestore implements Api
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
25
{
26
    /**
27
     * List blocks that are both in the filestore and standard block storage.
28
     *
29
     * @Endpoint(name="filestore:dups")
30
     *
31
     * @return Command
32
     */
33
    public function dups(): Command
34
    {
35
        return new Command(__METHOD__, get_defined_vars());
36
    }
37
38
    /**
39
     * List objects in filestore.
40
     *
41
     * @Endpoint(name="filestore:ls")
42
     *
43
     * @param string $arg       cid of objects to list
44
     * @param bool   $fileOrder sort the results based on the path of the backing file
45
     *
46
     * @return Command
47
     */
48
    public function ls(string $arg = null, bool $fileOrder = false): Command
49
    {
50
        return new Command(__METHOD__, get_defined_vars());
51
    }
52
53
    /**
54
     * Verify objects in filestore.
55
     *
56
     * @Endpoint(name="filestore:verify")
57
     *
58
     * @param string $arg       cid of objects to verify
59
     * @param bool   $fileOrder verify the objects based on the order of the backing file
60
     *
61
     * @return Command
62
     */
63
    public function verify(string $arg = null, bool $fileOrder = false): Command
64
    {
65
        return new Command(__METHOD__, get_defined_vars());
66
    }
67
}
68