/**
* Singleton function used to manage this object.
*
- * @param $loadFromDB
- * Boolean whether to load from the database.
- * @param $force
- * Boolean whether to force a reconstruction.
+ * @param bool $loadFromDB
+ * whether to load from the database.
+ * @param bool $force
+ * whether to force a reconstruction.
*
* @return CRM_Core_Config
* @static
* @param string $driver
* 'CRM_Mailing_BAO_Spool' or a name suitable for Mail::factory().
* @param array $params
- * @return Mail (More specifically, a class which implements the "send()" function)
+ * @return object
+ * More specifically, a class which implements the "send()" function
*/
public static function _createMailer($driver, $params) {
if ($driver == 'CRM_Mailing_BAO_Spool') {
// Whether we delete/create or simply preserve directories, we should
// certainly make sure the restrictions are enforced.
- foreach (array($this->templateCompileDir, $this->uploadDir, $this->configAndLogDir, $this->customFileUploadDir) as $dir) {
+ foreach (array(
+ $this->templateCompileDir,
+ $this->uploadDir,
+ $this->configAndLogDir,
+ $this->customFileUploadDir
+ ) as $dir) {
if ($dir && is_dir($dir)) {
CRM_Utils_File::restrictAccess($dir);
}