Code Duplication    Length = 8-9 lines in 2 locations

src/Http/Controllers/AdminController.php 2 locations

@@ 108-116 (lines=9) @@
105
        return response()->json(['message' => 'ok']);
106
    }
107
108
    public function delete(ComponentInterface $component, $id)
109
    {
110
        if (! $component->isDelete()) {
111
            throw new AuthorizationException();
112
        }
113
114
        $component->delete($id);
115
116
        return response()->json(['message' => 'ok']);
117
    }
118
119
    public function forceDelete(ComponentInterface $component, $id)
@@ 140-147 (lines=8) @@
137
        return response()->json(['message' => 'ok']);
138
    }
139
140
    public function reorder(ComponentInterface $component)
141
    {
142
        if (! $component->isEdit()) {
143
            throw new AuthorizationException();
144
        }
145
146
        //TODO
147
148
        return response()->json(['message' => 'ok']);
149
    }
150
}