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

index 87715ecad621263fce7dbfd59742a0483907f4f3..61fe3c5b976e0d340d0025b50ee148bcf0be9c1b 100644 (file)
@@ -106,7 +106,8 @@ class Bookmark extends Memcached_DataObject
                      'description' => DB_DATAOBJECT_STR,
                      'uri' => DB_DATAOBJECT_STR,
                      'url_crc32' => DB_DATAOBJECT_INT + DB_DATAOBJECT_NOTNULL,
-                     'created' => DB_DATAOBJECT_STR + DB_DATAOBJECT_DATE + DB_DATAOBJECT_TIME + DB_DATAOBJECT_NOTNULL);
+                     'created' => DB_DATAOBJECT_STR + DB_DATAOBJECT_DATE + 
+                     DB_DATAOBJECT_TIME + DB_DATAOBJECT_NOTNULL);
     }
 
     /**
@@ -264,7 +265,7 @@ class Bookmark extends Memcached_DataObject
 
             $created = $dt->format('YmdHis');
 
-            $crc32   = sprintf('%08x', $nb->url_crc32);
+            $crc32 = sprintf('%08x', $nb->url_crc32);
 
             $nb->uri = common_local_url('showbookmark',
                                         array('user' => $profile->id,
@@ -281,7 +282,8 @@ class Bookmark extends Memcached_DataObject
 
         foreach ($rawtags as $tag) {
             if (strtolower(mb_substr($tag, 0, 4)) == 'for:') {
-                if (!array_key_exists('replies', $options)) { // skip if done by caller
+                // skip if done by caller
+                if (!array_key_exists('replies', $options)) {
                     $nickname = mb_substr($tag, 4);
                     $other    = common_relative_profile($profile,
                                                         $nickname);