src/CoreBundle/Controller/OnlineController.php
Avoid unused parameters such as '$id'. Open
Open
public function onlineUsersInCoursesSession(int $id = 0): Response
- Read upRead up
- Exclude checks
UnusedFormalParameter
Since: 0.2
Avoid passing parameters to methods or constructors and then not using those parameters.
Example
class Foo
{
private function bar($howdy)
{
// $howdy is not used
}
}
Source https://phpmd.org/rules/unusedcode.html#unusedformalparameter
You must use "/**" style comments for a function comment Open
Open
public function onlineUsersInCoursesSession(int $id = 0): Response
- Exclude checks
You must use "/**" style comments for a class comment Open
Open
class OnlineController extends BaseController
- Exclude checks
You must use "/**" style comments for a function comment Open
Open
public function onlineUsersInCourses(string $cidReq): Response
- Exclude checks
You must use "/**" style comments for a function comment Open
Open
public function index(): Response
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Route(path: '/in_course/{cidReq}', name: 'online_users_in_course', methods: ['GET', 'POST'], options: ['expose' => true])]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Route('/online')]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Route(path: '/', name: 'users_online', methods: ['GET'], options: ['expose' => true])]
- Exclude checks
Perl-style comments are not allowed. Use "// Comment." or "/* comment */" instead. Open
Open
#[Route(path: '/in_sessions', name: 'online_users_in_session', methods: ['GET', 'POST'], options: ['expose' => true])]
- Exclude checks
Add a single space around assignment operators Open
Open
declare(strict_types=1);
- Exclude checks