mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-29 11:03:50 +00:00
cs: Remove duplicated headers.
This commit is contained in:
@@ -9,13 +9,6 @@
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* Chill is a software for social workers.
|
||||
*
|
||||
* For the full copyright and license information, please view
|
||||
* the LICENSE file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Chill\ReportBundle\Controller;
|
||||
|
||||
use Chill\MainBundle\Pagination\PaginatorFactory;
|
||||
@@ -136,15 +129,16 @@ class ReportController extends AbstractController
|
||||
/**
|
||||
* Display a form to edit an existing Report entity.
|
||||
*
|
||||
* @param int $person_id The id of the person.
|
||||
* @param int $report_id The id of the report.
|
||||
* @param int|string $person_id The id of the person.
|
||||
* @param int|string $report_id The id of the report.
|
||||
*
|
||||
* @return Response The web page.
|
||||
*/
|
||||
public function editAction($person_id, $report_id, Request $request)
|
||||
public function editAction($person_id, $report_id)
|
||||
{
|
||||
$em = $this->getDoctrine()->getManager();
|
||||
|
||||
/** @var Report $report */
|
||||
$report = $em->getRepository('ChillReportBundle:Report')->find($report_id);
|
||||
|
||||
if (!$report) {
|
||||
@@ -153,7 +147,7 @@ class ReportController extends AbstractController
|
||||
);
|
||||
}
|
||||
|
||||
if ((int) $person_id !== (int) ($report->getPerson()->getId())) {
|
||||
if ((int) $person_id !== (int) $report->getPerson()->getId()) {
|
||||
throw new RuntimeException(
|
||||
$this->get('translator')->trans('This is not the report of the person.'),
|
||||
1
|
||||
|
Reference in New Issue
Block a user