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

src/Document.php 1 location

@@ 75-91 (lines=17) @@
72
     * @return $this
73
     * @throws LogicException
74
     */
75
    public function addClass($class)
76
    {
77
        if (!is_string($class)) {
78
            $exMsg = sprintf('Provided class `%s` is not a string', $class);
79
            throw new LogicException($exMsg);
80
        }
81
82
        $currentClass = $this->getClass();
83
        if (in_array($class, $currentClass)) {
84
            $exMsg = sprintf('Provided class `%s` is already registered', $class);
85
            throw new LogicException($exMsg);
86
        }
87
88
        $this->class[] = $class;
89
90
        return $this;
91
    }
92
93
    /**
94
     * Get properties

src/Entity.php 1 location

@@ 73-89 (lines=17) @@
70
     * @return $this
71
     * @throws LogicException
72
     */
73
    public function addClass($class)
74
    {
75
        if (!is_string($class)) {
76
            $exMsg = sprintf('Provided class `%s` is not a string', $class);
77
            throw new LogicException($exMsg);
78
        }
79
80
        $currentClass = $this->getClass();
81
        if (in_array($class, $currentClass)) {
82
            $exMsg = sprintf('Provided class `%s` is already registered', $class);
83
            throw new LogicException($exMsg);
84
        }
85
86
        $this->class[] = $class;
87
88
        return $this;
89
    }
90
91
    /**
92
     * Get rel