mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
DX: fix cs
This commit is contained in:
parent
e36d2a5eec
commit
459df26fef
@ -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', [
|
||||||
|
@ -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;
|
||||||
|
@ -80,5 +80,4 @@ class UserApiController extends ApiController
|
|||||||
{
|
{
|
||||||
return $query->orderBy('e.label', 'ASC');
|
return $query->orderBy('e.label', 'ASC');
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -27,8 +27,7 @@ class ScopeType extends AbstractType
|
|||||||
'choices' => [
|
'choices' => [
|
||||||
'Active' => true,
|
'Active' => true,
|
||||||
'Inactive' => false,
|
'Inactive' => false,
|
||||||
]])
|
], ]);
|
||||||
;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -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
|
||||||
|
@ -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();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user