for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
$site = elgg_get_site_entity();
header("Content-type: text/plain;charset=utf-8");
$content = $site->getPrivateSetting('robots.txt');
$plugin_content = elgg_trigger_plugin_hook('robots.txt', 'site', ['site' => $site], '');
if ($plugin_content) {
$content = $content . "\n\n" . $plugin_content;
$content
null|mixed|false
concatenation
If this is a false-positive, you can also ignore this issue in your code via the ignore-type annotation
ignore-type
$content = /** @scrutinizer ignore-type */ $content . "\n\n" . $plugin_content;
}
echo $content;