Menu

[r269]: / trunk / src / reporter / ConsoleReporter.php  Maximize  Restore  History

Download this file

31 lines (28 with data), 827 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
require_once PHPCHECKSTYLE_HOME_DIR . "/src/reporter/Reporter.php";
/**
* Writes the errors to the console
* Format:
* ================================
* FileName Line X: Error Message
* FileName Line Y: Error Message
* ================================
*/
class ConsoleReporter extends Reporter {
/**
*
* @see Reporter::writeError Tab the line and write the error message
*
* @param Integer $line
* the line number
* @param String $check
* the name of the check
* @param String $message
* the text to log
* @param String $level
* the severity level
*/
public function writeError($line, $check, $message, $level = WARNING) {
echo $this->currentPhpFile . " " . $level . " Line:" . $line . " - " . $message . "\n";
}
}
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.