Issues (2128)

main/course_progress/layout.php (1 issue)

Labels
Severity
1
<?php
2
/* For licensing terms, see /license.txt */
3
4
/**
5
 * Layout (principal view) used for structuring other views.
6
 *
7
 * @author Christian Fasanando <[email protected]>
8
 *
9
 * @package chamilo.course_progress
10
 */
11
12
// protect a course script
13
api_protect_course_script(true);
14
15
// Header
16
$tool = TOOL_COURSE_PROGRESS;
17
Display::display_header('');
18
19
// Introduction section
20
Display::display_introduction_section($tool);
21
22
// Tracking
23
Event::event_access_tool($tool);
0 ignored issues
show
The method event_access_tool() does not exist on Event. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

23
Event::/** @scrutinizer ignore-call */ 
24
       event_access_tool($tool);

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
24
25
// Display
26
echo $content;
27
28
// Footer
29
Display::display_footer();
30