classes/phing/tasks/ext/PhpCodeSnifferTask.php
protected function outputCustomFormatMessages($messages, $type)
    {
        foreach ($messages as $line => $messagesPerLine) {
            foreach ($messagesPerLine as $column => $messagesPerColumn) {
                foreach ($messagesPerColumn as $message) {
                    $msgType = $message['type'];
                    if ($type == $msgType) {
                        $logLevel = Project::MSG_INFO;
                        if ($msgType == 'ERROR') {
                            $logLevel = Project::MSG_ERR;
                        } else {
                            if ($msgType == 'WARNING') {
                                $logLevel = Project::MSG_WARN;
                            }
                        }
                        $text = $message['message'];
                        $string = $msgType . ' in line ' . $line . ' column ' . $column . ': ' . $text;
                        $this->log($string, $logLevel);
                    }
                }
            }
        }
    }
protected function outputCustomFormatMessages($messages, $type)
    {
        foreach ($messages as $line => $messagesPerLine) {
            foreach ($messagesPerLine as $column => $messagesPerColumn) {
                foreach ($messagesPerColumn as $message) {
                    $msgType = $message['type'];
                    if ($type == $msgType) {
                        $logLevel = Project::MSG_INFO;
                        if ($msgType == 'ERROR') {
                            $logLevel = Project::MSG_ERR;
                        } else {
                            if ($msgType == 'WARNING') {
                                $logLevel = Project::MSG_WARN;
                            }
                        }
                        $text = $message['message'];
                        $string = $msgType . ' in line ' . $line . ' column ' . $column . ': ' . $text;
                        $this->log($string, $logLevel);
                    }
                }
            }
        }
    }
protected function outputCustomFormatMessages ( $ messages , $ type ) { foreach ( $ messages as $ line => $ messagesPerLine ) { foreach ( $ messagesPerLine as $ column => $ messagesPerColumn ) { foreach ( $ messagesPerColumn as $ message ) { $ msgType = $ message [ 'type' ] ; if ( $ type == $ msgType ) { $ logLevel = Project :: MSG_INFO ; if ( $ msgType == 'ERROR' ) { $ logLevel = Project :: MSG_ERR ; } else { if ( $ msgType == 'WARNING' ) { $ logLevel = Project :: MSG_WARN ; } } $ text = $ message [ 'message' ] ; $ string = $ msgType . ' in line ' . $ line . ' column ' . $ column . ': ' . $ text ; $ this -> log ( $ string , $ logLevel ) ; } } } } }
Outputs the messages of a specific type for one file

@param array $messages
@param string $type
Outputs the messages of a specific type for one file