Issues (2128)

main/attendance/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.attendace
10
 */
11
12
// protect a course script
13
api_protect_course_script(true);
14
15
// Header
16
$tool = TOOL_ATTENDANCE;
17
18
$func = isset($_REQUEST['func']) ? $_REQUEST['func'] : null;
19
if ('fullscreen' === $func) {
20
    $htmlHeadXtra[] = api_get_css_asset('bootstrap/dist/css/bootstrap.min.css');
21
    Display::display_reduced_header();
22
} else {
23
    Display::display_header('');
24
}
25
26
// Introduction section
27
Display::display_introduction_section($tool);
28
29
// Tracking
30
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

30
Event::/** @scrutinizer ignore-call */ 
31
       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...
31
32
// Display
33
echo $content;
34
35
// Footer
36
if ('fullscreen' === $func) {
37
    Display::display_reduced_footer();
38
} else {
39
    Display::display_footer();
40
}
41