FireGento_MageMonitoring_Helper_Data::tailFile
tail -n in php, kindly lifted from https://gist.github.com/lorenzos/1711e81a9162320fde20
Signature
public function tailFile(string
$filepath,
[integer
$lines = 1,
[boolean
$adaptive = true]] )
Parameters
$filepath
—
string
- File path
$lines
—
integer
- Lines
$adaptive
—
boolean
- use adaptive buffersize for seeking, if false use static buffersize of 4096
Returns
- string
Violations
PHPMessDetector
Line |
Rule |
Message |
436 - 488 |
NPathComplexity
|
The method tailFile() has an NPath complexity of 240. The configured NPath complexity threshold is 200. |