ImpressCMS/impresscms

View on GitHub
htdocs/include/calendarjs.php

Summary

Maintainability
A
0 mins
Test Coverage

Reference to undeclared constant \_LANGCODE
Open

    $icmsTheme->addScript(ICMS_URL . "/language/" .$icmsConfig['language']. "/datepicker-" ._LANGCODE. ".js",  array("type" => "text/javascript"));
Severity: Minor
Found in htdocs/include/calendarjs.php by phan

Reference to undeclared constant \_SHORTDATESTRING
Open

$dateFormatTojQueryUIDatePickerFormat = dateFormatTojQueryUIDatePickerFormat(_SHORTDATESTRING);
Severity: Minor
Found in htdocs/include/calendarjs.php by phan

Reference to undeclared constant \_LANGCODE
Open

if (_LANGCODE  !== 'en' && file_exists (ICMS_ROOT_PATH.'/language/'.$icmsConfig['language']."/datepicker-" ._LANGCODE. ".js")) {
Severity: Minor
Found in htdocs/include/calendarjs.php by phan

Reference to undeclared constant \_CALENDAR
Open

$(".ui-datepicker-trigger").attr("alt", "' ._CALENDAR. '").attr("title", "' ._CALENDAR. '");
Severity: Minor
Found in htdocs/include/calendarjs.php by phan

Reference to undeclared constant \_LANGCODE
Open

$.datepicker.setDefaults($.datepicker.regional["' ._LANGCODE. '"]);
Severity: Minor
Found in htdocs/include/calendarjs.php by phan

Function dateFormatTojQueryUIDatePickerFormat defined at /code/htdocs/include/calendarjs.php:18 was previously defined at /code/htdocs/include/calendarjalalijs.php:19
Open

function dateFormatTojQueryUIDatePickerFormat($dateFormat) {
Severity: Minor
Found in htdocs/include/calendarjs.php by phan

Tabs must be used to indent lines; spaces are not allowed
Open

        'd' => 'dd', 'j' => 'd', 'l' => 'DD', 'D' => 'D',

Tabs must be used to indent lines; spaces are not allowed
Open

        // Year

Tabs must be used to indent lines; spaces are not allowed
Open

        'Y' => 'yy', 'y' => 'y',

Tabs must be used to indent lines; spaces are not allowed
Open

        // Month

Tabs must be used to indent lines; spaces are not allowed
Open

        'm' => 'mm', 'n' => 'm', 'F' => 'MM', 'M' => 'M',

Tabs must be used to indent lines; spaces are not allowed
Open

    return strtr((string)$dateFormat, $chars);

Tabs must be used to indent lines; spaces are not allowed
Open

        // Day

Tabs must be used to indent lines; spaces are not allowed
Open

    $chars = array(

Tabs must be used to indent lines; spaces are not allowed
Open

    );

Tabs must be used to indent lines; spaces are not allowed
Open

    $icmsTheme->addScript(ICMS_URL . "/language/" .$icmsConfig['language']. "/datepicker-" ._LANGCODE. ".js",  array("type" => "text/javascript"));

Expected 1 space after comma in function call; 2 found
Open

    $icmsTheme->addScript(ICMS_URL . "/language/" .$icmsConfig['language']. "/datepicker-" ._LANGCODE. ".js",  array("type" => "text/javascript"));

Expected 1 newline at end of file; 0 found
Open

$icmsTheme->addScript("", array("type" => "text/javascript"), $src);

Space before opening parenthesis of function call prohibited
Open

if (_LANGCODE  !== 'en' && file_exists (ICMS_ROOT_PATH.'/language/'.$icmsConfig['language']."/datepicker-" ._LANGCODE. ".js")) {

Unexpected spaces found.
Open

    $chars = array(
Severity: Minor
Found in htdocs/include/calendarjs.php by editorconfig

Unexpected spaces found.
Open

        // Day
Severity: Minor
Found in htdocs/include/calendarjs.php by editorconfig

Unexpected spaces found.
Open

        'd' => 'dd', 'j' => 'd', 'l' => 'DD', 'D' => 'D',
Severity: Minor
Found in htdocs/include/calendarjs.php by editorconfig

Unexpected spaces found.
Open

        'Y' => 'yy', 'y' => 'y',
Severity: Minor
Found in htdocs/include/calendarjs.php by editorconfig

Unexpected spaces found.
Open

    );
Severity: Minor
Found in htdocs/include/calendarjs.php by editorconfig

Unexpected spaces found.
Open

        // Month
Severity: Minor
Found in htdocs/include/calendarjs.php by editorconfig

Unexpected spaces found.
Open

        // Year
Severity: Minor
Found in htdocs/include/calendarjs.php by editorconfig

Unexpected spaces found.
Open

    return strtr((string)$dateFormat, $chars);
Severity: Minor
Found in htdocs/include/calendarjs.php by editorconfig

Unexpected spaces found.
Open

        'm' => 'mm', 'n' => 'm', 'F' => 'MM', 'M' => 'M',
Severity: Minor
Found in htdocs/include/calendarjs.php by editorconfig

Unexpected spaces found.
Open

    $icmsTheme->addScript(ICMS_URL . "/language/" .$icmsConfig['language']. "/datepicker-" ._LANGCODE. ".js",  array("type" => "text/javascript"));
Severity: Minor
Found in htdocs/include/calendarjs.php by editorconfig

There are no issues that match your filters.

Category
Status