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 = 30-30 lines in 2 locations

src/Isolate/UnitOfWork/Command/NewCommand.php 1 location

@@ 10-39 (lines=30) @@
7
/**
8
 * @api
9
 */
10
final class NewCommand implements Command
11
{
12
    /**
13
     * @var mixed
14
     */
15
    private $entity;
16
17
    /**
18
     * @param mixed $entity
19
     * @throws InvalidArgumentException
20
     */
21
    public function __construct($entity)
22
    {
23
        if (!is_object($entity)) {
24
            throw new InvalidArgumentException(sprintf("New command require object \"%s\" type passed.", gettype($entity)));
25
        }
26
27
        $this->entity = $entity;
28
    }
29
30
    /**
31
     * @return mixed
32
     * 
33
     * @api
34
     */
35
    public function getEntity()
36
    {
37
        return $this->entity;
38
    }
39
}
40

src/Isolate/UnitOfWork/Command/RemoveCommand.php 1 location

@@ 10-39 (lines=30) @@
7
/**
8
 * @api
9
 */
10
final class RemoveCommand implements Command
11
{
12
    /**
13
     * @var mixed
14
     */
15
    private $entity;
16
17
    /**
18
     * @param mixed $entity
19
     * @throws InvalidArgumentException
20
     */
21
    public function __construct($entity)
22
    {
23
        if (!is_object($entity)) {
24
            throw new InvalidArgumentException(sprintf("Remove command require object \"%s\" type passed.", gettype($entity)));
25
        }
26
27
        $this->entity = $entity;
28
    }
29
30
    /**
31
     * @return mixed
32
     * 
33
     * @api
34
     */
35
    public function getEntity()
36
    {
37
        return $this->entity;
38
    }
39
}
40