chamilo/chamilo-lms

View on GitHub
public/main/inc/ajax/announcement.ajax.php

Summary

Maintainability
A
0 mins
Test Coverage

Variable "send_to_users" is not in valid camel caps format
Open

            if (empty($send_to_users['groups']) && empty($send_to_users['users'])) {

Variable "send_to_users" is not in valid camel caps format
Open

                    foreach ($send_to_users['groups'] as $group) {

Variable "send_to" is not in valid camel caps format
Open

                    foreach ($send_to['groups'] as $group) {

Each PHP statement must be on a line by itself
Open

        $previewTotal = array_map(function ($value) { return ''.$value; }, $previewTotal);

Variable "send_to" is not in valid camel caps format
Open

                $send_to = AbstractResource::separateUsersGroups($users);

Variable "send_to" is not in valid camel caps format
Open

                if (is_array($send_to['users'])) {

Variable "send_to_users" is not in valid camel caps format
Open

                if (!empty($send_to_users['groups'])) {

Variable "send_to_users" is not in valid camel caps format
Open

            if (empty($send_to_users['groups']) && empty($send_to_users['users'])) {

Closing brace must be on a line by itself
Open

        $previewTotal = array_map(function ($value) { return ''.$value; }, $previewTotal);

Variable "send_to" is not in valid camel caps format
Open

                    !empty($send_to['groups'])

Variable "send_to_users" is not in valid camel caps format
Open

            $send_to_users = AbstractResource::separateUsersGroups($users);

Variable "send_to_users" is not in valid camel caps format
Open

                if (!empty($send_to_users['users'])) {

Variable "send_to_users" is not in valid camel caps format
Open

                    foreach ($send_to_users['users'] as $user) {

Variable "send_to" is not in valid camel caps format
Open

                if (is_array($send_to['groups']) &&

Variable "send_to" is not in valid camel caps format
Open

                    foreach ($send_to['users'] as $user) {

Opening brace must be the last content on the line
Open

        $previewTotal = array_map(function ($value) { return ''.$value; }, $previewTotal);

Closing brace must be on a line by itself
Open

        $previewTotal = array_map(function ($value) { return ''.$value; }, $previewTotal);

There are no issues that match your filters.

Category
Status