phplinter\Lint\BaseLint::sec_strings PHP Method

sec_strings() protected method

----------------------------------------------------------------------+ Search for security infractions in strings
protected sec_strings ( $pos )
    protected function sec_strings($pos)
    {
        $o = $this->node->tokens;
        $t = $o[$pos];
        foreach (array(array('sec_1', 'INF_UNSECURE', true), array('sec_2', 'INF_UNSECURE', true), array('sec_3', 'INF_UNSECURE', false), array('sec_4', 'INF_WARNING_DISCLOSURE', false)) as $_) {
            if (in_array($t[1], $this->{$_}[0])) {
                $this->report($_[1], $t[1], $t[2]);
                $i = $pos;
                if ($_[2]) {
                    while ($o[++$i][0] != T_PARENTHESIS_CLOSE) {
                        if (in_array($o[$i][1], $this->uvars)) {
                            $this->report('SEC_ERROR_REQUEST', $t[1], $t[2]);
                        }
                    }
                }
            }
        }
    }