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 3 locations

src/Form/Element/DateRange.php 1 location

@@ 98-112 (lines=15) @@
95
    /**
96
     * @return array
97
     */
98
    public function toArray()
99
    {
100
        $this->setHtmlAttributes([
101
            'data-format'    => $this->getJsPickerFormat(),
102
            'data-startDate' => $this->getDefaultFrom(),
103
            'data-endDate'   => $this->getDefaultTo(),
104
            'class'          => 'form-control input-daterange',
105
            'type'           => 'text',
106
        ]);
107
108
        return parent::toArray() + [
109
                'startDate' => $this->getDefaultFrom(),
110
                'endDate'   => $this->getDefaultTo(),
111
            ];
112
    }
113
114
    /**
115
     * @param string $value

src/Form/Element/MultiSelectAjax.php 1 location

@@ 115-128 (lines=14) @@
112
    /**
113
     * @return array
114
     */
115
    public function toArray()
116
    {
117
        $this->setHtmlAttributes([
118
            'id'               => $this->getName(),
119
            'class'            => 'form-control js-data-ajax',
120
            'multiple',
121
            'field'            => $this->display,
122
            'model'            => get_class($this->getModelForOptions()),
123
            'search_url'       => $this->getSearchUrl(),
124
            'data-min-symbols' => $this->getMinSymbols(),
125
        ]);
126
127
        return ['attributes' => $this->getHtmlAttributes()] + parent::toArray();
128
    }
129
130
    /**
131
     * @return array

src/Form/Element/Number.php 1 location

@@ 90-105 (lines=16) @@
87
    /**
88
     * @return array
89
     */
90
    public function toArray()
91
    {
92
        $this->setHtmlAttributes([
93
            'class' => 'form-control',
94
            'type'  => 'number',
95
            'max'   => $this->getMax(),
96
            'min'   => $this->getMin(),
97
            'step'  => $this->getStep(),
98
        ]);
99
100
        return parent::toArray() + [
101
                'min'  => $this->getMin(),
102
                'max'  => $this->getMax(),
103
                'step' => $this->getStep(),
104
            ];
105
    }
106
107
    /**
108
     * @param mixed $value