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') ->setAttribute('class', 'list-group-item-header')
->setExtras([ ->setExtras([
'order' => 5000, 'order' => 5000,
//'icons' => ['exchange'],
]); ]);
$menu->addChild('Activity Reasons', [ $menu->addChild('Activity Reasons', [

View File

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

View File

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

View File

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

View File

@ -197,7 +197,6 @@ class AccompanyingCourseWorkController extends AbstractController
'accompanyingCourse' => $work->getAccompanyingPeriod(), 'accompanyingCourse' => $work->getAccompanyingPeriod(),
'work' => $work, 'work' => $work,
]); ]);
} }
private function createDeleteForm(int $id): Form 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\CRUD\Controller\ApiController;
use Chill\MainBundle\Pagination\PaginatorFactory; use Chill\MainBundle\Pagination\PaginatorFactory;
use Chill\MainBundle\Pagination\PaginatorInterface;
use Chill\MainBundle\Serializer\Model\Collection; use Chill\MainBundle\Serializer\Model\Collection;
use Chill\PersonBundle\Entity\SocialWork\SocialAction; use Chill\PersonBundle\Entity\SocialWork\SocialAction;
use Chill\PersonBundle\Repository\SocialWork\SocialIssueRepository; use Chill\PersonBundle\Repository\SocialWork\SocialIssueRepository;
@ -45,7 +44,7 @@ class SocialWorkSocialActionApiController extends ApiController
$socialActions = $socialIssue->getRecursiveSocialActions()->toArray(); $socialActions = $socialIssue->getRecursiveSocialActions()->toArray();
usort($socialActions, function (SocialAction $sa, SocialAction $sb) { usort($socialActions, static function (SocialAction $sa, SocialAction $sb) {
return $sa->getOrdering() <=> $sb->getOrdering(); return $sa->getOrdering() <=> $sb->getOrdering();
}); });

View File

@ -22,7 +22,7 @@ class ChillDocumentLockManager implements DocumentLockManagerInterface
private const LOCK_DURATION = 60 * 30; 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; private const LOCK_GRACEFUL_DURATION_TIME = 3;