Issues (2130)

main/course_description/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
10
// protect a course script
11
api_protect_course_script(true);
12
13
// Header
14
Display::display_header('');
15
16
// Introduction section
17
Display::display_introduction_section(TOOL_COURSE_DESCRIPTION);
18
19
// Tracking
20
Event::event_access_tool(TOOL_COURSE_DESCRIPTION);
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

20
Event::/** @scrutinizer ignore-call */ 
21
       event_access_tool(TOOL_COURSE_DESCRIPTION);

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...
21
22
// Display
23
echo $content;
24
25
// Footer
26
Display::display_footer();
27