Code Duplication    Length = 5-5 lines in 2 locations

app/Http/Controllers/TagController.php 1 location

@@ 59-63 (lines=5) @@
56
    public function store()
57
    {
58
59
        if (! Input::get('name') or ! Input::get('done') or ! Input::get('priority'))
60
        {
61
            return $this->setStatusCode(IlluminateResponse::HTTP_UNPROCESSABLE_ENTITY)
62
                ->respondWithError('Parameters failed validation for a tag.');
63
        }
64
        Tag::create(Input::all());
65
        return $this->respondCreated('Tag successfully created.');
66

app/Http/Controllers/TaskController.php 1 location

@@ 67-71 (lines=5) @@
64
    public function store()
65
    {
66
67
        if (! Input::get('name') or ! Input::get('done') or ! Input::get('priority'))
68
        {
69
            return $this->setStatusCode(IlluminateResponse::HTTP_UNPROCESSABLE_ENTITY)
70
                ->respondWithError('Parameters failed validation for a task.');
71
        }
72
        Task::create(Input::all());
73
        return $this->respondCreated('Task successfully created.');
74