Release 2.20.0 (#4987)
This commit is contained in:
@@ -88,7 +88,7 @@ final class BookmarkController extends AbstractController
|
||||
}
|
||||
|
||||
if (\count($enabled) > 50) {
|
||||
throw new RuntimeException(sprintf('Too many columns provided, expected maximum 50, received %s.', \count($enabled)));
|
||||
throw new RuntimeException(\sprintf('Too many columns provided, expected maximum 50, received %s.', \count($enabled)));
|
||||
}
|
||||
|
||||
$user = $this->getUser();
|
||||
|
||||
@@ -304,12 +304,12 @@ final class DoctorController extends AbstractController
|
||||
)) {
|
||||
foreach ($matches as $match) {
|
||||
$fn = $plainText;
|
||||
if (isset($match[3])) {
|
||||
if (isset($match[2]) && isset($match[3])) {
|
||||
$keys1 = array_keys($phpinfo);
|
||||
$phpinfo[end($keys1)][$fn($match[2])] = isset($match[4]) ? [$fn($match[3]), $fn($match[4])] : $fn($match[3]);
|
||||
} else {
|
||||
$keys1 = array_keys($phpinfo);
|
||||
$phpinfo[end($keys1)][] = $fn($match[2]);
|
||||
$phpinfo[end($keys1)][] = $fn($match[2]); // @phpstan-ignore-line
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -319,7 +319,7 @@ final class InvoiceController extends AbstractController
|
||||
|
||||
if (null === $file) {
|
||||
throw $this->createNotFoundException(
|
||||
sprintf('Invoice file "%s" could not be found for invoice ID "%s"', $invoice->getInvoiceFilename(), $invoice->getId())
|
||||
\sprintf('Invoice file "%s" could not be found for invoice ID "%s"', $invoice->getInvoiceFilename(), $invoice->getId())
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -243,7 +243,7 @@ final class PermissionController extends AbstractController
|
||||
}
|
||||
|
||||
if (false === $value && $role->getName() === User::ROLE_SUPER_ADMIN && \array_key_exists($name, RolePermissionManager::SUPER_ADMIN_PERMISSIONS)) {
|
||||
throw new BadRequestHttpException(sprintf('Permission "%s" cannot be deactivated for role "%s"', $name, $role->getName()));
|
||||
throw new BadRequestHttpException(\sprintf('Permission "%s" cannot be deactivated for role "%s"', $name, $role->getName()));
|
||||
}
|
||||
|
||||
try {
|
||||
|
||||
@@ -118,7 +118,7 @@ final class QuickEntryController extends AbstractController
|
||||
$startFrom = null;
|
||||
if ($takeOverWeeks !== null && \intval($takeOverWeeks) > 0) {
|
||||
$startFrom = clone $startWeek;
|
||||
$startFrom->modify(sprintf('-%s weeks', $takeOverWeeks));
|
||||
$startFrom->modify(\sprintf('-%s weeks', $takeOverWeeks));
|
||||
}
|
||||
|
||||
$favorites = $this->favoriteRecordService->favoriteEntries($user, $amount);
|
||||
|
||||
@@ -71,7 +71,7 @@ final class PasswordResetController extends AbstractController
|
||||
if (!$user->isPasswordRequestNonExpired($this->configuration->getPasswordResetRetryLifetime())) {
|
||||
if (!$user->isInternalUser()) {
|
||||
throw $this->createAccessDeniedException(
|
||||
sprintf('The user "%s" tried to reset the password, but it is registered as "%s" auth-type.', $user->getUserIdentifier(), $user->getAuth())
|
||||
\sprintf('The user "%s" tried to reset the password, but it is registered as "%s" auth-type.', $user->getUserIdentifier(), $user->getAuth())
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -164,7 +164,7 @@ final class SelfRegistrationController extends AbstractController
|
||||
return null;
|
||||
}
|
||||
|
||||
$key = sprintf('_security.%s.target_path', $token->getProviderKey());
|
||||
$key = \sprintf('_security.%s.target_path', $token->getProviderKey());
|
||||
|
||||
if ($session->has($key)) {
|
||||
return $session->get($key);
|
||||
|
||||
@@ -97,7 +97,7 @@ final class TeamController extends AbstractController
|
||||
|
||||
$i = 1;
|
||||
do {
|
||||
$newName = sprintf('%s (%s)', $team->getName(), $i++);
|
||||
$newName = \sprintf('%s (%s)', $team->getName(), $i++);
|
||||
} while ($this->repository->count(['name' => $newName]) > 0 && $i < 10);
|
||||
$newTeam->setName($newName);
|
||||
|
||||
|
||||
@@ -321,7 +321,7 @@ abstract class TimesheetAbstractController extends AbstractController
|
||||
}
|
||||
|
||||
if ($disallowed > 0) {
|
||||
$this->flashWarning(sprintf('You are missing the permission to edit %s timesheets', $disallowed));
|
||||
$this->flashWarning(\sprintf('You are missing the permission to edit %s timesheets', $disallowed));
|
||||
}
|
||||
|
||||
$dto->setEntities($timesheets);
|
||||
@@ -411,7 +411,7 @@ abstract class TimesheetAbstractController extends AbstractController
|
||||
$this->flashUpdateException($ex);
|
||||
}
|
||||
} else {
|
||||
$this->flashSuccess(sprintf('No changes for %s entries detected.', \count($timesheets)));
|
||||
$this->flashSuccess(\sprintf('No changes for %s entries detected.', \count($timesheets)));
|
||||
|
||||
return $this->redirectToRoute($this->getTimesheetRoute());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user