Last analyzed acb8a69 23 days ago
Default analysis branch is
Currently analyzing run
function or var declarations in nested blocks is not preferred JS-0016
Bug risk
7 months ago7 months old
Move function declaration to function body root
188		// Nueva clase de apoyo, reemplazar para ocupar bootstrap.
189		if ( attributes.className ){
190
191			function addnewClassName(clase){192193				if( clase.includes('is-style-nav-tabs') ){194					if( clase.includes('nav-pills') ){195						clase = clase.replaceAll('nav-pills', '')196					}197					clase = clase.replace('is-style-nav-tabs', 'nav-tabs')198				}199200				if( clase.includes('is-style-nav-pills') ){201					if( clase.includes('nav-tabs') ){202						clase = clase.replaceAll('nav-tabs', '')203					}204					clase = clase.replace('is-style-nav-pills', 'nav-pills')205				}206207				return clase;208			}209
210			setAttributes( { className: addnewClassName(attributes.className) } );
211		}
Move function declaration to function body root
228
229		// Precargar nombre ID en hijos.
230		if( !attributes.anchor ){
231			function getRandomArbitrary(min, max) {232				return Math.floor(Math.random() * (max - min) + min);233			}234			setAttributes( { anchor: 'accordionChild' + getRandomArbitrary(10,150) } )
235		}
236
Move function declaration to function body root
115
116		// Precargar nombre ID.
117		if( !attributes.anchor ){
118			function getRandomArbitrary(min, max) {119				return Math.floor(Math.random() * (max - min) + min);120			}121			setAttributes( { anchor: 'accordion' + getRandomArbitrary(10,150) } )
122		}
123