e107_plugins/tinymce4/wysiwyg_class.php
Avoid too many return
statements within this method. Open
Open
return '"'.$string.'"';
Unused result of a string literal "[\n {title: 'None', value: ''},\n {title: 'Link', value: 'btn btn-link'},\n {title: 'Alert Link', value: 'alert-link'},\n {title: 'Button (Default)', value: 'btn btn-default'},\n {title: 'Button (Primary)', value: 'btn btn-primary'},\n {title: 'Button (Success)', value: 'btn btn-success'},\n {title: 'Button (Info)', value: 'btn btn-info'},\n {title: 'Button (Warning)', value: 'btn btn-warning'},\n {title: 'Button (Danger)', value: 'btn btn-danger'}\n ]"
near this line Open
Open
$ret['link_class_list'] = $this->getLinkClassList(); "[
- Exclude checks
Suspicious array access to nullable ?array|?mixed|?string
Open
Open
if($string === 'true' || $string === 'false' || $string[0] == '[')
- Exclude checks
When fetching an array index from a value of type false|string,
found an array index of type '\x40attributes',
but expected the index to be of type int
Open
Open
$this->configName = $config['@attributes']['name'];
- Exclude checks
Argument 3 (default)
is false
but \e107::pref()
takes null
defined at /code/e107_handlers/e107_class.php:4016
Open
Open
$useThemeStyle = (bool) e107::pref('tinymce4', 'use_theme_style', false);
- Exclude checks
Call to deprecated function \getperms()
defined at /code/class2.php:1322
Open
Open
if(($template == 'mainadmin.xml' && !getperms('0')) || ($template == 'admin.xml' && !ADMIN))
- Exclude checks
false|string
passed to foreach instead of array Open
Open
foreach($config as $k=>$xml)
- Exclude checks
Argument 3 (default)
is false
but \e107::pref()
takes null
defined at /code/e107_handlers/e107_class.php:4016
Open
Open
if(e107::pref('core','smiley_activate',false))
- Exclude checks
Suspicious array access to nullable ?array|?mixed|?string|null
Open
Open
if($string === 'true' || $string === 'false' || $string[0] == '[')
- Exclude checks
Argument 3 (default)
is false
but \e107::pref()
takes null
defined at /code/e107_handlers/e107_class.php:4016
Open
Open
if(e107::pref('core','smiley_activate',false))
- Exclude checks
Argument 4 (offset)
is null
but \file_get_contents()
takes int
Open
Open
$content = file_get_contents($f['path'].$f['fname'], null, null, null, 140);
- Exclude checks
Call to deprecated function \getperms()
defined at /code/class2.php:1322
Open
Open
if(getperms('0'))
- Exclude checks
When fetching an array index from a value of type string,
found an array index of type 'name',
but expected the index to be of type int
Open
Open
$this->configName = $config['@attributes']['name'];
- Exclude checks
Argument 2 (use_include_path)
is null
but \file_get_contents()
takes bool
Open
Open
$content = file_get_contents($f['path'].$f['fname'], null, null, null, 140);
- Exclude checks
Suspicious attempt to unset an offset of a value of type false|string
Open
Open
unset($config['@attributes']);
- Exclude checks