Code Duplication    Length = 10-10 lines in 5 locations

src/Gojira/Framework/App/Configuration/Auth.php 1 location

@@ 34-43 (lines=10) @@
31
     *
32
     * @return $this
33
     */
34
    public function setData($key, $value = null)
35
    {
36
        if ($key === (array)$key) {
37
            $this->_data = $key;
38
        } else {
39
            $this->_data[$key] = $value;
40
        }
41
42
        return $this;
43
    }
44
}
45

src/Gojira/Framework/App/Configuration/Configuration.php 1 location

@@ 85-94 (lines=10) @@
82
     *
83
     * @return $this
84
     */
85
    public function setData($key, $value = null)
86
    {
87
        if ($key === (array)$key) {
88
            $this->_data = $key;
89
        } else {
90
            $this->_data[$key] = $value;
91
        }
92
93
        return $this;
94
    }
95
96
    /**
97
     * {@inheritdoc}

src/Gojira/Framework/App/Configuration/Options.php 1 location

@@ 34-43 (lines=10) @@
31
     *
32
     * @return $this
33
     */
34
    public function setData($key, $value = null)
35
    {
36
        if ($key === (array)$key) {
37
            $this->_data = $key;
38
        } else {
39
            $this->_data[$key] = $value;
40
        }
41
42
        return $this;
43
    }
44
45
    /**
46
     * Init default option items

src/Gojira/Framework/App/Configuration/Path.php 1 location

@@ 35-44 (lines=10) @@
32
     *
33
     * @return $this
34
     */
35
    public function setData($key, $value = null)
36
    {
37
        if ($key === (array)$key) {
38
            $this->_data = $key;
39
        } else {
40
            $this->_data[$key] = $value;
41
        }
42
43
        return $this;
44
    }
45
46
    /**
47
     * {@inheritdoc}

src/Gojira/Framework/Data/DataObject.php 1 location

@@ 54-63 (lines=10) @@
51
    /**
52
     * {@inheritdoc}
53
     */
54
    public function setData($key, $value)
55
    {
56
        if ($key === (array)$key) {
57
            $this->_data = $key;
58
        } else {
59
            $this->_data[$key] = $value;
60
        }
61
62
        return $this;
63
    }
64
65
    /**
66
     * {@inheritdoc}