Code Duplication    Length = 8-8 lines in 2 locations

src/Model/Message/Message.php 1 location

@@ 37-44 (lines=8) @@
34
     * @param array $data
35
     * @param Context|callable $context
36
     */
37
    public function __construct(array $data = [], $context = null)
38
    {
39
        parent::__construct($data, $context);
40
        $type = static::MESSAGE_TYPE;
41
        if (!empty($type)) {
42
            $this->setType(static::MESSAGE_TYPE);
43
        }
44
    }
45
46
    public function fieldDefinitions()
47
    {

src/Model/Type/FieldType.php 1 location

@@ 25-32 (lines=8) @@
22
     * @param array $data
23
     * @param Context|callable $context
24
     */
25
    public function __construct(array $data = [], $context = null)
26
    {
27
        parent::__construct($data, $context);
28
        $name = static::NAME;
29
        if (!empty($name)) {
30
            $this->setName(static::NAME);
31
        }
32
    }
33
34
    public function fieldDefinitions()
35
    {