Code Duplication    Length = 7-7 lines in 2 locations

admin/code/CampaignAdmin.php 2 locations

@@ 171-177 (lines=7) @@
168
	 *
169
	 * @return SS_HTTPResponse
170
	 */
171
	public function createCampaign(SS_HTTPRequest $request) {
172
		$response = new SS_HTTPResponse();
173
		$response->addHeader('Content-Type', 'application/json');
174
		$response->setBody(Convert::raw2json(['campaign' => 'create']));
175
176
		// TODO Implement permission check and data creation
177
178
		return $response;
179
	}
180
@@ 332-338 (lines=7) @@
329
	 *
330
	 * @return SS_HTTPResponse
331
	 */
332
	public function updateCampaign(SS_HTTPRequest $request) {
333
		$response = new SS_HTTPResponse();
334
		$response->addHeader('Content-Type', 'application/json');
335
		$response->setBody(Convert::raw2json(['campaign' => 'update']));
336
337
		// TODO Implement data update and permission checks
338
339
		return $response;
340
	}
341