Merge pull request #6460 from yashodha/CRM-16943
[civicrm-core.git] / CRM / Mailing / MailStore / Localdir.php
index 27487fd1a875138774ca760333f8b4fd8e34f242..da0be80b951cb1dd91e5169d3a109239d90f7c76 100644 (file)
@@ -3,7 +3,7 @@
  +--------------------------------------------------------------------+
  | CiviCRM version 4.6                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014                                |
+ | Copyright CiviCRM LLC (c) 2004-2015                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
  | GNU Affero General Public License or the licensing of CiviCRM,     |
  | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
  +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
  * @package CRM
- * @copyright CiviCRM LLC (c) 2004-2014
+ * @copyright CiviCRM LLC (c) 2004-2015
  * $Id$
  *
  */
@@ -42,7 +42,7 @@ require_once 'ezc/autoload/mail_autoload.php';
 class CRM_Mailing_MailStore_Localdir extends CRM_Mailing_MailStore {
 
   /**
-   * Connect to the supplied dir and make sure the two mail dirs exist
+   * Connect to the supplied dir and make sure the two mail dirs exist.
    *
    * @param string $dir
    *   Dir to operate upon.
@@ -56,18 +56,18 @@ class CRM_Mailing_MailStore_Localdir extends CRM_Mailing_MailStore {
           'CiviMail.ignored',
           date('Y'),
           date('m'),
-          date('d')
+          date('d'),
         )));
     $this->_processed = $this->maildir(implode(DIRECTORY_SEPARATOR, array(
           'CiviMail.processed',
           date('Y'),
           date('m'),
-          date('d')
+          date('d'),
         )));
   }
 
   /**
-   * Return the next X messages from the mail store
+   * Return the next X messages from the mail store.
    * FIXME: in CiviCRM 2.2 this always returns all the emails
    *
    * @param int $count
@@ -101,7 +101,7 @@ class CRM_Mailing_MailStore_Localdir extends CRM_Mailing_MailStore {
       }
 
       $set = new ezcMailFileSet(array($file));
-      $parser = new ezcMailParser;
+      $parser = new ezcMailParser();
       //set property text attachment as file CRM-5408
       $parser->options->parseTextAttachmentsAsFiles = TRUE;
 
@@ -125,7 +125,7 @@ class CRM_Mailing_MailStore_Localdir extends CRM_Mailing_MailStore {
   }
 
   /**
-   * Fetch the specified message to the local ignore folder
+   * Fetch the specified message to the local ignore folder.
    *
    * @param int $file
    *   File location of the message to fetch.
@@ -144,7 +144,7 @@ class CRM_Mailing_MailStore_Localdir extends CRM_Mailing_MailStore {
   }
 
   /**
-   * Fetch the specified message to the local processed folder
+   * Fetch the specified message to the local processed folder.
    *
    * @param int $file
    *   File location of the message to fetch.
@@ -161,4 +161,5 @@ class CRM_Mailing_MailStore_Localdir extends CRM_Mailing_MailStore {
       throw new Exception("Could not rename $file to $target");
     }
   }
+
 }