Swat/SwatError.php
protected function isSensitiveParameter(
        ReflectionFunctionAbstract $method,
        $name
    ) {
        $sensitive = false;

        $exp =
            '/^.*@sensitive\s+\$([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*).*$/';

        $documentation = $method->getDocComment();
        $documentation = str_replace("\r", "\n", $documentation);
        $documentation_exp = explode("\n", $documentation);
        foreach ($documentation_exp as $documentation_line) {
            $matches = array();
            if (
                preg_match($exp, $documentation_line, $matches) === 1 &&
                $matches[1] == $name
            ) {
                $sensitive = true;
                break;
            }
        }

        return $sensitive;
    }
protected function isSensitiveParameter(
        ReflectionFunctionAbstract $method,
        $name
    ) {
        $sensitive = false;

        $exp =
            '/^.*@sensitive\s+\$([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*).*$/';

        $documentation = $method->getDocComment();
        $documentation = str_replace("\r", "\n", $documentation);
        $documentation_exp = explode("\n", $documentation);
        foreach ($documentation_exp as $documentation_line) {
            $matches = array();
            if (
                preg_match($exp, $documentation_line, $matches) === 1 &&
                $matches[1] == $name
            ) {
                $sensitive = true;
                break;
            }
        }

        return $sensitive;
    }
protected function isSensitiveParameter ( ReflectionFunctionAbstract $ method , $ name ) { $ sensitive = false ; $ exp = '/^.*@sensitive\s+\$([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*).*$/' ; $ documentation = $ method -> getDocComment ( ) ; $ documentation = str_replace ( "\r" , "\n" , $ documentation ) ; $ documentation_exp = explode ( "\n" , $ documentation ) ; foreach ( $ documentation_exp as $ documentation_line ) { $ matches = array ( ) ; if ( preg_match ( $ exp , $ documentation_line , $ matches ) === 1 && $ matches [ 1 ] == $ name ) { $ sensitive = true ; break ; } } return $ sensitive ; }
Detects whether or not a parameter is sensitive from the method-level
documentation of the parameter's method

Parameters with the following docblock tag are considered sensitive:
<code>
<?php
/**
* @sensitive $parameter_name
*\/
?>
</code>

@param ReflectionFunctionAbstract $method the method the parameter to
which the parameter belongs.
@param string $name the name of the parameter.

@return boolean true if the parameter is sensitive and false if the
method is not sensitive.
Detects whether or not a parameter is sensitive from the method - level documentation of the parameter s method