Fixes based on sonar recommandations (#934)
This commit is contained in:
@@ -94,7 +94,7 @@ class ApiActivityController extends ApiController
|
||||
}
|
||||
|
||||
// Log a journal entry
|
||||
$journalEntry = (new JournalEntry)->add($activity);
|
||||
(new JournalEntry)->add($activity);
|
||||
|
||||
// Now we associate the activity with each one of the attendees
|
||||
$attendeesID = $request->get('contacts');
|
||||
@@ -167,7 +167,7 @@ class ApiActivityController extends ApiController
|
||||
|
||||
// Log a journal entry but need to delete the previous one first
|
||||
$activity->deleteJournalEntry();
|
||||
$journalEntry = (new JournalEntry)->add($activity);
|
||||
(new JournalEntry)->add($activity);
|
||||
|
||||
// Get the attendees
|
||||
$attendees = $request->get('contacts');
|
||||
|
||||
Reference in New Issue
Block a user