DX: fix cs

This commit is contained in:
Julien Fastré 2023-01-25 13:36:35 +01:00
parent e36d2a5eec
commit 459df26fef
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB
7 changed files with 13 additions and 9 deletions

View File

@ -36,7 +36,6 @@ final class AdminMenuBuilder implements LocalMenuBuilderInterface
->setAttribute('class', 'list-group-item-header')
->setExtras([
'order' => 5000,
//'icons' => ['exchange'],
]);
$menu->addChild('Activity Reasons', [

View File

@ -1,5 +1,14 @@
<?php
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\MainBundle\Controller;
use Chill\MainBundle\CRUD\Controller\ApiController;

View File

@ -80,5 +80,4 @@ class UserApiController extends ApiController
{
return $query->orderBy('e.label', 'ASC');
}
}

View File

@ -27,8 +27,7 @@ class ScopeType extends AbstractType
'choices' => [
'Active' => true,
'Inactive' => false,
]])
;
], ]);
}
/**

View File

@ -192,12 +192,11 @@ class AccompanyingCourseWorkController extends AbstractController
}
$this->denyAccessUnlessGranted(AccompanyingPeriodWorkVoter::SEE, $work);
return $this->render('@ChillPerson/AccompanyingCourseWork/show.html.twig', [
'accompanyingCourse' => $work->getAccompanyingPeriod(),
'work' => $work,
]);
}
private function createDeleteForm(int $id): Form

View File

@ -13,7 +13,6 @@ namespace Chill\PersonBundle\Controller;
use Chill\MainBundle\CRUD\Controller\ApiController;
use Chill\MainBundle\Pagination\PaginatorFactory;
use Chill\MainBundle\Pagination\PaginatorInterface;
use Chill\MainBundle\Serializer\Model\Collection;
use Chill\PersonBundle\Entity\SocialWork\SocialAction;
use Chill\PersonBundle\Repository\SocialWork\SocialIssueRepository;
@ -45,7 +44,7 @@ class SocialWorkSocialActionApiController extends ApiController
$socialActions = $socialIssue->getRecursiveSocialActions()->toArray();
usort($socialActions, function (SocialAction $sa, SocialAction $sb) {
usort($socialActions, static function (SocialAction $sa, SocialAction $sb) {
return $sa->getOrdering() <=> $sb->getOrdering();
});

View File

@ -22,7 +22,7 @@ class ChillDocumentLockManager implements DocumentLockManagerInterface
private const LOCK_DURATION = 60 * 30;
/**
* Number of seconds to keep the lock after the delete lock operation
* Number of seconds to keep the lock after the delete lock operation.
*/
private const LOCK_GRACEFUL_DURATION_TIME = 3;