chamilo/chamilo-lms

View on GitHub
public/main/lp/lp_list_search.php

Summary

Maintainability
A
0 mins
Test Coverage

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

                    $prefix = $specific_field['code'];

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

        foreach ($sf_terms_for_code as $term) {

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

        $fixed_queries = [$course_filter];

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

            $blocks[] = [1 => $a_prefix.'<img src="'.$result['thumbnail'].'" />'.$a_suffix.'<br />'.$title.'<br />'.$result['author'],

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

    $s->per_page = 9;

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

            $a_suffix = '';

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

                    $term_array[] = chamilo_get_boolean_query($term['name']); // Here name includes prefix.

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

                    $term_array[] = chamilo_get_boolean_query($prefix.$term);

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

    $get_params = '';

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

$specific_fields = get_specific_field_list();

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

                $term_array[] = chamilo_get_boolean_query($term['name']);

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

if (count($term_array)) {

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

        $fixed_queries = [$course_filter];

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

            $title = $a_prefix.str_replace('_', ' ', $result['title']).$a_suffix;

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

            $title = '<div style="text-align:left;">'.$a_prefix.$result['title'].$a_suffix.(!empty($result['author']) ? ' '.$result['author'] : '').'<div>';

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

    $additional_parameters = [

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

    if (!empty($_REQUEST['sf_'.$specific_field['code']])) {

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

    $fixed_queries = chamilo_join_queries($term_array, null, $op);

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

            $a_prefix = '<a href="'.$result['url'].'">';

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

            $a_suffix = '</a>';

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

        $values = $_REQUEST['sf_'.$specific_field['code']];

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

        $sf_terms_for_code = xapian_get_all_terms(1000, $specific_field['code']);

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

    $course_filter = chamilo_get_boolean_query(XAPIAN_PREFIX_COURSEID.$cid);

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

            $course_filter,

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

    $s->display_mode_params = 3;

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

                $specific_field['code']

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

        $sf_terms_for_code = xapian_get_all_terms(1000, $specific_field['code']);

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

foreach ($specific_fields as $specific_field) {

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

$fixed_queries = [];

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

        $fixed_queries

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

            $sf_terms_for_code = xapian_get_all_terms(

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

$term_array = [];

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

    $s->display_mode = $mode; // default

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

    if (null != $course_filter) {

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

            $fixed_queries,

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

foreach ($specific_fields as $specific_field) {

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

            foreach ($sf_terms_for_code as $term) {

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

            $a_prefix = '';

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

    $fixed_queries = chamilo_join_queries($term_array, null, $op);

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

        $fixed_queries = chamilo_join_queries(

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

            $title = $a_prefix.str_replace('_', ' ', $result['title']).$a_suffix;

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

            $title = '<div style="text-align:left;">'.$a_prefix.$result['title'].$a_suffix.(!empty($result['author']) ? ' '.$result['author'] : '').'<div>';

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

$course_filter = null;

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

            $blocks[] = [1 => $a_prefix.'<img src="'.$result['thumbnail'].'" />'.$a_suffix.'<br />'.$title.'<br />'.$result['author'],

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

    $mode_selector .= ('default' == $mode) ? getMdiIcon(ObjectIcon::LIST, 'ch-tool-icon') : getMdiIcon(ObjectIcon::LIST, 'ch-tool-icon-disabled');

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

    $mode_selector .= ('gallery' == $mode) ? getMdiIcon(ObjectIcon::GALLERY, 'ch-tool-icon') : getMdiIcon(ObjectIcon::GALLERY, 'ch-tool-icon-disabled');

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

    $mode_selector .= sprintf($search_link, api_get_path(WEB_CODE_PATH), 'default', $_REQUEST['query'], $get_params);

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

    $s->additional_parameters = $additional_parameters;

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

    $mode_selector .= sprintf($search_link, api_get_path(WEB_CODE_PATH), 'default', $_REQUEST['query'], $get_params);

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

    foreach ($specific_fields as $specific_field) {

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

    $s->additional_parameters = $additional_parameters;

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

    $mode_selector .= sprintf($search_link, api_get_path(WEB_CODE_PATH), 'gallery', $_REQUEST['query'], $get_params);

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

    $additional_parameters['operator'] = $op;

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

    $mode_selector = '<div id="mode-selector">';

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

        if (isset($_REQUEST['sf_'.$specific_field['code']])) {

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

                $get_params .= '&sf_'.$specific_field['code'].'[]='.$value;

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

                $get_params .= '&sf_'.$specific_field['code'].'[]='.$value;

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

            $get_params .= '&';

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

    $mode_selector .= sprintf($search_link, api_get_path(WEB_CODE_PATH), 'gallery', $_REQUEST['query'], $get_params);

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

    $search_link = '<a href="%ssearch/index.php?mode=%s&action=search&query=%s%s">';

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

    echo $mode_selector;

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

    $mode_selector .= sprintf($search_link, api_get_path(WEB_CODE_PATH), 'gallery', $_REQUEST['query'], $get_params);

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

            $values = $_REQUEST['sf_'.$specific_field['code']];

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

    $mode_selector .= sprintf($search_link, api_get_path(WEB_CODE_PATH), 'default', $_REQUEST['query'], $get_params);

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

    $mode_selector .= '</div>';

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

    foreach ($specific_fields as $specific_field) {

There are no issues that match your filters.

Category
Status