]> git.mxchange.org Git - friendica.git/commitdiff
Coding standards : doxygen + tab + single quote
authorDenis Chenu <denis@sondages.pro>
Wed, 26 Apr 2017 15:26:13 +0000 (17:26 +0200)
committerDenis Chenu <denis@sondages.pro>
Wed, 26 Apr 2017 15:26:13 +0000 (17:26 +0200)
mod/robots_txt.php

index c0705dec6108f38c5ce77b547606672583398d0c..eaab44662f114de339efc5ea6057c5e10b44a652 100644 (file)
@@ -7,23 +7,24 @@
 
 
 /**
- * Return at init
+ * @brief Return default robots.txt when init
  * @param App $a
  * @return void
  */
-function robots_txt_init(App $a) {
+function robots_txt_init(App $a)
+{
 
        /** @var string[] globally disallowed url */
        $allDisalloweds = array(
-               "/settings/",
-               "/admin/",
-               "/message/",
+               '/settings/',
+               '/admin/',
+               '/message/',
        );
 
-       header("Content-Type: text/plain");
-       echo "User-agent: *\n";
-       foreach($allDisalloweds as $disallowed) {
-               echo "Disallow: {$disallowed}\n";
+       header('Content-Type: text/plain');
+       echo 'User-agent: *'.PHP_EOL;
+       foreach ($allDisalloweds as $disallowed) {
+               echo 'Disallow: '.$disallowed.PHP_EOL;
        }
        killme();
 }