diff --git a/src/Bundle/ChillActivityBundle/Menu/AdminMenuBuilder.php b/src/Bundle/ChillActivityBundle/Menu/AdminMenuBuilder.php index 5a63405ca..71a9e3c2a 100644 --- a/src/Bundle/ChillActivityBundle/Menu/AdminMenuBuilder.php +++ b/src/Bundle/ChillActivityBundle/Menu/AdminMenuBuilder.php @@ -36,7 +36,6 @@ final class AdminMenuBuilder implements LocalMenuBuilderInterface ->setAttribute('class', 'list-group-item-header') ->setExtras([ 'order' => 5000, - //'icons' => ['exchange'], ]); $menu->addChild('Activity Reasons', [ diff --git a/src/Bundle/ChillMainBundle/Controller/ScopeApiController.php b/src/Bundle/ChillMainBundle/Controller/ScopeApiController.php index 018674fb4..85041f0f3 100644 --- a/src/Bundle/ChillMainBundle/Controller/ScopeApiController.php +++ b/src/Bundle/ChillMainBundle/Controller/ScopeApiController.php @@ -1,5 +1,14 @@ orderBy('e.label', 'ASC'); } - } diff --git a/src/Bundle/ChillMainBundle/Form/ScopeType.php b/src/Bundle/ChillMainBundle/Form/ScopeType.php index 923bc0778..86335c554 100644 --- a/src/Bundle/ChillMainBundle/Form/ScopeType.php +++ b/src/Bundle/ChillMainBundle/Form/ScopeType.php @@ -27,8 +27,7 @@ class ScopeType extends AbstractType 'choices' => [ 'Active' => true, 'Inactive' => false, - ]]) - ; + ], ]); } /** diff --git a/src/Bundle/ChillPersonBundle/Controller/AccompanyingCourseWorkController.php b/src/Bundle/ChillPersonBundle/Controller/AccompanyingCourseWorkController.php index 6baaf03da..8d15ca30f 100644 --- a/src/Bundle/ChillPersonBundle/Controller/AccompanyingCourseWorkController.php +++ b/src/Bundle/ChillPersonBundle/Controller/AccompanyingCourseWorkController.php @@ -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 diff --git a/src/Bundle/ChillPersonBundle/Controller/SocialWorkSocialActionApiController.php b/src/Bundle/ChillPersonBundle/Controller/SocialWorkSocialActionApiController.php index 4d6cfd82d..3ae5c5b7c 100644 --- a/src/Bundle/ChillPersonBundle/Controller/SocialWorkSocialActionApiController.php +++ b/src/Bundle/ChillPersonBundle/Controller/SocialWorkSocialActionApiController.php @@ -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(); }); diff --git a/src/Bundle/ChillWopiBundle/src/Service/Wopi/ChillDocumentLockManager.php b/src/Bundle/ChillWopiBundle/src/Service/Wopi/ChillDocumentLockManager.php index 185256238..fce25de58 100644 --- a/src/Bundle/ChillWopiBundle/src/Service/Wopi/ChillDocumentLockManager.php +++ b/src/Bundle/ChillWopiBundle/src/Service/Wopi/ChillDocumentLockManager.php @@ -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;