]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
phpcs showbookmark.php
authorEvan Prodromou <evan@status.net>
Wed, 29 Dec 2010 22:24:30 +0000 (14:24 -0800)
committerEvan Prodromou <evan@status.net>
Wed, 29 Dec 2010 22:24:30 +0000 (14:24 -0800)
plugins/Bookmark/showbookmark.php

index 54f333fd5227be6cff27895deddee18772af0384..e9e656f84c5b792512ce09230fd60dbe971f258a 100644 (file)
@@ -82,7 +82,7 @@ class ShowbookmarkAction extends ShownoticeAction
         }
         
         $dt = new DateTime($this->trimmed('created'),
-                          new DateTimeZone('UTC'));
+                           new DateTimeZone('UTC'));
 
         if (empty($dt)) {
             throw new ClientException(_('No such create date.'), 404);
@@ -91,7 +91,7 @@ class ShowbookmarkAction extends ShownoticeAction
         $bookmarks = Bookmark::getByCRC32($this->profile,
                                           $crc32);
 
-       foreach ($bookmarks as $bookmark) {
+        foreach ($bookmarks as $bookmark) {
             $bdt = new DateTime($bookmark->created, new DateTimeZone('UTC'));
             if ($bdt->format('U') == $dt->format('U')) {
                 $this->bookmark = $bookmark;
@@ -113,6 +113,14 @@ class ShowbookmarkAction extends ShownoticeAction
         return true;
     }
 
+    /**
+     * Title of the page
+     *
+     * Used by Action class for layout.
+     *
+     * @return string page tile
+     */
+
     function title()
     {
         return sprintf(_('%s\'s bookmark for "%s"'),
@@ -120,6 +128,12 @@ class ShowbookmarkAction extends ShownoticeAction
                        $this->bookmark->title);
     }
 
+    /**
+     * Overload page title display to show bookmark link
+     *
+     * @return void
+     */
+
     function showPageTitle()
     {
         $this->elementStart('h1');