@@ -118,7 +118,7 @@ |
||
| 118 | 118 | } |
| 119 | 119 | } |
| 120 | 120 | } |
| 121 | -EOF |
|
| 121 | +eof |
|
| 122 | 122 | ; |
| 123 | 123 | |
| 124 | 124 | return json_decode($json, true); |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | Example running against default messages directory |
| 45 | 45 | |
| 46 | 46 | <info>php %command.full_name%</info> |
| 47 | -EOF |
|
| 47 | +eof |
|
| 48 | 48 | ) |
| 49 | 49 | ; |
| 50 | 50 | } |
@@ -80,7 +80,7 @@ |
||
| 80 | 80 | return $this->requestStack->getCurrentRequest()->getLocale(); |
| 81 | 81 | } |
| 82 | 82 | |
| 83 | - private function getLocalizedField(string $fieldName): string|array |
|
| 83 | + private function getLocalizedField(string $fieldName): string | array |
|
| 84 | 84 | { |
| 85 | 85 | $locale = $this->getLocale(); |
| 86 | 86 | if (array_key_exists($locale, $this->siteData) && isset($this->siteData[$locale][$fieldName])) { |
@@ -43,7 +43,7 @@ |
||
| 43 | 43 | |
| 44 | 44 | <info>php %command.full_name% AcmeFooBundle</info> |
| 45 | 45 | |
| 46 | -EOT |
|
| 46 | +eot |
|
| 47 | 47 | ); |
| 48 | 48 | } |
| 49 | 49 | |
@@ -15,6 +15,6 @@ |
||
| 15 | 15 | |
| 16 | 16 | require_once dirname(__DIR__) . '/vendor/autoload_runtime.php'; |
| 17 | 17 | |
| 18 | -return function (array $context) { |
|
| 18 | +return function(array $context) { |
|
| 19 | 19 | return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']); |
| 20 | 20 | }; |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | { |
| 28 | 28 | $builder |
| 29 | 29 | ->add('users', EntityType::class, [ |
| 30 | - 'choice_attr' => static function () { |
|
| 30 | + 'choice_attr' => static function() { |
|
| 31 | 31 | return ['class' => 'user-checkboxes']; |
| 32 | 32 | }, |
| 33 | 33 | 'class' => User::class, |
@@ -66,7 +66,7 @@ |
||
| 66 | 66 | } |
| 67 | 67 | if (isset($date)) { |
| 68 | 68 | $date = \DateTime::createFromFormat('YmdHis', $date, new \DateTimeZone('UTC')); |
| 69 | - $users = $users->filter(function (User $user) use ($date) { |
|
| 69 | + $users = $users->filter(function(User $user) use ($date) { |
|
| 70 | 70 | return $user->getRegistrationDate() < $date; |
| 71 | 71 | }); |
| 72 | 72 | } |
@@ -200,7 +200,7 @@ |
||
| 200 | 200 | if ($this->mailLoggingEnabled) { |
| 201 | 201 | $this->mailLogger->info(sprintf('Email sent to %s', 'multiple users'), [ |
| 202 | 202 | 'in' => __METHOD__, |
| 203 | - 'users' => array_reduce($users, function ($result, User $user) { return $result . $user->getEmail() . ','; }, 'emails: ') |
|
| 203 | + 'users' => array_reduce($users, function($result, User $user) { return $result . $user->getEmail() . ','; }, 'emails: ') |
|
| 204 | 204 | ]); |
| 205 | 205 | } |
| 206 | 206 | |
@@ -55,8 +55,8 @@ |
||
| 55 | 55 | // the following process should be unnecessary because cascade = all but MySQL 5.7 not working with that (#3726) |
| 56 | 56 | $qb = $this->_em->createQueryBuilder(); |
| 57 | 57 | $qb->delete(UserAttribute::class, 'a') |
| 58 | - ->where('a.user = :userId') |
|
| 59 | - ->setParameter('userId', $user->getUid()); |
|
| 58 | + ->where('a.user = :userId') |
|
| 59 | + ->setParameter('userId', $user->getUid()); |
|
| 60 | 60 | $query = $qb->getQuery(); |
| 61 | 61 | $query->execute(); |
| 62 | 62 | // end of theoretically unrequired process |