mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 15:13:50 +00:00
cs: Enable more risky rules.
This commit is contained in:
@@ -23,6 +23,7 @@ use Symfony\Component\Form\FormFactoryInterface;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use Symfony\Component\HttpFoundation\Session\SessionInterface;
|
||||
use Symfony\Component\Translation\TranslatorInterface;
|
||||
use function count;
|
||||
use function serialize;
|
||||
use function unserialize;
|
||||
|
||||
|
@@ -24,6 +24,7 @@ use Symfony\Component\Security\Core\Role\Role;
|
||||
use Symfony\Component\Security\Core\Role\RoleHierarchy;
|
||||
use Symfony\Component\Validator\Validator\ValidatorInterface;
|
||||
use Symfony\Contracts\Translation\TranslatorInterface;
|
||||
use function array_key_exists;
|
||||
|
||||
/**
|
||||
* Class PermissionsGroupController.
|
||||
|
@@ -25,6 +25,7 @@ use Symfony\Component\HttpFoundation\JsonResponse;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;
|
||||
use Symfony\Contracts\Translation\TranslatorInterface;
|
||||
use function count;
|
||||
use function key;
|
||||
use function reset;
|
||||
|
||||
@@ -105,7 +106,7 @@ class SearchController extends AbstractController
|
||||
$advancedSearchProviders = $searchProvider
|
||||
->getHasAdvancedFormSearchServices();
|
||||
|
||||
if (\count($advancedSearchProviders) === 1) {
|
||||
if (count($advancedSearchProviders) === 1) {
|
||||
reset($advancedSearchProviders);
|
||||
|
||||
return $this->redirectToRoute('chill_main_advanced_search', [
|
||||
|
@@ -15,6 +15,7 @@ use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use Symfony\Component\Routing\Annotation\Route;
|
||||
use Symfony\Component\Security\Core\Security;
|
||||
use function count;
|
||||
|
||||
class TimelineCenterController extends AbstractController
|
||||
{
|
||||
|
@@ -87,7 +87,7 @@ class UserController extends CRUDController
|
||||
|
||||
return $this->redirect($this->generateUrl(
|
||||
'chill_crud_admin_user_edit',
|
||||
\array_merge(['id' => $uid], $returnPathParams)
|
||||
array_merge(['id' => $uid], $returnPathParams)
|
||||
));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user