@@ -17,7 +17,7 @@ |
||
17 | 17 | * @author Richard Griffith <[email protected]> |
18 | 18 | * @link https://xoops.org |
19 | 19 | */ |
20 | -include __DIR__ . '/header.php'; |
|
20 | +include __DIR__.'/header.php'; |
|
21 | 21 | $xoops = Xoops::getInstance(); |
22 | 22 | $xoops->header(); |
23 | 23 | $aboutAdmin = new \Xoops\Module\Admin(); |
@@ -17,7 +17,7 @@ |
||
17 | 17 | * @package phpmailer |
18 | 18 | * @author Richard Griffith <[email protected]> |
19 | 19 | */ |
20 | -include __DIR__ . '/header.php'; |
|
20 | +include __DIR__.'/header.php'; |
|
21 | 21 | |
22 | 22 | $xoops = Xoops::getInstance(); |
23 | 23 |
@@ -17,4 +17,4 @@ |
||
17 | 17 | * @package phpmailer |
18 | 18 | * @author Richard Griffith <[email protected]> |
19 | 19 | */ |
20 | -require_once dirname(dirname(dirname(__DIR__))) . '/include/cp_header.php'; |
|
20 | +require_once dirname(dirname(dirname(__DIR__))).'/include/cp_header.php'; |
@@ -43,7 +43,7 @@ |
||
43 | 43 | // paypal |
44 | 44 | $modversion['paypal'] = array( |
45 | 45 | 'business' => '[email protected]', |
46 | - 'item_name' => 'Donation : ' . _MI_PHPMAILER_NAME, |
|
46 | + 'item_name' => 'Donation : '._MI_PHPMAILER_NAME, |
|
47 | 47 | 'amount' => 0, |
48 | 48 | 'currency_code' => 'USD', |
49 | 49 | ); |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | */ |
35 | 35 | public static function eventCoreServiceLocateEmail(Provider $provider) |
36 | 36 | { |
37 | - $path = dirname(__DIR__) . '/class/PhpMailerEmailProvider.php'; |
|
37 | + $path = dirname(__DIR__).'/class/PhpMailerEmailProvider.php'; |
|
38 | 38 | require $path; |
39 | 39 | $object = new PhpMailerEmailProvider(); |
40 | 40 | $provider->register($object); |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | */ |
50 | 50 | public static function eventCoreServiceLocateUserEmailMessage(Provider $provider) |
51 | 51 | { |
52 | - $path = dirname(__DIR__) . '/class/PhpMailerMessageProvider.php'; |
|
52 | + $path = dirname(__DIR__).'/class/PhpMailerMessageProvider.php'; |
|
53 | 53 | require $path; |
54 | 54 | $object = new PhpMailerMessageProvider(); |
55 | 55 | $provider->register($object); |
@@ -15,8 +15,8 @@ |
||
15 | 15 | * @author Richard Griffith <[email protected]> |
16 | 16 | */ |
17 | 17 | |
18 | -define('_MI_PHPMAILER_NAME','PHPMailer'); |
|
19 | -define('_MI_PHPMAILER_DESC','Use PHPMailer for Email service'); |
|
18 | +define('_MI_PHPMAILER_NAME', 'PHPMailer'); |
|
19 | +define('_MI_PHPMAILER_DESC', 'Use PHPMailer for Email service'); |
|
20 | 20 | |
21 | 21 | define('_MI_PHPMAILER_CONF_SMTPHOST', 'SMTP host(s)'); |
22 | 22 | define('_MI_PHPMAILER_CONF_SMTPHOST_DESC', 'List of SMTP servers to try to connect to separated by a ";". Example: localhost:25;tls://smtp.example.com:587'); |
@@ -73,11 +73,11 @@ discard block |
||
73 | 73 | { |
74 | 74 | // Addresses |
75 | 75 | $address = $email->getFromAddress(); |
76 | - $mailer->setFrom($address->getEmail(), (string) $address->getDisplayName()); |
|
76 | + $mailer->setFrom($address->getEmail(), (string)$address->getDisplayName()); |
|
77 | 77 | |
78 | 78 | $list = $email->getToAddresses(); |
79 | 79 | foreach ($list->getEachAddress() as $address) { |
80 | - $mailer->addAddress($address->getEmail(), (string) $address->getDisplayName()); |
|
80 | + $mailer->addAddress($address->getEmail(), (string)$address->getDisplayName()); |
|
81 | 81 | } |
82 | 82 | |
83 | 83 | $list = $email->getReplyToAddresses(); |
@@ -107,8 +107,8 @@ discard block |
||
107 | 107 | foreach ($attachmentSet->getEachAttachment() as $attachment) { |
108 | 108 | $file = $attachment->getFilename(); |
109 | 109 | $body = $attachment->getStringBody(); |
110 | - $name = (string) $attachment->getName(); |
|
111 | - $type = (string) $attachment->getMimeType(); |
|
110 | + $name = (string)$attachment->getName(); |
|
111 | + $type = (string)$attachment->getMimeType(); |
|
112 | 112 | $inline = $attachment->getInlineAttribute(); |
113 | 113 | if (null !== $file && !$inline) { |
114 | 114 | $mailer->addAttachment($file, $name, 'base64', $type); |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | } |
134 | 134 | |
135 | 135 | $mailer->isHTML(false); |
136 | - $mailer->Body= $email->getBody(); |
|
136 | + $mailer->Body = $email->getBody(); |
|
137 | 137 | |
138 | 138 | return $mailer; |
139 | 139 | } |
@@ -163,8 +163,8 @@ discard block |
||
163 | 163 | case 'smtp': |
164 | 164 | $mailer->isSMTP(); |
165 | 165 | $mailer->Host = $helper->getConfig('smtp_host', $mailer->Host); |
166 | - $mailer->SMTPAutoTLS = (bool) $helper->getConfig('smtp_usetls', true); |
|
167 | - $mailer->SMTPDebug = (int) $helper->getConfig('smtp_debug', 0); |
|
166 | + $mailer->SMTPAutoTLS = (bool)$helper->getConfig('smtp_usetls', true); |
|
167 | + $mailer->SMTPDebug = (int)$helper->getConfig('smtp_debug', 0); |
|
168 | 168 | break; |
169 | 169 | case 'mail': |
170 | 170 | default: |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | */ |
35 | 35 | public static function eventCorePmliteStart($args) |
36 | 36 | { |
37 | - header("location: ./modules/pm/pmlite.php" . (empty($_SERVER['QUERY_STRING']) ? "" : "?" . $_SERVER['QUERY_STRING'])); |
|
37 | + header("location: ./modules/pm/pmlite.php".(empty($_SERVER['QUERY_STRING']) ? "" : "?".$_SERVER['QUERY_STRING'])); |
|
38 | 38 | exit(); |
39 | 39 | } |
40 | 40 | |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | */ |
48 | 48 | public static function eventCoreReadpmsgStart($args) |
49 | 49 | { |
50 | - header("location: ./modules/pm/readpmsg.php" . (empty($_SERVER['QUERY_STRING']) ? "" : "?" . $_SERVER['QUERY_STRING'])); |
|
50 | + header("location: ./modules/pm/readpmsg.php".(empty($_SERVER['QUERY_STRING']) ? "" : "?".$_SERVER['QUERY_STRING'])); |
|
51 | 51 | exit(); |
52 | 52 | } |
53 | 53 | |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | */ |
61 | 61 | public static function eventCoreViewpmsgStart($args) |
62 | 62 | { |
63 | - header("location: ./modules/pm/viewpmsg.php" . (empty($_SERVER['QUERY_STRING']) ? "" : "?" . $_SERVER['QUERY_STRING'])); |
|
63 | + header("location: ./modules/pm/viewpmsg.php".(empty($_SERVER['QUERY_STRING']) ? "" : "?".$_SERVER['QUERY_STRING'])); |
|
64 | 64 | exit(); |
65 | 65 | } |
66 | 66 | |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | */ |
98 | 98 | public static function eventCoreServiceLocateUserMessage(Provider $provider) |
99 | 99 | { |
100 | - $path = dirname(__DIR__) . '/class/PMProvider.php'; |
|
100 | + $path = dirname(__DIR__).'/class/PMProvider.php'; |
|
101 | 101 | require $path; |
102 | 102 | $object = new PMProvider(); |
103 | 103 | $provider->register($object); |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | * @author Laurent JEN - aka DuGris |
23 | 23 | */ |
24 | 24 | |
25 | -include dirname(dirname(__DIR__)) . '/mainfile.php'; |
|
25 | +include dirname(dirname(__DIR__)).'/mainfile.php'; |
|
26 | 26 | |
27 | 27 | $xoops = Xoops::getInstance(); |
28 | 28 | $xoops->header(); |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | echo $errors; |
56 | 56 | } |
57 | 57 | } catch (\InvalidArgumentException $e) { |
58 | - echo 'Message was not sent. ' . $e->getMessage(); |
|
58 | + echo 'Message was not sent. '.$e->getMessage(); |
|
59 | 59 | } |
60 | 60 | } else { |
61 | 61 | $form = new ThemeForm('Email Service Example', 'example', '', 'post', true, 'horizontal'); |