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

src/Menu.php 2 locations

@@ 135-148 (lines=14) @@
132
     *
133
     * @return $this
134
     */
135
    public function each(callable $callable)
136
    {
137
        $type = $this->determineFirstParameterType($callable);
138
139
        foreach ($this->items as $item) {
140
            if ($type !== null && !$item instanceof $type) {
141
                continue;
142
            }
143
144
            $callable($item);
145
        }
146
147
        return $this;
148
    }
149
150
    /**
151
     * Register a filter to the menu. When an item is added, all filters will be applied to the
@@ 268-283 (lines=16) @@
265
     *
266
     * @return $this
267
     */
268
    public function setActive(callable $callable)
269
    {
270
        $type = $this->determineFirstParameterType($callable);
271
272
        foreach ($this->items as $item) {
273
            if ($type !== null && !$item instanceof $type) {
274
                continue;
275
            }
276
277
            if ($callable($item)) {
278
                $item->setActive();
279
            }
280
        }
281
282
        return $this;
283
    }
284
285
    /**
286
     * Render the menu in html.