The parameter $survey_id is not named in camelCase. Open
function modify_filter($survey_id, $url_params, $row)
{
return SurveyUtil::modify_filter($survey_id, $url_params, $row);
}
- Read upRead up
- Exclude checks
CamelCaseParameterName
Since: 0.2
It is considered best practice to use the camelCase notation to name parameters.
Example
class ClassName {
public function doSomething($user_name) {
}
}
Source
The parameter $survey_id is not named in camelCase. Open
function modify_filter_drh($survey_id)
{
return SurveyUtil::modify_filter($survey_id, true);
}
- Read upRead up
- Exclude checks
CamelCaseParameterName
Since: 0.2
It is considered best practice to use the camelCase notation to name parameters.
Example
class ClassName {
public function doSomething($user_name) {
}
}
Source
The parameter $survey_id is not named in camelCase. Open
function modify_filter_for_coach($survey_id)
{
return SurveyUtil::modify_filter_for_coach($survey_id);
}
- Read upRead up
- Exclude checks
CamelCaseParameterName
Since: 0.2
It is considered best practice to use the camelCase notation to name parameters.
Example
class ClassName {
public function doSomething($user_name) {
}
}
Source
The parameter $number_of_items is not named in camelCase. Open
function get_survey_data($from, $number_of_items, $column, $direction)
{
return SurveyUtil::get_survey_data($from, $number_of_items, $column, $direction);
}
- Read upRead up
- Exclude checks
CamelCaseParameterName
Since: 0.2
It is considered best practice to use the camelCase notation to name parameters.
Example
class ClassName {
public function doSomething($user_name) {
}
}
Source
The parameter $number_of_items is not named in camelCase. Open
function get_survey_data_drh($from, $number_of_items, $column, $direction)
{
return SurveyUtil::get_survey_data($from, $number_of_items, $column, $direction, true);
}
- Read upRead up
- Exclude checks
CamelCaseParameterName
Since: 0.2
It is considered best practice to use the camelCase notation to name parameters.
Example
class ClassName {
public function doSomething($user_name) {
}
}
Source
The parameter $url_params is not named in camelCase. Open
function modify_filter($survey_id, $url_params, $row)
{
return SurveyUtil::modify_filter($survey_id, $url_params, $row);
}
- Read upRead up
- Exclude checks
CamelCaseParameterName
Since: 0.2
It is considered best practice to use the camelCase notation to name parameters.
Example
class ClassName {
public function doSomething($user_name) {
}
}
Source
The parameter $number_of_items is not named in camelCase. Open
function get_survey_data_for_coach($from, $number_of_items, $column, $direction)
{
return SurveyUtil::get_survey_data_for_coach($from, $number_of_items, $column, $direction);
}
- Read upRead up
- Exclude checks
CamelCaseParameterName
Since: 0.2
It is considered best practice to use the camelCase notation to name parameters.
Example
class ClassName {
public function doSomething($user_name) {
}
}
Source
Variable "this_section" is not in valid camel caps format Open
$this_section = SECTION_COURSES;
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
$course_id = api_get_course_int_id();
- Exclude checks
Variable "current_course_tool" is not in valid camel caps format Open
$current_course_tool = TOOL_SURVEY;
- Exclude checks
Variable "tool_name" is not in valid camel caps format Open
$tool_name = get_lang('Search a survey');
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
WHERE c_id = $course_id AND survey_id = $surveyId ";
- Exclude checks
Variable "table_survey_question_option" is not in valid camel caps format Open
LEFT JOIN $table_survey_question_option survey_question_option
- Exclude checks
Variable "extend_rights_for_coachs" is not in valid camel caps format Open
$extend_rights_for_coachs = api_get_setting('extend_rights_for_coach_on_survey');
- Exclude checks
Variable "table_survey_question" is not in valid camel caps format Open
$table_survey_question = Database::get_course_table(TABLE_SURVEY_QUESTION);
- Exclude checks
Variable "table_survey_question_option" is not in valid camel caps format Open
$table_survey_question_option = Database::get_course_table(TABLE_SURVEY_QUESTION_OPTION);
- Exclude checks
Variable "table_survey_answer" is not in valid camel caps format Open
$table_survey_answer = Database::get_course_table(TABLE_SURVEY_ANSWER);
- Exclude checks
Variable "table_survey_answer" is not in valid camel caps format Open
$sql = "SELECT * FROM $table_survey_answer
- Exclude checks
Variable "answers_of_user" is not in valid camel caps format Open
$all_answers[$answers_of_user['user']][$answers_of_user['question_id']][] = $answers_of_user;
- Exclude checks
Variable "answers_of_user" is not in valid camel caps format Open
$all_answers[$answers_of_user['user']][$answers_of_user['question_id']][] = $answers_of_user;
- Exclude checks
Variable "extend_rights_for_coachs" is not in valid camel caps format Open
if (api_is_session_general_coach() && 'false' === $extend_rights_for_coachs) {
- Exclude checks
Missing function doc comment Open
function get_survey_data_drh($from, $number_of_items, $column, $direction)
- Exclude checks
Consider putting global function "modify_filter" in a static class Open
function modify_filter($survey_id, $url_params, $row)
- Exclude checks
Variable "url_params" is not in valid camel caps format Open
return SurveyUtil::modify_filter($survey_id, $url_params, $row);
- Exclude checks
Variable "survey_id" is not in valid camel caps format Open
function modify_filter_for_coach($survey_id)
- Exclude checks
Consider putting global function "get_survey_data_drh" in a static class Open
function get_survey_data_drh($from, $number_of_items, $column, $direction)
- Exclude checks
Variable "answers_of_user" is not in valid camel caps format Open
$userAnswers[$answers_of_user['user']][$surveyId][$answers_of_user['question_id']][] = $answers_of_user['option_id'];
- Exclude checks
Variable "all_answers" is not in valid camel caps format Open
$finalAnswer = $all_answers[$userIdItem][$question['question_id']][0]['option_id'];
- Exclude checks
Variable "number_of_items" is not in valid camel caps format Open
return SurveyUtil::get_survey_data($from, $number_of_items, $column, $direction);
- Exclude checks
Variable "survey_id" is not in valid camel caps format Open
function modify_filter($survey_id, $url_params, $row)
- Exclude checks
Consider putting global function "anonymous_filter" in a static class Open
function anonymous_filter($anonymous)
- Exclude checks
Variable "all_answers" is not in valid camel caps format Open
$all_answers = [];
- Exclude checks
Variable "answers_of_user" is not in valid camel caps format Open
$userAnswers[$answers_of_user['user']][$surveyId][$answers_of_user['question_id']][] = $answers_of_user['option_id'];
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
$options['where'] = [' usergroup.course_id = ? ' => $course_id];
- Exclude checks
Variable "tool_name" is not in valid camel caps format Open
Display::display_header($tool_name, 'Survey');
- Exclude checks
Variable "survey_id" is not in valid camel caps format Open
function modify_filter_drh($survey_id)
- Exclude checks
Variable "tool_name" is not in valid camel caps format Open
$tool_name = get_lang('Survey list');
- Exclude checks
Variable "all_answers" is not in valid camel caps format Open
if (isset($all_answers[$userIdItem][$question['question_id']])) {
- Exclude checks
Variable "url_params" is not in valid camel caps format Open
function modify_filter($survey_id, $url_params, $row)
- Exclude checks
Consider putting global function "modify_filter_for_coach" in a static class Open
function modify_filter_for_coach($survey_id)
- Exclude checks
Variable "number_of_items" is not in valid camel caps format Open
return SurveyUtil::get_survey_data($from, $number_of_items, $column, $direction, true);
- Exclude checks
Variable "course_id" is not in valid camel caps format Open
c_id = $course_id AND
- Exclude checks
Variable "number_of_items" is not in valid camel caps format Open
function get_survey_data($from, $number_of_items, $column, $direction)
- Exclude checks
Missing function doc comment Open
function get_survey_data_for_coach($from, $number_of_items, $column, $direction)
- Exclude checks
Variable "number_of_items" is not in valid camel caps format Open
function get_survey_data_for_coach($from, $number_of_items, $column, $direction)
- Exclude checks
Variable "number_of_items" is not in valid camel caps format Open
return SurveyUtil::get_survey_data_for_coach($from, $number_of_items, $column, $direction);
- Exclude checks
Variable "table_survey_question" is not in valid camel caps format Open
FROM $table_survey_question survey_question
- Exclude checks
Consider putting global function "get_number_of_surveys_for_coach" in a static class Open
function get_number_of_surveys_for_coach()
- Exclude checks
Variable "survey_id" is not in valid camel caps format Open
return SurveyUtil::modify_filter($survey_id, $url_params, $row);
- Exclude checks
Missing function doc comment Open
function get_number_of_surveys_for_coach()
- Exclude checks
You must use "/**" style comments for a function comment Open
function get_number_of_surveys()
- Exclude checks
Consider putting global function "get_survey_data_for_coach" in a static class Open
function get_survey_data_for_coach($from, $number_of_items, $column, $direction)
- Exclude checks
Missing function doc comment Open
function modify_filter_for_coach($survey_id)
- Exclude checks
Variable "answers_of_user" is not in valid camel caps format Open
$userAnswers[$answers_of_user['user']][$surveyId][$answers_of_user['question_id']][] = $answers_of_user['option_id'];
- Exclude checks
Variable "all_answers" is not in valid camel caps format Open
$all_answers[$answers_of_user['user']][$answers_of_user['question_id']][] = $answers_of_user;
- Exclude checks
Variable "extend_rights_for_coachs" is not in valid camel caps format Open
if (!api_is_session_general_coach() || 'true' === $extend_rights_for_coachs) {
- Exclude checks
Consider putting global function "get_number_of_surveys" in a static class Open
function get_number_of_surveys()
- Exclude checks
Variable "survey_id" is not in valid camel caps format Open
return SurveyUtil::modify_filter($survey_id, true);
- Exclude checks
Variable "answers_of_user" is not in valid camel caps format Open
while ($answers_of_user = Database::fetch_assoc($result)) {
- Exclude checks
Missing function doc comment Open
function anonymous_filter($anonymous)
- Exclude checks
Variable "answers_of_user" is not in valid camel caps format Open
$all_answers[$answers_of_user['user']][$answers_of_user['question_id']][] = $answers_of_user;
- Exclude checks
Missing function doc comment Open
function modify_filter($survey_id, $url_params, $row)
- Exclude checks
Missing function doc comment Open
function get_survey_data($from, $number_of_items, $column, $direction)
- Exclude checks
Consider putting global function "modify_filter_drh" in a static class Open
function modify_filter_drh($survey_id)
- Exclude checks
Consider putting global function "get_survey_data" in a static class Open
function get_survey_data($from, $number_of_items, $column, $direction)
- Exclude checks
Missing function doc comment Open
function modify_filter_drh($survey_id)
- Exclude checks
Variable "survey_id" is not in valid camel caps format Open
return SurveyUtil::modify_filter_for_coach($survey_id);
- Exclude checks
Variable "number_of_items" is not in valid camel caps format Open
function get_survey_data_drh($from, $number_of_items, $column, $direction)
- Exclude checks
The variable $url_params is not named in camelCase. Open
function modify_filter($survey_id, $url_params, $row)
{
return SurveyUtil::modify_filter($survey_id, $url_params, $row);
}
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $survey_id is not named in camelCase. Open
function modify_filter($survey_id, $url_params, $row)
{
return SurveyUtil::modify_filter($survey_id, $url_params, $row);
}
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $survey_id is not named in camelCase. Open
function modify_filter_for_coach($survey_id)
{
return SurveyUtil::modify_filter_for_coach($survey_id);
}
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $number_of_items is not named in camelCase. Open
function get_survey_data_for_coach($from, $number_of_items, $column, $direction)
{
return SurveyUtil::get_survey_data_for_coach($from, $number_of_items, $column, $direction);
}
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $survey_id is not named in camelCase. Open
function modify_filter_drh($survey_id)
{
return SurveyUtil::modify_filter($survey_id, true);
}
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $number_of_items is not named in camelCase. Open
function get_survey_data($from, $number_of_items, $column, $direction)
{
return SurveyUtil::get_survey_data($from, $number_of_items, $column, $direction);
}
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}
Source
The variable $number_of_items is not named in camelCase. Open
function get_survey_data_drh($from, $number_of_items, $column, $direction)
{
return SurveyUtil::get_survey_data($from, $number_of_items, $column, $direction, true);
}
- Read upRead up
- Exclude checks
CamelCaseVariableName
Since: 0.2
It is considered best practice to use the camelCase notation to name variables.
Example
class ClassName {
public function doSomething() {
$data_module = new DataModule();
}
}