Code Duplication    Length = 11-11 lines in 2 locations

Command/CreateCardCommand.php 2 locations

@@ 116-126 (lines=11) @@
113
     *
114
     * @throws \Exception
115
     */
116
    public function validateTitle($value)
117
    {
118
        $this->getEntity()->setTitle($value);
119
120
        $error = $this->validate($this->entity, 'title');
121
        if ($error !== true) {
122
            throw new \InvalidArgumentException($error);
123
        }
124
125
        return $value;
126
    }
127
128
    /**
129
     * Validate the card content
@@ 137-147 (lines=11) @@
134
     *
135
     * @throws \Exception
136
     */
137
    public function validateContent($value)
138
    {
139
        $this->getEntity()->setContent($value);
140
141
        $error = $this->validate($this->entity, 'content');
142
        if ($error !== true) {
143
            throw new \InvalidArgumentException($error);
144
        }
145
146
        return $value;
147
    }
148
149
    /**
150
     * Validate the card category