Code Duplication    Length = 8-8 lines in 2 locations

src/Eccube/Common/Collection/StrictArrayCollection.php 2 locations

@@ 53-60 (lines=8) @@
50
     * {@inheritdoc}
51
     * @throws \InvalidArgumentException
52
     */
53
    final public function set($key, $value)
54
    {
55
        if (!$this->checkValue($value)) {
56
            throw new \InvalidArgumentException(sprintf("%s does not accept the passed element.", get_class($this)));
57
        }
58
59
        parent::set($key, $value);
60
    }
61
62
    /**
63
     * {@inheritdoc}
@@ 66-73 (lines=8) @@
63
     * {@inheritdoc}
64
     * @throws \InvalidArgumentException
65
     */
66
    final public function add($value)
67
    {
68
        if (!$this->checkValue($value)) {
69
            throw new \InvalidArgumentException(sprintf('%s does not accept the passed element.', get_class($this)));
70
        }
71
72
        return parent::add($value);
73
    }
74
75
    /**
76
     * {@inheritdoc}