ImpressCMS/impresscms

View on GitHub
htdocs/install/page_langselect.php

Summary

Maintainability
A
0 mins
Test Coverage

Call to method getDirList from undeclared class \icms_core_Filesystem
Open

$languages = icms_core_Filesystem::getDirList( "./language/" );
Severity: Critical
Found in htdocs/install/page_langselect.php by phan

Variable $wizard is undeclared
Open

    $sel = ( $lang == $wizard->language ) ? ' checked="checked"' : '';
Severity: Minor
Found in htdocs/install/page_langselect.php by phan

Argument 5 (domain) is null but \setcookie() takes string
Open

    setcookie( 'xo_install_lang', $lang, time() + 3600, '/', null );
Severity: Minor
Found in htdocs/install/page_langselect.php by phan

Variable $wizard is undeclared
Open

$wizard->setPage( 'langselect' );
Severity: Minor
Found in htdocs/install/page_langselect.php by phan

Call to method getDirList from undeclared class \icms_core_Filesystem
Open

    $languages = icms_core_Filesystem::getDirList( "./language/" );
Severity: Critical
Found in htdocs/install/page_langselect.php by phan

Variable $wizard is undeclared
Open

    $wizard->redirectToPage( '+1' );
Severity: Minor
Found in htdocs/install/page_langselect.php by phan

Space found after opening bracket of FOREACH loop
Open

foreach ( $languages as $lang) {

Expected 0 spaces before closing bracket; 1 found
Open

if (!defined( 'XOOPS_INSTALL' ) )    exit();

Inline control structures are not allowed
Open

if (!defined( 'XOOPS_INSTALL' ) )    exit();

Space after opening parenthesis of function call prohibited
Open

    $wizard->redirectToPage( '+1' );

Expected 0 spaces before closing bracket; 1 found
Open

$languages = icms_core_Filesystem::getDirList( "./language/" );

Expected 0 spaces before closing bracket; 1 found
Open

$wizard->setPage( 'langselect' );

Expected 0 spaces before closing bracket; 1 found
Open

if (!defined( 'XOOPS_INSTALL' ) )    exit();

Space after opening parenthesis of function call prohibited
Open

if (!defined( 'XOOPS_INSTALL' ) )    exit();

Space after opening parenthesis of function call prohibited
Open

$languages = icms_core_Filesystem::getDirList( "./language/" );

Expected 1 newline at end of file; 0 found
Open

include 'install_tpl.php';

Space after opening parenthesis of function call prohibited
Open

    setcookie( 'xo_install_lang', $lang, time() + 3600, '/', null );

Space after opening parenthesis of function call prohibited
Open

$wizard->setPage( 'langselect' );

Expected 0 spaces before closing bracket; 1 found
Open

    $wizard->redirectToPage( '+1' );

Expected 0 spaces before closing bracket; 1 found
Open

    setcookie( 'xo_install_lang', $lang, time() + 3600, '/', null );

Expected 0 spaces before closing bracket; 1 found
Open

    $languages = icms_core_Filesystem::getDirList( "./language/" );

Expected 0 spaces after opening bracket; 1 found
Open

foreach ( $languages as $lang) {

Space after opening parenthesis of function call prohibited
Open

    $languages = icms_core_Filesystem::getDirList( "./language/" );

There are no issues that match your filters.

Category
Status