mirror of
https://github.com/wallabag/wallabag.git
synced 2025-09-15 18:57:05 +00:00
Apply PHP-CS-Fixer fixes
This commit is contained in:
parent
e938cc8687
commit
0a117958c9
68 changed files with 67 additions and 519 deletions
|
@ -674,7 +674,7 @@ class ConfigController extends AbstractController
|
|||
*/
|
||||
public function setLocaleAction(Request $request, ValidatorInterface $validator, $language = null)
|
||||
{
|
||||
$errors = $validator->validate($language, (new LocaleConstraint(['canonicalize' => true])));
|
||||
$errors = $validator->validate($language, new LocaleConstraint(['canonicalize' => true]));
|
||||
|
||||
if (0 === \count($errors)) {
|
||||
$request->getSession()->set('_locale', $language);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue