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 = 15-16 lines in 5 locations

src/Bulb/Bulb.php 5 locations

@@ 155-169 (lines=15) @@
152
     *
153
     * @return Promise
154
     */
155
    public function setCtAbx(int $ctValue, string $effect, int $duration)
156
    {
157
        $data = [
158
            'id' => hexdec($this->getId()),
159
            'method' => 'set_ct_abx',
160
            'params' => [
161
                $ctValue,
162
                $effect,
163
                $duration,
164
            ],
165
        ];
166
        $this->send($data);
167
168
        return $this->read();
169
    }
170
171
    /**
172
     * This method is used to change the color of a smart LED
@@ 181-195 (lines=15) @@
178
     *
179
     * @return Promise
180
     */
181
    public function setRgb(int $rgbValue, string $effect, int $duration)
182
    {
183
        $data = [
184
            'id' => hexdec($this->getId()),
185
            'method' => 'set_rgb',
186
            'params' => [
187
                $rgbValue,
188
                $effect,
189
                $duration,
190
            ],
191
        ];
192
        $this->send($data);
193
194
        return $this->read();
195
    }
196
197
    /**
198
     * This method is used to change the color of a smart LED
@@ 207-222 (lines=16) @@
204
     *
205
     * @return Promise
206
     */
207
    public function setHsv(int $hue, int $sat, string $effect, int $duration)
208
    {
209
        $data = [
210
            'id' => hexdec($this->getId()),
211
            'method' => 'set_hsv',
212
            'params' => [
213
                $hue,
214
                $sat,
215
                $effect,
216
                $duration,
217
            ],
218
        ];
219
        $this->send($data);
220
221
        return $this->read();
222
    }
223
224
    /**
225
     * This method is used to change the brightness of a smart LED
@@ 234-248 (lines=15) @@
231
     *
232
     * @return Promise
233
     */
234
    public function setBright(int $brightness, string $effect, int $duration)
235
    {
236
        $data = [
237
            'id' => hexdec($this->getId()),
238
            'method' => 'set_bright',
239
            'params' => [
240
                $brightness,
241
                $effect,
242
                $duration,
243
            ],
244
        ];
245
        $this->send($data);
246
247
        return $this->read();
248
    }
249
250
    /**
251
     * This method is used to switch on or off the smart LED (software managed on/off)
@@ 260-274 (lines=15) @@
257
     *
258
     * @return Promise
259
     */
260
    public function setPower(string $power, string $effect, int $duration)
261
    {
262
        $data = [
263
            'id' => hexdec($this->getId()),
264
            'method' => 'set_power',
265
            'params' => [
266
                $power,
267
                $effect,
268
                $duration,
269
            ],
270
        ];
271
        $this->send($data);
272
273
        return $this->read();
274
    }
275
276
    /**
277
     * This method is used to toggle the smart LED