protected static function __nearbyLines($line, $file, $window = 5)
    {
        if (!file_exists($file)) {
            return array();
        }

        return array_slice(file($file), ($line - 1) - $window, $window * 2, true);
    }
protected static function __nearbyLines($line, $file, $window = 5)
    {
        if (!file_exists($file)) {
            return array();
        }

        return array_slice(file($file), ($line - 1) - $window, $window * 2, true);
    }
protected static function __nearbyLines ( $ line , $ file , $ window = 5 ) { if ( ! file_exists ( $ file ) ) { return array ( ) ; } return array_slice ( file ( $ file ) , ( $ line - 1 ) - $ window , $ window * 2 , true ) ; }
Retrieves a window of lines before and after the line where the error
occurred so that a developer can help debug the exception

@param integer $line
The line where the error occurred.
@param string $file
The file that holds the logic that caused the error.
@param integer $window
The number of lines either side of the line where the error occurred
to show
@return array
Retrieves a window of lines before and after the line where the error occurred so that a developer can help debug the exception