Code Duplication    Length = 8-8 lines in 2 locations

src/Kunstmaan/TranslatorBundle/Entity/Translation.php 2 locations

@@ 115-122 (lines=8) @@
112
    /**
113
     * @ORM\PrePersist
114
     */
115
    public function prePersist()
116
    {
117
        $this->createdAt = new DateTime();
118
        $this->updatedAt = new DateTime();
119
        $this->flag = self::FLAG_NEW;
120
121
        return $this->id;
122
    }
123
124
    /**
125
     * @ORM\PreUpdate
@@ 127-134 (lines=8) @@
124
    /**
125
     * @ORM\PreUpdate
126
     */
127
    public function preUpdate()
128
    {
129
        $this->updatedAt = new DateTime();
130
131
        if ($this->flag === null) {
132
            $this->flag = self::FLAG_UPDATED;
133
        }
134
135
    }
136
137
    /**