cs: Remove duplicated headers.

This commit is contained in:
Pol Dellaiera
2021-11-30 13:48:55 +01:00
parent 47c5855a21
commit cd3be25c22
940 changed files with 5 additions and 6579 deletions

View File

@@ -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