Skip to content

Commit 67ecc2e

Browse files
committed
Minor: Format code
1 parent 70ea2ae commit 67ecc2e

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

src/CoreBundle/Command/ProcessUserDataRequestsCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ private function processUsers(
157157
continue;
158158
}
159159

160-
$content = sprintf(
160+
$content = \sprintf(
161161
$this->translator->trans(
162162
'The user %s is waiting for an action about his/her personal data request. To manage personal data requests you can follow this link: %s',
163163
),

src/CoreBundle/Command/SendEventRemindersCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ private function sendReminderMessage(User $user, CCalendarEvent $event, int $sen
198198
$locale = $user->getLocale() ?: 'en';
199199
$this->translator->setLocale($locale);
200200

201-
$messageSubject = sprintf(
201+
$messageSubject = \sprintf(
202202
$this->translator->trans('Reminder for event : %s'),
203203
[$event->getTitle()]
204204
);

src/CoreBundle/Controller/Admin/SessionAdminController.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -283,19 +283,19 @@ public function getCourseForSessionAdmin(int $id): JsonResponse
283283
$qb = $this->courseDescriptionRepository->getResourcesByCourse($course);
284284
$items = $qb->getQuery()->getResult();
285285

286-
$descriptions = array_map(static function($d) {
286+
$descriptions = array_map(static function ($d) {
287287
return [
288-
'title' => $d->getTitle(),
288+
'title' => $d->getTitle(),
289289
'content' => $d->getContent(),
290290
];
291291
}, $items);
292292

293293
return $this->json([
294-
'id' => $course->getId(),
295-
'title' => $course->getTitle(),
296-
'code' => $course->getCode(),
297-
'description' => '',
298-
'descriptions' => $descriptions,
294+
'id' => $course->getId(),
295+
'title' => $course->getTitle(),
296+
'code' => $course->getCode(),
297+
'description' => '',
298+
'descriptions' => $descriptions,
299299
'illustrationUrl' => method_exists($course, 'getIllustrationUrl')
300300
? $course->getIllustrationUrl()
301301
: null,

src/CoreBundle/Controller/SocialController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,12 +293,12 @@ public function handlePrivacyRequest(
293293
$fieldToUpdate = 'request_for_delete_account';
294294
$justificationFieldToUpdate = 'request_for_delete_account_justification';
295295
$emailSubject = $translator->trans('Request for account removal');
296-
$emailContent = \sprintf($translator->trans("User %s asked for the deletion of his/her account, explaining that \"%s\". You can process the request here: %s"), $user->getFullName(), $explanation, '<a href="'.$link.'">'.$link.'</a>');
296+
$emailContent = \sprintf($translator->trans('User %s asked for the deletion of his/her account, explaining that "%s". You can process the request here: %s'), $user->getFullName(), $explanation, '<a href="'.$link.'">'.$link.'</a>');
297297
} elseif ('delete_legal' === $requestType) {
298298
$fieldToUpdate = 'request_for_legal_agreement_consent_removal';
299299
$justificationFieldToUpdate = 'request_for_legal_agreement_consent_removal_justification';
300300
$emailSubject = $translator->trans('Request for consent withdrawal on legal terms');
301-
$emailContent = \sprintf($translator->trans("User %s asked for the removal of his/her consent to our legal terms, explaining that \"%s\". You can process the request here: %s"), $user->getFullName(), $explanation, '<a href="'.$link.'">'.$link.'</a>');
301+
$emailContent = \sprintf($translator->trans('User %s asked for the removal of his/her consent to our legal terms, explaining that "%s". You can process the request here: %s'), $user->getFullName(), $explanation, '<a href="'.$link.'">'.$link.'</a>');
302302
} else {
303303
return $this->json(['success' => false, 'message' => 'Invalid action type']);
304304
}

src/CoreBundle/Helpers/CourseHelper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ public function sendEmailToAdmin(Course $course): void
199199
$intro = $this->translator->trans('This message is to inform you that has created a new course on platform');
200200
$courseNameLabel = $this->translator->trans('Course name');
201201

202-
$message = sprintf($greeting,$recipientName)."\n\n";
202+
$message = \sprintf($greeting, $recipientName)."\n\n";
203203
$message .= "$intro $siteName - $institutionName.\n";
204204
$message .= "$courseNameLabel $courseName\n";
205205
$message .= $this->translator->trans('Course name').': '.$course->getTitle()."\n";
@@ -555,7 +555,7 @@ private function insertExampleContent(Course $course, GradebookCategory $gradebo
555555
$answer = new Answer($questionId, $courseInfo['real_id']);
556556
$answer->createAnswer($this->translator->trans("Ridiculise one's interlocutor in order to have him concede he is wrong."), 0, $this->translator->trans('No. Socratic irony is not a matter of psychology, it concerns argumentation.'), -5, 1);
557557
$answer->createAnswer($this->translator->trans("Admit one's own errors to invite one's interlocutor to do the same."), 0, $this->translator->trans('No. Socratic irony is not a seduction strategy or a method based on the example.'), -5, 2);
558-
$answer->createAnswer($this->translator->trans("Compell one's interlocutor, by a series of questions and sub-questions, to admit he doesn't know what he claims to know."), 1, $this->translator->trans("Indeed. Socratic irony is an interrogative method. The Greek \"eirotao\" means \"ask questions\""), 5, 3);
558+
$answer->createAnswer($this->translator->trans("Compell one's interlocutor, by a series of questions and sub-questions, to admit he doesn't know what he claims to know."), 1, $this->translator->trans('Indeed. Socratic irony is an interrogative method. The Greek "eirotao" means "ask questions"'), 5, 3);
559559
$answer->createAnswer($this->translator->trans("Use the Principle of Non Contradiction to force one's interlocutor into a dead end."), 1, $this->translator->trans("This answer is not false. It is true that the revelation of the interlocutor's ignorance means showing the contradictory conclusions where lead his premisses."), 5, 4);
560560
$answer->save();
561561

0 commit comments

Comments
 (0)