Code Duplication    Length = 10-10 lines in 2 locations

src/Queries/Mysql/Insert.php 1 location

@@ 62-71 (lines=10) @@
59
    /**
60
     * {@inheritdoc}
61
     */
62
    public function __invoke()
63
    {
64
        $marks = [];
65
66
        foreach ($this->data as $field => $value) {
67
            $marks[":{$field}"] = $value;
68
        }
69
70
        return $this->entity->getDb()->execute((string) $this, $marks);
71
    }
72
73
    /**
74
     * {@inheritdoc}

src/Queries/Mysql/Update.php 1 location

@@ 50-59 (lines=10) @@
47
    /**
48
     * {@inheritdoc}
49
     */
50
    public function __invoke()
51
    {
52
        $marks = $this->marks;
53
54
        foreach ($this->data as $field => $value) {
55
            $marks[":__{$field}"] = $value;
56
        }
57
58
        return $this->entity->getDb()->execute((string) $this, $marks);
59
    }
60
61
    /**
62
     * {@inheritdoc}