Code Duplication    Length = 10-10 lines in 2 locations

src/Post/Model.php 1 location

@@ 194-203 (lines=10) @@
191
     *
192
     * @return object
193
     */
194
    public function meta($key = '')
195
    {
196
        $meta = new ObjectMeta('post', $this->id);
197
198
        if ($key) {
199
            return $meta->get($key);
200
        }
201
202
        return $meta;
203
    }
204
205
    /**
206
     * Send the post to the trash

src/Term/Model.php 1 location

@@ 235-244 (lines=10) @@
232
     *
233
     * @return object
234
     */
235
    public function meta($key = '')
236
    {
237
        $meta = new ObjectMeta('term', $this->id);
238
239
        if ($key) {
240
            return $meta->get($key);
241
        }
242
243
        return $meta;
244
    }
245
246
    /**
247
     * Get the Taxonomy model.