Showing 589 of 589 total issues
The variable $available_languages is not named in camelCase. Open
public static function langDetect($str = '', $envType = '')
{
require dirname(__DIR__) . '/include/vars.php';
$lang = '';
- 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 $xoops_lang is not named in camelCase. Open
public static function detectLang()
{
global $_SERVER;
// if (!empty($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
if (Request::hasVar('HTTP_ACCEPT_LANGUAGE', 'SERVER')) {
- 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 $in_charset is not named in camelCase. Open
public static function encodeCharSet($output)
{
global $xlanguage;
$output = static::cleanMultiLang($output);
// escape XML doc
- 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 $xlanguage_langs is not named in camelCase. Open
public static function cleanMultiLang($text)
{
global $xoopsConfig;
global $xlanguage_langs;
$patterns = [];
- 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 $file_content is not named in camelCase. Open
public function createConfig()
{
$file_config = \XLANGUAGE_CONFIG_FILE;
if (\is_file($file_config)) {
\unlink($file_config);
- 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 $file_config is not named in camelCase. Open
public function loadFileConfig()
{
$file_config = \XLANGUAGE_CONFIG_FILE;
if (!\is_file($file_config)) {
$this->createConfig();
- 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 $HTTP_USER_AGENT is not named in camelCase. Open
public static function detectLang()
{
global $_SERVER;
// if (!empty($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
if (Request::hasVar('HTTP_ACCEPT_LANGUAGE', 'SERVER')) {
- 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 $lang_parse is not named in camelCase. Open
public static function getPreferredLanguage()
{
$langs = [];
$lang = '';
// if (isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
- 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 $file_content is not named in camelCase. Open
public function createConfig()
{
$file_config = \XLANGUAGE_CONFIG_FILE;
if (\is_file($file_config)) {
\unlink($file_config);
- 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 $out_charset is not named in camelCase. Open
public static function convertItem($value, $out_charset, $in_charset)
{
if (mb_strtolower($in_charset) == mb_strtolower($out_charset)) {
return $value;
}
- 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 $HTTP_ACCEPT_LANGUAGE is not named in camelCase. Open
public static function detectLang()
{
global $_SERVER;
// if (!empty($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
if (Request::hasVar('HTTP_ACCEPT_LANGUAGE', 'SERVER')) {
- 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 $xlanguage_langs is not named in camelCase. Open
public static function cleanMultiLang($text)
{
global $xoopsConfig;
global $xlanguage_langs;
$patterns = [];
- 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 $file_config is not named in camelCase. Open
public function loadFileConfig()
{
$file_config = \XLANGUAGE_CONFIG_FILE;
if (!\is_file($file_config)) {
$this->createConfig();
- 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 $in_charset is not named in camelCase. Open
public static function convertEncoding($value, $out_charset, $in_charset)
{
if (\is_array($value)) {
foreach ($value as $key => $val) {
$value[$key] = static::convertEncoding($val, $out_charset, $in_charset);
- 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 $xlanguage_langs is not named in camelCase. Open
public static function cleanMultiLang($text)
{
global $xoopsConfig;
global $xlanguage_langs;
$patterns = [];
- 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 $file_content is not named in camelCase. Open
public function createConfig()
{
$file_config = \XLANGUAGE_CONFIG_FILE;
if (\is_file($file_config)) {
\unlink($file_config);
- 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 $file_content is not named in camelCase. Open
public function createConfig()
{
$file_config = \XLANGUAGE_CONFIG_FILE;
if (\is_file($file_config)) {
\unlink($file_config);
- 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 $out_charset is not named in camelCase. Open
public static function convertItem($value, $out_charset, $in_charset)
{
if (mb_strtolower($in_charset) == mb_strtolower($out_charset)) {
return $value;
}
- 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 $in_charset is not named in camelCase. Open
public static function encodeCharSet($output)
{
global $xlanguage;
$output = static::cleanMultiLang($output);
// escape XML doc
- 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 $out_charset is not named in camelCase. Open
public static function encodeCharSet($output)
{
global $xlanguage;
$output = static::cleanMultiLang($output);
// escape XML doc
- 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();
}
}