]> git.mxchange.org Git - friendica.git/blobdiff - mod/robots_txt.php
Some improvements
[friendica.git] / mod / robots_txt.php
index eaab44662f114de339efc5ea6057c5e10b44a652..8327329bf56f2cce9f46a22c52303817db77d602 100644 (file)
@@ -1,10 +1,12 @@
 <?php
+
 /**
  * @file mod/robots_text.php
  * @brief Module which returns the default robots.txt
  * @version 0.1.2
  */
 
+use Friendica\App;
 
 /**
  * @brief Return default robots.txt when init
@@ -13,8 +15,6 @@
  */
 function robots_txt_init(App $a)
 {
-
-       /** @var string[] globally disallowed url */
        $allDisalloweds = array(
                '/settings/',
                '/admin/',
@@ -22,9 +22,9 @@ function robots_txt_init(App $a)
        );
 
        header('Content-Type: text/plain');
-       echo 'User-agent: *'.PHP_EOL;
+       echo 'User-agent: *' . PHP_EOL;
        foreach ($allDisalloweds as $disallowed) {
-               echo 'Disallow: '.$disallowed.PHP_EOL;
+               echo 'Disallow: ' . $disallowed . PHP_EOL;
        }
        killme();
 }