Passed
Push — master ( c0a3a7...3b84a4 )
by Jeroen
58:51
created

views/default/resources/robots.txt.php (1 issue)

1
<?php
2
3
$site = elgg_get_site_entity();
4
header("Content-type: text/plain;charset=utf-8");
5
6
$content = $site->getPrivateSetting('robots.txt');
7
$plugin_content = elgg_trigger_plugin_hook('robots.txt', 'site', ['site' => $site], '');
8
if ($plugin_content) {
9
	$content = $content . "\n\n" . $plugin_content;
0 ignored issues
show
Are you sure $content of type null|mixed|false can be used in concatenation? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

9
	$content = /** @scrutinizer ignore-type */ $content . "\n\n" . $plugin_content;
Loading history...
10
}
11
echo $content;
12