Code Duplication    Length = 7-8 lines in 3 locations

application/modules/core/core.php 3 locations

@@ 988-994 (lines=7) @@
985
                if (trim($robotsSettings->robots_settings)) {
986
                    echo $robotsSettings->robots_settings;
987
                    exit;
988
                } else {
989
                    header('Content-type: text/plain');
990
                    echo "User-agent: * \r\nDisallow: /";
991
                    echo "\r\nHost: " . $this->input->server('HTTP_HOST');
992
                    echo "\r\nSitemap: " . site_url('sitemap.xml');
993
                    exit;
994
                }
995
            } else {
996
997
                header('Content-type: text/plain');
@@ 995-1002 (lines=8) @@
992
                    echo "\r\nSitemap: " . site_url('sitemap.xml');
993
                    exit;
994
                }
995
            } else {
996
997
                header('Content-type: text/plain');
998
                echo "User-agent: * \r\nDisallow: ";
999
                echo "\r\nHost: " . $this->input->server('HTTP_HOST');
1000
                echo "\r\nSitemap: " . site_url('sitemap.xml');
1001
                exit;
1002
            }
1003
        } else {
1004
            header('Content-type: text/plain');
1005
            echo "User-agent: * \r\nDisallow: /";
@@ 1003-1009 (lines=7) @@
1000
                echo "\r\nSitemap: " . site_url('sitemap.xml');
1001
                exit;
1002
            }
1003
        } else {
1004
            header('Content-type: text/plain');
1005
            echo "User-agent: * \r\nDisallow: /";
1006
            echo "\r\nHost: " . $this->input->server('HTTP_HOST');
1007
            echo "\r\nSitemap: " . site_url('sitemap.xml');
1008
            exit;
1009
        }
1010
    }
1011
1012
    /**