Code Duplication    Length = 11-11 lines in 3 locations

app/Http/Controllers/Scoring.php 3 locations

@@ 226-236 (lines=11) @@
223
        }
224
    }
225
226
    public function fourOfAKind($type): void
227
    {
228
        if ($this->notScoredYet == true) {
229
            // 4 OF A KIND
230
            if (in_array(4, $this->occurrencesValues)) {
231
                session()->put('score' . $type, ['score' => 50, 'feedback' => 'FOUR OF A KIND']);
232
                session()->put('count.fourofakind', session('count.fourofakind') + 1);
233
                $this->notScoredYet = false;
234
            }
235
        }
236
    }
237
    public function fullHouse($type): void
238
    {
239
        if ($this->notScoredYet == true) {
@@ 237-247 (lines=11) @@
234
            }
235
        }
236
    }
237
    public function fullHouse($type): void
238
    {
239
        if ($this->notScoredYet == true) {
240
            // FULL HOUSE
241
            if (in_array(3, $this->occurrencesValues) && in_array(2, $this->occurrencesValues)) {
242
                session()->put('score' . $type, ['score' => 25, 'feedback' => 'FULL HOUSE']);
243
                session()->put('count.fullhouse', session('count.fullhouse') + 1);
244
                $this->notScoredYet = false;
245
            }
246
        }
247
    }
248
249
    public function threeOfAKind($type): void
250
    {
@@ 249-259 (lines=11) @@
246
        }
247
    }
248
249
    public function threeOfAKind($type): void
250
    {
251
        if ($this->notScoredYet == true) {
252
            // 3 OF A KIND
253
            if (in_array(3, $this->occurrencesValues) && in_array(1, $this->occurrencesValues)) {
254
                session()->put('score' . $type, ['score' => 10, 'feedback' => 'THREE OF A KIND']);
255
                session()->put('count.threeofakind', session('count.threeofakind') + 1);
256
                $this->notScoredYet = false;
257
            }
258
        }
259
    }
260
261
    public function twoPairsOrPair($type): void
262
    {