function advagg_test_remove_sniffer_comments in Advanced CSS/JS Aggregation 7.2
Strip the codingStandardsIgnoreFile string from the input.
Parameters
string $input: The input string.
Return value
string The input string with codingStandardsIgnoreFile removed from it.
Related topics
1 call to advagg_test_remove_sniffer_comments()
- AdvAggCascadingStylesheetsTestCase::testRenderFile in tests/
advagg.test - Tests rendering the stylesheets.
File
- tests/
advagg.test, line 91 - Tests for advagg.module.
Code
function advagg_test_remove_sniffer_comments($input) {
$string = "/* @codingStandardsIgnoreFile */\n";
return str_replace($string, '', $input);
}