]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
fix whitespace in lib/xrdaction.php
authorEvan Prodromou <evan@status.net>
Tue, 7 Dec 2010 20:26:43 +0000 (15:26 -0500)
committerEvan Prodromou <evan@status.net>
Tue, 7 Dec 2010 20:26:43 +0000 (15:26 -0500)
lib/xrdaction.php

index 43826b32bb88c88216ecc9f34d680d490a785429..177d1b471c16e894e7708286953fe03d3a2ae102 100644 (file)
@@ -53,53 +53,53 @@ class XrdAction extends Action
             $xrd->subject = self::normalize($this->uri);
         }
 
-       if (Event::handle('StartXrdActionAliases', array(&$xrd, $this->user))) {
+        if (Event::handle('StartXrdActionAliases', array(&$xrd, $this->user))) {
            
-           // Possible aliases for the user
+            // Possible aliases for the user
            
-           $uris = array($this->user->uri, $profile->profileurl);
+            $uris = array($this->user->uri, $profile->profileurl);
            
-           // FIXME: Webfinger generation code should live somewhere on its own
+            // FIXME: Webfinger generation code should live somewhere on its own
            
-           $path = common_config('site', 'path');
+            $path = common_config('site', 'path');
            
-           if (empty($path)) {
-               $uris[] = sprintf('acct:%s@%s', $nick, common_config('site', 'server'));
-           }
+            if (empty($path)) {
+                $uris[] = sprintf('acct:%s@%s', $nick, common_config('site', 'server'));
+            }
            
-           foreach ($uris as $uri) {
-               if ($uri != $xrd->subject) {
-                   $xrd->alias[] = $uri;
-               }
-           }
+            foreach ($uris as $uri) {
+                if ($uri != $xrd->subject) {
+                    $xrd->alias[] = $uri;
+                }
+            }
            
-           Event::handle('EndXrdActionAliases', array(&$xrd, $this->user));
-       }
+            Event::handle('EndXrdActionAliases', array(&$xrd, $this->user));
+        }
 
-       if (Event::handle('StartXrdActionLinks', array(&$xrd, $this->user))) {
+        if (Event::handle('StartXrdActionLinks', array(&$xrd, $this->user))) {
            
-           $xrd->links[] = array('rel' => self::PROFILEPAGE,
-                                 'type' => 'text/html',
-                                 'href' => $profile->profileurl);
+            $xrd->links[] = array('rel' => self::PROFILEPAGE,
+                                  'type' => 'text/html',
+                                  'href' => $profile->profileurl);
            
-           // hCard
-           $xrd->links[] = array('rel' => self::HCARD,
-                                 'type' => 'text/html',
-                                 'href' => common_local_url('hcard', array('nickname' => $nick)));
+            // hCard
+            $xrd->links[] = array('rel' => self::HCARD,
+                                  'type' => 'text/html',
+                                  'href' => common_local_url('hcard', array('nickname' => $nick)));
            
-           // XFN
-           $xrd->links[] = array('rel' => 'http://gmpg.org/xfn/11',
-                                 'type' => 'text/html',
-                                 'href' => $profile->profileurl);
-           // FOAF
-           $xrd->links[] = array('rel' => 'describedby',
-                                 'type' => 'application/rdf+xml',
-                                 'href' => common_local_url('foaf',
-                                                            array('nickname' => $nick)));
+            // XFN
+            $xrd->links[] = array('rel' => 'http://gmpg.org/xfn/11',
+                                  'type' => 'text/html',
+                                  'href' => $profile->profileurl);
+            // FOAF
+            $xrd->links[] = array('rel' => 'describedby',
+                                  'type' => 'application/rdf+xml',
+                                  'href' => common_local_url('foaf',
+                                                             array('nickname' => $nick)));
            
 
-           Event::handle('EndXrdActionLinks', array(&$xrd, $this->user));
-       }
+            Event::handle('EndXrdActionLinks', array(&$xrd, $this->user));
+        }
            
 
         header('Content-type: application/xrd+xml');