: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
// JSHINT has some GPL Compatability issues, so we are faking it out and using esprima for validation
// Based on https://github.com/jquery/esprima/blob/gh-pages/demo/validate.js which is MIT licensed
var fakeJSHINT = new function() {
this.convertError = function( error ){
reason: error.description,
this.parse = function( code ){
syntax = window.esprima.parse(code, { tolerant: true, loc: true });
if ( errors.length > 0 ) {
for ( var i = 0; i < errors.length; i++) {
that.data.push( that.convertError( error ) );
that.data.push( that.convertError( e ) );
window.JSHINT = function( text ){
fakeJSHINT.parse( text );
window.JSHINT.data = function(){