Sorry, data for that comparison is no longer available.

chamilo/chamilo-lms

View on GitHub
src/CoreBundle/Repository/ConferenceActivityRepository.php

Summary

Maintainability
A
2 hrs
Test Coverage

Showing 2 of 2 total issues

Method findOneArrayByMeetingAndParticipant has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

public function findOneArrayByMeetingAndParticipant(int $meetingId, int $participantId): ?array
{
$qb = $this->createQueryBuilder('a')
->where('a.meeting = :meetingId')
->andWhere('a.participant = :participantId')
Severity: Minor
Found in src/CoreBundle/Repository/ConferenceActivityRepository.php - About 1 hr to fix

    Similar blocks of code found in 2 locations. Consider refactoring.
    Open

    return [
    'id' => $entity->getId(),
    'meeting_id' => $entity->getMeeting()?->getId(),
    'participant_id' => $entity->getParticipant()?->getId(),
    'in_at' => $entity->getInAt()?->format('Y-m-d H:i:s'),
    Severity: Major
    Found in src/CoreBundle/Repository/ConferenceActivityRepository.php and 1 other location - About 1 hr to fix
    public/plugin/Bbb/lib/bbb.lib.php on lines 740..752
    Category
    Status