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.

Tar   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 30
c 0
b 0
f 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A add() 0 4 1
A cat() 0 4 1
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 Tar implements Api
25
{
26
    /**
27
     * Import a tar file into ipfs.
28
     *
29
     * @Endpoint(name="tar:add")
30
     *
31
     * @param string $file tar file to add
32
     *
33
     * @return Command
34
     */
35
    public function add(string $file): Command
36
    {
37
        return new Command(__METHOD__, get_defined_vars());
38
    }
39
40
    /**
41
     * Export a tar file from IPFS.
42
     *
43
     * @Endpoint(name="tar:cat")
44
     *
45
     * @param string $arg ipfs path of archive to export
46
     *
47
     * @return Command
48
     */
49
    public function cat(string $arg): Command
50
    {
51
        return new Command(__METHOD__, get_defined_vars());
52
    }
53
}
54