format fixes
[phpgitweb.git] / htdocs / lib / PHPGitWeb.class.php
index fc278afc2af1318a57b054a35b2c7c766a3d6784..b28f3d42a8799c63a24be50d91d657332e774d6e 100644 (file)
@@ -29,10 +29,10 @@ require_once("lib/PageClasses.diff.class.php");
 require_once("lib/graph.class.php");
 
 class PHPGitWeb {
-    private $page, $rendertime;
+       private $page, $rendertime;
        private $project, $project_loader, $project_header;
        
-    public function __construct() {
+       public function __construct() {
                $this->rendertime = microtime(true);
                session_start();
                $this->page = new ContentProvider('main', 'main');
@@ -82,12 +82,12 @@ class PHPGitWeb {
                } else
                        $this->page->append('content', file_get_contents('pages/404.html'));
                if($this->project_header) {
-                       $this->project_header->set('nav_summary',    new ContentProvider('main', ($page == 'summary'    ? 'project_header_nav_active' : 'project_header_nav_link'), array('name' => "summary",    'link' => "summary",    'link_add' => "")));
+                       $this->project_header->set('nav_summary',    new ContentProvider('main', ($page == 'summary'    ? 'project_header_nav_active' : 'project_header_nav_link'), array('name' => "summary",  'link' => "summary",    'link_add' => "")));
                        $this->project_header->set('nav_shortlog',   new ContentProvider('main', ($page == 'shortlog'   ? 'project_header_nav_active' : 'project_header_nav_link'), array('name' => "shortlog",   'link' => "shortlog",   'link_add' => "&h=%commit_base_id%")));
-                       $this->project_header->set('nav_log',        new ContentProvider('main', ($page == 'log'        ? 'project_header_nav_active' : 'project_header_nav_link'), array('name' => "log",        'link' => "log",        'link_add' => "&h=%commit_base_id%")));
-                       $this->project_header->set('nav_commit',     new ContentProvider('main', ($page == 'commit'     ? 'project_header_nav_active' : 'project_header_nav_link'), array('name' => "commit",     'link' => "commit",     'link_add' => "&h=%commit_id%")));
+                       $this->project_header->set('nav_log',        new ContentProvider('main', ($page == 'log'                ? 'project_header_nav_active' : 'project_header_nav_link'), array('name' => "log",              'link' => "log",                'link_add' => "&h=%commit_base_id%")));
+                       $this->project_header->set('nav_commit',     new ContentProvider('main', ($page == 'commit'      ? 'project_header_nav_active' : 'project_header_nav_link'), array('name' => "commit",   'link' => "commit",     'link_add' => "&h=%commit_id%")));
                        $this->project_header->set('nav_commitdiff', new ContentProvider('main', ($page == 'commitdiff' ? 'project_header_nav_active' : 'project_header_nav_link'), array('name' => "commitdiff", 'link' => "commitdiff", 'link_add' => "&h=%commit_id%")));
-                       $this->project_header->set('nav_tree',       new ContentProvider('main', ($page == 'tree'       ? 'project_header_nav_active' : 'project_header_nav_link'), array('name' => "tree",       'link' => "tree",       'link_add' => "&h=%commit_id%")));
+                       $this->project_header->set('nav_tree',       new ContentProvider('main', ($page == 'tree'          ? 'project_header_nav_active' : 'project_header_nav_link'), array('name' => "tree",     'link' => "tree",       'link_add' => "&h=%commit_id%")));
                }
        }
        
@@ -126,7 +126,7 @@ class PHPGitWeb {
                $html = str_replace(array("%rendertime%"), array($rendertime), $html);
                return $html;
        }
-    
+       
        public function error_handler($errno, $errstr, $errfile, $errline) {
                $error = new ContentProvider('main', 'error');
                $etype = "";