e107_handlers/bbcode_handler.php
Avoid deeply nested control flow statements. Open
Open
while (!$found && (count($code_stack) != 0))
{
switch ($code_stack[0]['type'])
{
case 'text' :
Avoid deeply nested control flow statements. Open
Open
while ($i > 0) { $unmatch_stack[] = array_shift($code_stack); $i--; } // Get required code to top of stack
Avoid deeply nested control flow statements. Open
Open
if ($bbword == 'code') $nopro = TRUE;
Avoid deeply nested control flow statements. Open
Open
if (($code_stack[$i]['type'] == 'bbcode') && ($code_stack[$i]['code'] == $bbword) && ($code_stack[0]['numbers'] == $matches[3]))
{
$found = TRUE;
break;
}
Avoid deeply nested control flow statements. Open
Open
if ($stacktext != '')
{ // Stack the text we've accumulated so far
array_unshift($code_stack,array('type' => 'text','code' => $stacktext));
$stacktext = '';
}
Assigning 'toDB'
to property but \e_bbcode->preProcess
is false
Open
Open
$this->preProcess = "toDB";
- Exclude checks
Invalid offset "trigger"
of array type array{}
Open
Open
'trigger' => vartrue($options['trigger']), // For BC
- Exclude checks
Suspicious type false
of a variable or expression used to build a string. (Expected type to be able to cast to a string) Open
Open
return (int) $this->resizePrefs[$this->class.'-bbcode']['w'];
- Exclude checks
Suspicious type false
of a variable or expression used to build a string. (Expected type to be able to cast to a string) Open
Open
$ret .= " bbcode-".$type."-".$this->class;
- Exclude checks
Variable $srch
was undeclared, but array fields are being added to it. Open
Open
$srch[] = $arr[1];
- Exclude checks
Suspicious type false
of a variable or expression used to build a string. (Expected type to be able to cast to a string) Open
Open
return (int) $this->resizePrefs[$this->class.'-bbcode']['h'];
- Exclude checks
Invalid offset 0
of array type array{}
Open
Open
if (($code_stack[$i]['type'] == 'bbcode') && ($code_stack[$i]['code'] == $bbword) && ($code_stack[0]['numbers'] == $matches[3]))
- Exclude checks
Suspicious type false
of a variable or expression used to build a string. (Expected type to be able to cast to a string) Open
Open
if($this->class && !empty($this->resizePrefs[$this->class.'-bbcode']['w']))
- Exclude checks
Invalid offset "-bbcode"
of array type array{}
Open
Open
if($this->class && !empty($this->resizePrefs[$this->class.'-bbcode']['w']))
- Exclude checks
Call to undeclared method \e_bb_base::toDB
Open
Open
return $this->toDB($code_text, $parm);
- Exclude checks
Assigning false[]|string[]
to property but \e_bbcode->bbList
is array<string>|object[]</string>
Open
Open
$this->bbList[$code] = $bbcode;
- Exclude checks
Assigning array<string></string>
to property but \e_bbcode->bbList
is array<string></string>
Open
Open
$this->bbList[$code] = '';
- Exclude checks
Returning type false
but proc_bbcode()
is declared to return string
Open
Open
return false;
- Exclude checks
Suspicious type false
of a variable or expression used to build a string. (Expected type to be able to cast to a string) Open
Open
if($this->class && !empty($this->resizePrefs[$this->class.'-bbcode']['h']))
- Exclude checks
Invalid offset "-bbcode"
of array type array{}
Open
Open
return (int) $this->resizePrefs[$this->class.'-bbcode']['h'];
- Exclude checks
Saw possibly unextractable annotation for a fragment of comment '* @param string (optional) $template eg. news, submitnews, extended, admin, mailout, page, comment, signature':
after string,
did not see an element name (will guess based on comment order) Open
Open
* @param string (optional) $template eg. news, submitnews, extended, admin, mailout, page, comment, signature
- Exclude checks
Variable $repl
was undeclared, but array fields are being added to it. Open
Open
$repl[] = $arr[0];
- Exclude checks
Invalid offset "-bbcode"
of array type array{}
Open
Open
return (int) $this->resizePrefs[$this->class.'-bbcode']['w'];
- Exclude checks
Argument 1 (arr)
is null
but \e_parse::setScriptAttibutes()
takes array
defined at /code/e107_handlers/e_parse_class.php:3739
Open
Open
$tp->setScriptAttibutes(null);
- Exclude checks
Invalid offset "-bbcode"
of array type array{}
Open
Open
if($this->class && !empty($this->resizePrefs[$this->class.'-bbcode']['h']))
- Exclude checks
Assigning array<string>|array<string></string></string>
to property but \e_bbcode->bbList
is array<string></string>
Open
Open
$this->bbList[$code] = $bbcode;
- Exclude checks
Assigning string[]
to property but \e_bbcode->bbList
is array<string>|object[]</string>
Open
Open
$this->bbList[$code] = '';
- Exclude checks
Call to undeclared method \e_bb_base::toHTML
Open
Open
return $this->toHTML($code_text, $parm);
- Exclude checks
Call to undeclared method \e_bb_base::toWYSIWYG
(Did you mean expr->bbWYSIWYG()) Open
Open
return $this->toWYSIWYG($code_text, $parm);
- Exclude checks