Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-inclu.../js/codemirr...
File: fakejshint.js
// JSHINT has some GPL Compatability issues, so we are faking it out and using esprima for validation
[0] Fix | Delete
// Based on https://github.com/jquery/esprima/blob/gh-pages/demo/validate.js which is MIT licensed
[1] Fix | Delete
[2] Fix | Delete
var fakeJSHINT = new function() {
[3] Fix | Delete
var syntax, errors;
[4] Fix | Delete
var that = this;
[5] Fix | Delete
this.data = [];
[6] Fix | Delete
this.convertError = function( error ){
[7] Fix | Delete
return {
[8] Fix | Delete
line: error.lineNumber,
[9] Fix | Delete
character: error.column,
[10] Fix | Delete
reason: error.description,
[11] Fix | Delete
code: 'E'
[12] Fix | Delete
};
[13] Fix | Delete
};
[14] Fix | Delete
this.parse = function( code ){
[15] Fix | Delete
try {
[16] Fix | Delete
syntax = window.esprima.parse(code, { tolerant: true, loc: true });
[17] Fix | Delete
errors = syntax.errors;
[18] Fix | Delete
if ( errors.length > 0 ) {
[19] Fix | Delete
for ( var i = 0; i < errors.length; i++) {
[20] Fix | Delete
var error = errors[i];
[21] Fix | Delete
that.data.push( that.convertError( error ) );
[22] Fix | Delete
}
[23] Fix | Delete
} else {
[24] Fix | Delete
that.data = [];
[25] Fix | Delete
}
[26] Fix | Delete
} catch (e) {
[27] Fix | Delete
that.data.push( that.convertError( e ) );
[28] Fix | Delete
}
[29] Fix | Delete
};
[30] Fix | Delete
};
[31] Fix | Delete
[32] Fix | Delete
window.JSHINT = function( text ){
[33] Fix | Delete
fakeJSHINT.parse( text );
[34] Fix | Delete
};
[35] Fix | Delete
window.JSHINT.data = function(){
[36] Fix | Delete
return {
[37] Fix | Delete
errors: fakeJSHINT.data
[38] Fix | Delete
};
[39] Fix | Delete
};
[40] Fix | Delete
[41] Fix | Delete
[42] Fix | Delete
[43] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function