public/plugin/zoom/lib/MeetingRepository.php
Remove error control operator '@' on line 174. Open
Open
public function periodUserMeetings($start, $end, $user = null)
{
/*return $this->userMeetings($user)->filter(
function ($meeting) use ($start, $end) {
return $meeting->startDateTime >= $start && $meeting->startDateTime <= $end;
- Read upRead up
- Exclude checks
ErrorControlOperator
Error suppression should be avoided if possible as it doesn't just suppress the error, that you are trying to stop, but will also suppress errors that you didn't predict would ever occur. Consider changing error_reporting() level and/or setting up your own error handler.
Example
function foo($filePath) {
$file = @fopen($filPath); // hides exceptions
$key = @$array[$notExistingKey]; // assigns null to $key
}
Source http://phpmd.org/rules/cleancode.html#errorcontroloperator
Remove error control operator '@' on line 148. Open
Open
public function unfinishedUserMeetings($user = null)
{
/*return $this->userMeetings($user)->filter(
function ($meeting) {
return 'finished' !== $meeting->getMeetingInfoGet()->status;
- Read upRead up
- Exclude checks
ErrorControlOperator
Error suppression should be avoided if possible as it doesn't just suppress the error, that you are trying to stop, but will also suppress errors that you didn't predict would ever occur. Consider changing error_reporting() level and/or setting up your own error handler.
Example
function foo($filePath) {
$file = @fopen($filPath); // hides exceptions
$key = @$array[$notExistingKey]; // assigns null to $key
}
Source http://phpmd.org/rules/cleancode.html#errorcontroloperator
Multi-line function call not indented correctly; expected 16 spaces but found 20 Open
Open
Criteria::expr()->andX(
- Exclude checks
Multi-line function call not indented correctly; expected 24 spaces but found 20 Open
Open
Criteria::expr()->eq('course', $course),
- Exclude checks
Multi-line function call not indented correctly; expected 20 spaces but found 16 Open
Open
)
- Exclude checks
Multi-line function call not indented correctly; expected 24 spaces but found 20 Open
Open
Criteria::expr()->eq('session', $session)
- Exclude checks
Multi-line function call not indented correctly; expected 24 spaces but found 17 Open
Open
Criteria::expr()->eq('group', $group),
- Exclude checks
Multi-line function call not indented correctly; expected 20 spaces but found 16 Open
Open
)
- Exclude checks
Multi-line function call not indented correctly; expected 16 spaces but found 20 Open
Open
Criteria::expr()->andX(
- Exclude checks
Multi-line function call not indented correctly; expected 24 spaces but found 20 Open
Open
Criteria::expr()->eq('session', $session)
- Exclude checks
Multi-line function call not indented correctly; expected 24 spaces but found 17 Open
Open
Criteria::expr()->eq('group', $group),
- Exclude checks
Multi-line function call not indented correctly; expected 24 spaces but found 20 Open
Open
Criteria::expr()->eq('course', $course),
- Exclude checks