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.

Code Duplication    Length = 83-83 lines in 2 locations

src/CommandBus/Command/Organization/AddWebHookCommand.php 1 location

@@ 10-92 (lines=83) @@
7
/**
8
 * @Handler("ApiClients\Client\Github\CommandBus\Handler\Organization\AddWebHookHandler")
9
 */
10
final class AddWebHookCommand
11
{
12
    /**
13
     * @var string
14
     */
15
    private $organization;
16
17
    /**
18
     * @var string
19
     */
20
    private $name;
21
22
    /**
23
     * @var array
24
     */
25
    private $config;
26
27
    /**
28
     * @var array
29
     */
30
    private $events;
31
32
    /**
33
     * @var bool
34
     */
35
    private $active;
36
37
    /**
38
     * @param string $organization
39
     * @param string $name
40
     * @param array  $config
41
     * @param array  $events
42
     * @param bool   $active
43
     */
44
    public function __construct(string $organization, string $name, array $config, array $events, bool $active)
45
    {
46
        $this->organization = $organization;
47
        $this->name = $name;
48
        $this->config = $config;
49
        $this->events = $events;
50
        $this->active = $active;
51
    }
52
53
    /**
54
     * @return string
55
     */
56
    public function getOrganization(): string
57
    {
58
        return $this->organization;
59
    }
60
61
    /**
62
     * @return string
63
     */
64
    public function getName(): string
65
    {
66
        return $this->name;
67
    }
68
69
    /**
70
     * @return array
71
     */
72
    public function getConfig(): array
73
    {
74
        return $this->config;
75
    }
76
77
    /**
78
     * @return array
79
     */
80
    public function getEvents(): array
81
    {
82
        return $this->events;
83
    }
84
85
    /**
86
     * @return bool
87
     */
88
    public function isActive(): bool
89
    {
90
        return $this->active;
91
    }
92
}
93

src/CommandBus/Command/Repository/AddWebHookCommand.php 1 location

@@ 10-92 (lines=83) @@
7
/**
8
 * @Handler("ApiClients\Client\Github\CommandBus\Handler\Repository\AddWebHookHandler")
9
 */
10
final class AddWebHookCommand
11
{
12
    /**
13
     * @var string
14
     */
15
    private $repository;
16
17
    /**
18
     * @var string
19
     */
20
    private $name;
21
22
    /**
23
     * @var array
24
     */
25
    private $config;
26
27
    /**
28
     * @var array
29
     */
30
    private $events;
31
32
    /**
33
     * @var bool
34
     */
35
    private $active;
36
37
    /**
38
     * @param string $repository
39
     * @param string $name
40
     * @param array  $config
41
     * @param array  $events
42
     * @param bool   $active
43
     */
44
    public function __construct(string $repository, string $name, array $config, array $events, bool $active)
45
    {
46
        $this->repository = $repository;
47
        $this->name = $name;
48
        $this->config = $config;
49
        $this->events = $events;
50
        $this->active = $active;
51
    }
52
53
    /**
54
     * @return string
55
     */
56
    public function getRepository(): string
57
    {
58
        return $this->repository;
59
    }
60
61
    /**
62
     * @return string
63
     */
64
    public function getName(): string
65
    {
66
        return $this->name;
67
    }
68
69
    /**
70
     * @return array
71
     */
72
    public function getConfig(): array
73
    {
74
        return $this->config;
75
    }
76
77
    /**
78
     * @return array
79
     */
80
    public function getEvents(): array
81
    {
82
        return $this->events;
83
    }
84
85
    /**
86
     * @return bool
87
     */
88
    public function isActive(): bool
89
    {
90
        return $this->active;
91
    }
92
}
93