Code Duplication    Length = 8-8 lines in 2 locations

src/FlashService.php 2 locations

@@ 28-35 (lines=8) @@
25
    /**
26
     * @param string[] $value
27
     */
28
    public function mergeSuccessMessages(array $value)
29
    {
30
        $currentValue = (array)$this->session->get(static::SUCCESS);
31
32
        $newValue = array_merge($currentValue, $value);
33
34
        $this->session->flash(static::SUCCESS, $newValue);
35
    }
36
37
    /**
38
     * @param string[] $value
@@ 40-47 (lines=8) @@
37
    /**
38
     * @param string[] $value
39
     */
40
    public function mergeErrorMessages(array $value)
41
    {
42
        $currentValue = (array)$this->session->get(static::ERROR);
43
44
        $newValue = array_merge($currentValue, $value);
45
46
        $this->session->flash(static::ERROR, $newValue);
47
    }
48
49
    /**
50
     * @param string   $key