Code Duplication    Length = 14-14 lines in 2 locations

app/Controller/ApiController.php 2 locations

@@ 376-389 (lines=14) @@
373
		return;
374
	}
375
376
	public function inactiveClient($id_cliente) 
377
	{
378
		$dados['ativo'] = 0;
379
		
380
		$this->Cliente->id = $id_cliente;
381
382
		if ($this->Cliente->save($dados)) {
383
			$this->response->body('{"message": "success", "result":'.json_encode($dados).'}');
384
			return;
385
		} else {
386
			$this->response->body('{"message": "error"}');
387
			return;
388
		}	
389
	}
390
391
	public function sendMail($dados)
392
	{
@@ 475-488 (lines=14) @@
472
		return;
473
	}
474
475
	public function inactiveParent($id_parente) 
476
	{
477
		$dados['ativo'] = 0;
478
		
479
		$this->Parente->id = $id_parente;
480
481
		if ($this->Parente->save($dados)) {
482
			$this->response->body('{"message": "success", "result":'.json_encode($dados).'}');
483
			return;
484
		} else {
485
			$this->response->body('{"message": "error"}');
486
			return;
487
		}	
488
	}
489
490
	public function postConsulta($dados)
491
	{