src/Eloquent/Typhoon/CodeAnalysis/Issue/IssueRenderer.php
public function visitDocumentedParameterByReferenceMismatch(ParameterIssue\DocumentedParameterByReferenceMismatch $issue)
    {
        $this->typeCheck->visitDocumentedParameterByReferenceMismatch(func_get_args());

        if ($issue->isByReference()) {
            $nativeVariableType = 'by-reference';
            $documentedVariableType = 'by-value';
        } else {
            $nativeVariableType = 'by-value';
            $documentedVariableType = 'by-reference';
        }

        return sprintf(
            'Parameter $%s is defined as %s but documented as %s.',
            $issue->parameterName(),
            $nativeVariableType,
            $documentedVariableType
        );
    }
public function visitDocumentedParameterByReferenceMismatch(ParameterIssue\DocumentedParameterByReferenceMismatch $issue)
    {
        $this->typeCheck->visitDocumentedParameterByReferenceMismatch(func_get_args());

        if ($issue->isByReference()) {
            $nativeVariableType = 'by-reference';
            $documentedVariableType = 'by-value';
        } else {
            $nativeVariableType = 'by-value';
            $documentedVariableType = 'by-reference';
        }

        return sprintf(
            'Parameter $%s is defined as %s but documented as %s.',
            $issue->parameterName(),
            $nativeVariableType,
            $documentedVariableType
        );
    }
public function visitDocumentedParameterByReferenceMismatch ( ParameterIssue \ DocumentedParameterByReferenceMismatch $ issue ) { $ this -> typeCheck -> visitDocumentedParameterByReferenceMismatch ( func_get_args ( ) ) ; if ( $ issue -> isByReference ( ) ) { $ nativeVariableType = 'by-reference' ; $ documentedVariableType = 'by-value' ; } else { $ nativeVariableType = 'by-value' ; $ documentedVariableType = 'by-reference' ; } return sprintf ( 'Parameter $%s is defined as %s but documented as %s.' , $ issue -> parameterName ( ) , $ nativeVariableType , $ documentedVariableType ) ; }
@param ParameterIssue\DocumentedParameterByReferenceMismatch $issue

@return string
@param ParameterIssue \ DocumentedParameterByReferenceMismatch $issue