]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
fix indentation in Email_summary_status.php
authorEvan Prodromou <evan@status.net>
Tue, 15 Feb 2011 21:26:44 +0000 (16:26 -0500)
committerEvan Prodromou <evan@status.net>
Tue, 15 Feb 2011 21:26:44 +0000 (16:26 -0500)
plugins/EmailSummary/Email_summary_status.php

index 5b5b231e349b2e2aad76d8e7aeb4ce011634e46b..7072370faf7fdd99dae4d53cbd3534b304a221c6 100644 (file)
@@ -82,10 +82,10 @@ class Email_summary_status extends Memcached_DataObject
     function table()
     {
         return array('user_id' => DB_DATAOBJECT_INT + DB_DATAOBJECT_NOTNULL,
-                    'send_summary' => DB_DATAOBJECT_INT + DB_DATAOBJECT_NOTNULL,
-                    'last_summary_id' => DB_DATAOBJECT_INT,
-                    'created' => DB_DATAOBJECT_DATE + DB_DATAOBJECT_TIME + DB_DATAOBJECT_NOTNULL,
-                    'modified' => DB_DATAOBJECT_DATE + DB_DATAOBJECT_TIME + DB_DATAOBJECT_NOTNULL);
+                     'send_summary' => DB_DATAOBJECT_INT + DB_DATAOBJECT_NOTNULL,
+                     'last_summary_id' => DB_DATAOBJECT_INT,
+                     'created' => DB_DATAOBJECT_DATE + DB_DATAOBJECT_TIME + DB_DATAOBJECT_NOTNULL,
+                     'modified' => DB_DATAOBJECT_DATE + DB_DATAOBJECT_TIME + DB_DATAOBJECT_NOTNULL);
     }
 
     /**
@@ -139,11 +139,11 @@ class Email_summary_status extends Memcached_DataObject
     {
         $ess = Email_summary_status::staticGet('user_id', $user_id);
 
-       if (!empty($ess)) {
-           return $ess->send_summary;
-       } else {
-           return 1;
-       }
+        if (!empty($ess)) {
+            return $ess->send_summary;
+        } else {
+            return 1;
+        }
     }
 
     /**
@@ -158,10 +158,10 @@ class Email_summary_status extends Memcached_DataObject
     {
         $ess = Email_summary_status::staticGet('user_id', $user_id);
        
-       if (!empty($ess)) {
-           return $ess->last_summary_id;
-       } else {
-           return null;
-       }
+        if (!empty($ess)) {
+            return $ess->last_summary_id;
+        } else {
+            return null;
+        }
     }
 }