@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | $messageModules = $messageModuleCollector->getKeys(); |
| 59 | 59 | |
| 60 | 60 | $variables = $variableApi->getAll(VariableApi::CONFIG); |
| 61 | - $variables['UseCompression'] = (bool)$variables['UseCompression']; |
|
| 61 | + $variables['UseCompression'] = (bool) $variables['UseCompression']; |
|
| 62 | 62 | $form = $this->createForm( |
| 63 | 63 | MainSettingsType::class, |
| 64 | 64 | $variables, |
@@ -108,9 +108,9 @@ discard block |
||
| 108 | 108 | $form = $this->createForm( |
| 109 | 109 | LocaleSettingsType::class, |
| 110 | 110 | [ |
| 111 | - 'multilingual' => (bool)$variableApi->getSystemVar('multilingual'), |
|
| 111 | + 'multilingual' => (bool) $variableApi->getSystemVar('multilingual'), |
|
| 112 | 112 | 'languageurl' => $variableApi->getSystemVar('languageurl'), |
| 113 | - 'language_detect' => (bool)$variableApi->getSystemVar('language_detect'), |
|
| 113 | + 'language_detect' => (bool) $variableApi->getSystemVar('language_detect'), |
|
| 114 | 114 | 'locale' => $variableApi->getSystemVar('locale'), |
| 115 | 115 | 'timezone' => $variableApi->getSystemVar('timezone'), |
| 116 | 116 | ], |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | ->setParameter('excludedGid', $gid); |
| 54 | 54 | } |
| 55 | 55 | |
| 56 | - if ((int)$qb->getQuery()->getSingleScalarResult() > 0) { |
|
| 56 | + if ((int) $qb->getQuery()->getSingleScalarResult() > 0) { |
|
| 57 | 57 | $this->context->buildViolation( |
| 58 | 58 | $this->translator->trans( |
| 59 | 59 | 'The group name you entered (%groupName%) does already exist.', |
@@ -208,7 +208,7 @@ |
||
| 208 | 208 | if (typeof exports !== "undefined" && typeof module !== "undefined") { |
| 209 | 209 | module.exports = components; |
| 210 | 210 | } |
| 211 | -EOT; |
|
| 211 | +eot; |
|
| 212 | 212 | |
| 213 | 213 | return $output; |
| 214 | 214 | } |
@@ -81,7 +81,7 @@ |
||
| 81 | 81 | if (empty($importValues)) { |
| 82 | 82 | return $this->trans('Error! The import file does not have values.'); |
| 83 | 83 | } |
| 84 | - $generateErrorList = function ($errors) { |
|
| 84 | + $generateErrorList = function($errors) { |
|
| 85 | 85 | $errorList = ''; |
| 86 | 86 | foreach ($errors as $error) { |
| 87 | 87 | $errorList .= $error->getMessage() . PHP_EOL; |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | |
| 119 | 119 | <info>php %command.full_name% 1000 --active=I --verified=2 --regdate='>20200101'</info> |
| 120 | 120 | |
| 121 | -EOT |
|
| 121 | +eot |
|
| 122 | 122 | ); |
| 123 | 123 | } |
| 124 | 124 | |
@@ -185,7 +185,7 @@ discard block |
||
| 185 | 185 | } |
| 186 | 186 | $randTimeStamp = mt_rand($regDate->getTimestamp(), $this->nowUTC->getTimestamp()); |
| 187 | 187 | |
| 188 | - return \DateTime::createFromFormat("U", "${randTimeStamp}", $utcTz); |
|
| 188 | + return \DateTime::createFromFormat("U", "${randtimestamp}", $utcTz); |
|
| 189 | 189 | } |
| 190 | 190 | |
| 191 | 191 | private function insertUser(string $uname): void |
@@ -85,7 +85,7 @@ |
||
| 85 | 85 | |
| 86 | 86 | <info>--date</info> <comment>YYYYMMDDHHMMSS</comment> before deleting, filter user collection by date <comment>before</comment> this date. |
| 87 | 87 | |
| 88 | -EOT |
|
| 88 | +eot |
|
| 89 | 89 | ); |
| 90 | 90 | } |
| 91 | 91 | |
@@ -99,7 +99,7 @@ |
||
| 99 | 99 | } |
| 100 | 100 | if (isset($date)) { |
| 101 | 101 | $date = \DateTime::createFromFormat('YmdHis', $date, new \DateTimeZone('UTC')); |
| 102 | - $users = $users->filter(function (UserEntity $user) use ($date) { |
|
| 102 | + $users = $users->filter(function(UserEntity $user) use ($date) { |
|
| 103 | 103 | return $user->getRegistrationDate() < $date; |
| 104 | 104 | }); |
| 105 | 105 | } |
@@ -94,11 +94,11 @@ |
||
| 94 | 94 | <title>${subject}</title> |
| 95 | 95 | </head> |
| 96 | 96 | <body> |
| 97 | -<h1>Hi ${uName}!</h1> |
|
| 97 | +<h1>Hi ${uname}!</h1> |
|
| 98 | 98 | <p>Zikula has been successfully installed at <a href="${url}">${url}</a>. If you have further questions, |
| 99 | 99 | visit <a href="https://ziku.la">ziku.la</a></p> |
| 100 | 100 | </body> |
| 101 | -EOF; |
|
| 101 | +eof; |
|
| 102 | 102 | $email = (new Email()) |
| 103 | 103 | ->from($adminUser->getEmail()) |
| 104 | 104 | ->to($adminUser->getEmail()) |
@@ -90,7 +90,7 @@ |
||
| 90 | 90 | |
| 91 | 91 | <info>php %command.full_name% fabien</info> |
| 92 | 92 | |
| 93 | -EOT |
|
| 93 | +eot |
|
| 94 | 94 | ); |
| 95 | 95 | } |
| 96 | 96 | |