Test Failed
Pull Request — master (#592)
by Lucio
10:17
created
htdocs/class/mail/phpmailer/get_oauth_token.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -68,12 +68,12 @@  discard block
 block discarded – undo
68 68
 
69 69
     public function getResourceOwnerDetailsUrl(AccessToken $token)
70 70
     {
71
-	return ' ';
71
+    return ' ';
72 72
     }
73 73
 
74 74
     protected function getAuthorizationParameters(array $options)
75 75
     {
76
-	if (is_array($this->scope)) {
76
+    if (is_array($this->scope)) {
77 77
             $separator = $this->getScopeSeparator();
78 78
             $this->scope = implode($separator, $this->scope);
79 79
         }
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
             array_filter([
84 84
                 'hd'          => $this->hostedDomain,
85 85
                 'access_type' => $this->accessType,
86
-		'scope'       => $this->scope,
86
+        'scope'       => $this->scope,
87 87
                 // if the user is logged in with more than one account ask which one to use for the login!
88 88
                 'authuser'    => '-1'
89 89
             ])
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
         'clientSecret' => $clientSecret,
135 135
         'redirectUri' => $redirectUri,
136 136
         'scope' => array('https://mail.google.com/'),
137
-	'accessType' => 'offline'
137
+    'accessType' => 'offline'
138 138
     )
139 139
 );
140 140
 
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 session_start();
26 26
 
27 27
 //If this automatic URL doesn't work, set it yourself manually
28
-$redirectUri = isset($_SERVER['HTTPS']) ? 'https://' : 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'];
28
+$redirectUri = isset($_SERVER['HTTPS']) ? 'https://' : 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'];
29 29
 //$redirectUri = 'http://localhost/phpmailer/get_oauth_token.php';
30 30
 
31 31
 //These details obtained are by setting up app in Google developer console.
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
     // If we don't have an authorization code then get one
143 143
     $authUrl = $provider->getAuthorizationUrl();
144 144
     $_SESSION['oauth2state'] = $provider->getState();
145
-    header('Location: ' . $authUrl);
145
+    header('Location: '.$authUrl);
146 146
     exit;
147 147
 // Check given state against previously stored one to mitigate CSRF attack
148 148
 } elseif (empty($_GET['state']) || ($_GET['state'] !== $_SESSION['oauth2state'])) {
@@ -158,5 +158,5 @@  discard block
 block discarded – undo
158 158
     );
159 159
 
160 160
     // Use this to get a new access token if the old one expires
161
-    echo 'Refresh Token: ' . $token->getRefreshToken();
161
+    echo 'Refresh Token: '.$token->getRefreshToken();
162 162
 }
Please login to merge, or discard this patch.
htdocs/class/mail/phpmailer/language/phpmailer.lang-ar.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
 $PHPMAILER_LANG['mailer_not_supported'] = ' برنامج الإرسال غير مدعوم.';
20 20
 $PHPMAILER_LANG['provide_address']      = 'يجب توفير عنوان البريد الإلكتروني لمستلم واحد على الأقل.';
21 21
 $PHPMAILER_LANG['recipients_failed']    = 'خطأ SMTP: الأخطاء التالية ' .
22
-                                          'فشل في الارسال لكل من : ';
22
+                                            'فشل في الارسال لكل من : ';
23 23
 $PHPMAILER_LANG['signing']              = 'خطأ في التوقيع: ';
24 24
 $PHPMAILER_LANG['smtp_connect_failed']  = 'SMTP Connect() غير ممكن.';
25 25
 $PHPMAILER_LANG['smtp_error']           = 'خطأ على مستوى الخادم SMTP: ';
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
 $PHPMAILER_LANG['invalid_address']      = 'الإرسال غير ممكن لأن عنوان البريد الإلكتروني غير صالح: ';
19 19
 $PHPMAILER_LANG['mailer_not_supported'] = ' برنامج الإرسال غير مدعوم.';
20 20
 $PHPMAILER_LANG['provide_address']      = 'يجب توفير عنوان البريد الإلكتروني لمستلم واحد على الأقل.';
21
-$PHPMAILER_LANG['recipients_failed']    = 'خطأ SMTP: الأخطاء التالية ' .
21
+$PHPMAILER_LANG['recipients_failed']    = 'خطأ SMTP: الأخطاء التالية '.
22 22
                                           'فشل في الارسال لكل من : ';
23 23
 $PHPMAILER_LANG['signing']              = 'خطأ في التوقيع: ';
24 24
 $PHPMAILER_LANG['smtp_connect_failed']  = 'SMTP Connect() غير ممكن.';
Please login to merge, or discard this patch.
htdocs/class/mail/phpmailer/class.pop3.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -276,11 +276,11 @@
 block discarded – undo
276 276
         }
277 277
 
278 278
         // Send the Username
279
-        $this->sendString("USER $username" . self::CRLF);
279
+        $this->sendString("USER $username".self::CRLF);
280 280
         $pop3_response = $this->getResponse();
281 281
         if ($this->checkResponse($pop3_response)) {
282 282
             // Send the Password
283
-            $this->sendString("PASS $password" . self::CRLF);
283
+            $this->sendString("PASS $password".self::CRLF);
284 284
             $pop3_response = $this->getResponse();
285 285
             if ($this->checkResponse($pop3_response)) {
286 286
                 return true;
Please login to merge, or discard this patch.
htdocs/class/mail/phpmailer/class.phpmaileroauthgoogle.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,6 +72,6 @@
 block discarded – undo
72 72
     public function getOauth64()
73 73
     {
74 74
         $token = $this->getToken();
75
-        return base64_encode("user=" . $this->oauthUserEmail . "\001auth=Bearer " . $token . "\001\001");
75
+        return base64_encode("user=".$this->oauthUserEmail."\001auth=Bearer ".$token."\001\001");
76 76
     }
77 77
 }
Please login to merge, or discard this patch.
htdocs/class/mail/phpmailer/class.phpmailer.php 1 patch
Spacing   +158 added lines, -159 removed lines patch added patch discarded remove patch
@@ -738,11 +738,11 @@  discard block
 block discarded – undo
738 738
             default:
739 739
                 //Normalize line breaks
740 740
                 $str = preg_replace('/\r\n?/ms', "\n", $str);
741
-                echo gmdate('Y-m-d H:i:s') . "\t" . str_replace(
741
+                echo gmdate('Y-m-d H:i:s')."\t".str_replace(
742 742
                     "\n",
743 743
                     "\n                   \t                  ",
744 744
                     trim($str)
745
-                ) . "\n";
745
+                )."\n";
746 746
         }
747 747
     }
748 748
 
@@ -874,7 +874,7 @@  discard block
 block discarded – undo
874 874
         $name = trim(preg_replace('/[\r\n]+/', '', $name)); //Strip breaks and trim
875 875
         if (($pos = strrpos($address, '@')) === false) {
876 876
             // At-sign is misssing.
877
-            $error_message = $this->lang('invalid_address') . " (addAnAddress $kind): $address";
877
+            $error_message = $this->lang('invalid_address')." (addAnAddress $kind): $address";
878 878
             $this->setError($error_message);
879 879
             $this->edebug($error_message);
880 880
             if ($this->exceptions) {
@@ -915,7 +915,7 @@  discard block
 block discarded – undo
915 915
     protected function addAnAddress($kind, $address, $name = '')
916 916
     {
917 917
         if (!in_array($kind, array('to', 'cc', 'bcc', 'Reply-To'))) {
918
-            $error_message = $this->lang('Invalid recipient kind: ') . $kind;
918
+            $error_message = $this->lang('Invalid recipient kind: ').$kind;
919 919
             $this->setError($error_message);
920 920
             $this->edebug($error_message);
921 921
             if ($this->exceptions) {
@@ -924,7 +924,7 @@  discard block
 block discarded – undo
924 924
             return false;
925 925
         }
926 926
         if (!$this->validateAddress($address)) {
927
-            $error_message = $this->lang('invalid_address') . " (addAnAddress $kind): $address";
927
+            $error_message = $this->lang('invalid_address')." (addAnAddress $kind): $address";
928 928
             $this->setError($error_message);
929 929
             $this->edebug($error_message);
930 930
             if ($this->exceptions) {
@@ -965,10 +965,10 @@  discard block
 block discarded – undo
965 965
             $list = imap_rfc822_parse_adrlist($addrstr, '');
966 966
             foreach ($list as $address) {
967 967
                 if ($address->host != '.SYNTAX-ERROR.') {
968
-                    if ($this->validateAddress($address->mailbox . '@' . $address->host)) {
968
+                    if ($this->validateAddress($address->mailbox.'@'.$address->host)) {
969 969
                         $addresses[] = array(
970 970
                             'name' => (property_exists($address, 'personal') ? $address->personal : ''),
971
-                            'address' => $address->mailbox . '@' . $address->host
971
+                            'address' => $address->mailbox.'@'.$address->host
972 972
                         );
973 973
                     }
974 974
                 }
@@ -1018,7 +1018,7 @@  discard block
 block discarded – undo
1018 1018
         if (($pos = strrpos($address, '@')) === false or
1019 1019
             (!$this->has8bitChars(substr($address, ++$pos)) or !$this->idnSupported()) and
1020 1020
             !$this->validateAddress($address)) {
1021
-            $error_message = $this->lang('invalid_address') . " (setFrom) $address";
1021
+            $error_message = $this->lang('invalid_address')." (setFrom) $address";
1022 1022
             $this->setError($error_message);
1023 1023
             $this->edebug($error_message);
1024 1024
             if ($this->exceptions) {
@@ -1110,29 +1110,29 @@  discard block
 block discarded – undo
1110 1110
                  * Feel free to use and redistribute this code. But please keep this copyright notice.
1111 1111
                  */
1112 1112
                 return (boolean)preg_match(
1113
-                    '/^(?!(?>(?1)"?(?>\\\[ -~]|[^"])"?(?1)){255,})(?!(?>(?1)"?(?>\\\[ -~]|[^"])"?(?1)){65,}@)' .
1114
-                    '((?>(?>(?>((?>(?>(?>\x0D\x0A)?[\t ])+|(?>[\t ]*\x0D\x0A)?[\t ]+)?)(\((?>(?2)' .
1115
-                    '(?>[\x01-\x08\x0B\x0C\x0E-\'*-\[\]-\x7F]|\\\[\x00-\x7F]|(?3)))*(?2)\)))+(?2))|(?2))?)' .
1116
-                    '([!#-\'*+\/-9=?^-~-]+|"(?>(?2)(?>[\x01-\x08\x0B\x0C\x0E-!#-\[\]-\x7F]|\\\[\x00-\x7F]))*' .
1117
-                    '(?2)")(?>(?1)\.(?1)(?4))*(?1)@(?!(?1)[a-z0-9-]{64,})(?1)(?>([a-z0-9](?>[a-z0-9-]*[a-z0-9])?)' .
1118
-                    '(?>(?1)\.(?!(?1)[a-z0-9-]{64,})(?1)(?5)){0,126}|\[(?:(?>IPv6:(?>([a-f0-9]{1,4})(?>:(?6)){7}' .
1119
-                    '|(?!(?:.*[a-f0-9][:\]]){8,})((?6)(?>:(?6)){0,6})?::(?7)?))|(?>(?>IPv6:(?>(?6)(?>:(?6)){5}:' .
1120
-                    '|(?!(?:.*[a-f0-9]:){6,})(?8)?::(?>((?6)(?>:(?6)){0,4}):)?))?(25[0-5]|2[0-4][0-9]|1[0-9]{2}' .
1113
+                    '/^(?!(?>(?1)"?(?>\\\[ -~]|[^"])"?(?1)){255,})(?!(?>(?1)"?(?>\\\[ -~]|[^"])"?(?1)){65,}@)'.
1114
+                    '((?>(?>(?>((?>(?>(?>\x0D\x0A)?[\t ])+|(?>[\t ]*\x0D\x0A)?[\t ]+)?)(\((?>(?2)'.
1115
+                    '(?>[\x01-\x08\x0B\x0C\x0E-\'*-\[\]-\x7F]|\\\[\x00-\x7F]|(?3)))*(?2)\)))+(?2))|(?2))?)'.
1116
+                    '([!#-\'*+\/-9=?^-~-]+|"(?>(?2)(?>[\x01-\x08\x0B\x0C\x0E-!#-\[\]-\x7F]|\\\[\x00-\x7F]))*'.
1117
+                    '(?2)")(?>(?1)\.(?1)(?4))*(?1)@(?!(?1)[a-z0-9-]{64,})(?1)(?>([a-z0-9](?>[a-z0-9-]*[a-z0-9])?)'.
1118
+                    '(?>(?1)\.(?!(?1)[a-z0-9-]{64,})(?1)(?5)){0,126}|\[(?:(?>IPv6:(?>([a-f0-9]{1,4})(?>:(?6)){7}'.
1119
+                    '|(?!(?:.*[a-f0-9][:\]]){8,})((?6)(?>:(?6)){0,6})?::(?7)?))|(?>(?>IPv6:(?>(?6)(?>:(?6)){5}:'.
1120
+                    '|(?!(?:.*[a-f0-9]:){6,})(?8)?::(?>((?6)(?>:(?6)){0,4}):)?))?(25[0-5]|2[0-4][0-9]|1[0-9]{2}'.
1121 1121
                     '|[1-9]?[0-9])(?>\.(?9)){3}))\])(?1)$/isD',
1122 1122
                     $address
1123 1123
                 );
1124 1124
             case 'pcre':
1125 1125
                 //An older regex that doesn't need a recent PCRE
1126 1126
                 return (boolean)preg_match(
1127
-                    '/^(?!(?>"?(?>\\\[ -~]|[^"])"?){255,})(?!(?>"?(?>\\\[ -~]|[^"])"?){65,}@)(?>' .
1128
-                    '[!#-\'*+\/-9=?^-~-]+|"(?>(?>[\x01-\x08\x0B\x0C\x0E-!#-\[\]-\x7F]|\\\[\x00-\xFF]))*")' .
1129
-                    '(?>\.(?>[!#-\'*+\/-9=?^-~-]+|"(?>(?>[\x01-\x08\x0B\x0C\x0E-!#-\[\]-\x7F]|\\\[\x00-\xFF]))*"))*' .
1130
-                    '@(?>(?![a-z0-9-]{64,})(?>[a-z0-9](?>[a-z0-9-]*[a-z0-9])?)(?>\.(?![a-z0-9-]{64,})' .
1131
-                    '(?>[a-z0-9](?>[a-z0-9-]*[a-z0-9])?)){0,126}|\[(?:(?>IPv6:(?>(?>[a-f0-9]{1,4})(?>:' .
1132
-                    '[a-f0-9]{1,4}){7}|(?!(?:.*[a-f0-9][:\]]){8,})(?>[a-f0-9]{1,4}(?>:[a-f0-9]{1,4}){0,6})?' .
1133
-                    '::(?>[a-f0-9]{1,4}(?>:[a-f0-9]{1,4}){0,6})?))|(?>(?>IPv6:(?>[a-f0-9]{1,4}(?>:' .
1134
-                    '[a-f0-9]{1,4}){5}:|(?!(?:.*[a-f0-9]:){6,})(?>[a-f0-9]{1,4}(?>:[a-f0-9]{1,4}){0,4})?' .
1135
-                    '::(?>(?:[a-f0-9]{1,4}(?>:[a-f0-9]{1,4}){0,4}):)?))?(?>25[0-5]|2[0-4][0-9]|1[0-9]{2}' .
1127
+                    '/^(?!(?>"?(?>\\\[ -~]|[^"])"?){255,})(?!(?>"?(?>\\\[ -~]|[^"])"?){65,}@)(?>'.
1128
+                    '[!#-\'*+\/-9=?^-~-]+|"(?>(?>[\x01-\x08\x0B\x0C\x0E-!#-\[\]-\x7F]|\\\[\x00-\xFF]))*")'.
1129
+                    '(?>\.(?>[!#-\'*+\/-9=?^-~-]+|"(?>(?>[\x01-\x08\x0B\x0C\x0E-!#-\[\]-\x7F]|\\\[\x00-\xFF]))*"))*'.
1130
+                    '@(?>(?![a-z0-9-]{64,})(?>[a-z0-9](?>[a-z0-9-]*[a-z0-9])?)(?>\.(?![a-z0-9-]{64,})'.
1131
+                    '(?>[a-z0-9](?>[a-z0-9-]*[a-z0-9])?)){0,126}|\[(?:(?>IPv6:(?>(?>[a-f0-9]{1,4})(?>:'.
1132
+                    '[a-f0-9]{1,4}){7}|(?!(?:.*[a-f0-9][:\]]){8,})(?>[a-f0-9]{1,4}(?>:[a-f0-9]{1,4}){0,6})?'.
1133
+                    '::(?>[a-f0-9]{1,4}(?>:[a-f0-9]{1,4}){0,6})?))|(?>(?>IPv6:(?>[a-f0-9]{1,4}(?>:'.
1134
+                    '[a-f0-9]{1,4}){5}:|(?!(?:.*[a-f0-9]:){6,})(?>[a-f0-9]{1,4}(?>:[a-f0-9]{1,4}){0,4})?'.
1135
+                    '::(?>(?:[a-f0-9]{1,4}(?>:[a-f0-9]{1,4}){0,4}):)?))?(?>25[0-5]|2[0-4][0-9]|1[0-9]{2}'.
1136 1136
                     '|[1-9]?[0-9])(?>\.(?>25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}))\])$/isD',
1137 1137
                     $address
1138 1138
                 );
@@ -1142,7 +1142,7 @@  discard block
 block discarded – undo
1142 1142
                  * @link http://www.whatwg.org/specs/web-apps/current-work/#e-mail-state-(type=email)
1143 1143
                  */
1144 1144
                 return (boolean)preg_match(
1145
-                    '/^[a-zA-Z0-9.!#$%&\'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}' .
1145
+                    '/^[a-zA-Z0-9.!#$%&\'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}'.
1146 1146
                     '[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/sD',
1147 1147
                     $address
1148 1148
                 );
@@ -1191,9 +1191,8 @@  discard block
 block discarded – undo
1191 1191
             if ($this->has8bitChars($domain) and @mb_check_encoding($domain, $this->CharSet)) {
1192 1192
                 $domain = mb_convert_encoding($domain, 'UTF-8', $this->CharSet);
1193 1193
                 if (($punycode = defined('INTL_IDNA_VARIANT_UTS46') ?
1194
-                    idn_to_ascii($domain, 0, INTL_IDNA_VARIANT_UTS46) :
1195
-                    idn_to_ascii($domain)) !== false) {
1196
-                    return substr($address, 0, $pos) . $punycode;
1194
+                    idn_to_ascii($domain, 0, INTL_IDNA_VARIANT_UTS46) : idn_to_ascii($domain)) !== false) {
1195
+                    return substr($address, 0, $pos).$punycode;
1197 1196
                 }
1198 1197
             }
1199 1198
         }
@@ -1251,7 +1250,7 @@  discard block
 block discarded – undo
1251 1250
                 }
1252 1251
                 $this->$address_kind = $this->punyencodeAddress($this->$address_kind);
1253 1252
                 if (!$this->validateAddress($this->$address_kind)) {
1254
-                    $error_message = $this->lang('invalid_address') . ' (punyEncode) ' . $this->$address_kind;
1253
+                    $error_message = $this->lang('invalid_address').' (punyEncode) '.$this->$address_kind;
1255 1254
                     $this->setError($error_message);
1256 1255
                     $this->edebug($error_message);
1257 1256
                     if ($this->exceptions) {
@@ -1302,12 +1301,12 @@  discard block
 block discarded – undo
1302 1301
                 )
1303 1302
             ) {
1304 1303
                 $header_dkim = $this->DKIM_Add(
1305
-                    $this->MIMEHeader . $this->mailHeader,
1304
+                    $this->MIMEHeader.$this->mailHeader,
1306 1305
                     $this->encodeHeader($this->secureHeader($this->Subject)),
1307 1306
                     $this->MIMEBody
1308 1307
                 );
1309
-                $this->MIMEHeader = rtrim($this->MIMEHeader, "\r\n ") . self::CRLF .
1310
-                    str_replace("\r\n", "\n", $header_dkim) . self::CRLF;
1308
+                $this->MIMEHeader = rtrim($this->MIMEHeader, "\r\n ").self::CRLF.
1309
+                    str_replace("\r\n", "\n", $header_dkim).self::CRLF;
1311 1310
             }
1312 1311
             return true;
1313 1312
         } catch (phpmailerException $exc) {
@@ -1387,9 +1386,9 @@  discard block
 block discarded – undo
1387 1386
         if ($this->SingleTo) {
1388 1387
             foreach ($this->SingleToArray as $toAddr) {
1389 1388
                 if (!@$mail = popen($sendmail, 'w')) {
1390
-                    throw new phpmailerException($this->lang('execute') . $this->Sendmail, self::STOP_CRITICAL);
1389
+                    throw new phpmailerException($this->lang('execute').$this->Sendmail, self::STOP_CRITICAL);
1391 1390
                 }
1392
-                fputs($mail, 'To: ' . $toAddr . "\n");
1391
+                fputs($mail, 'To: '.$toAddr."\n");
1393 1392
                 fputs($mail, $header);
1394 1393
                 fputs($mail, $body);
1395 1394
                 $result = pclose($mail);
@@ -1403,12 +1402,12 @@  discard block
 block discarded – undo
1403 1402
                     $this->From
1404 1403
                 );
1405 1404
                 if ($result != 0) {
1406
-                    throw new phpmailerException($this->lang('execute') . $this->Sendmail, self::STOP_CRITICAL);
1405
+                    throw new phpmailerException($this->lang('execute').$this->Sendmail, self::STOP_CRITICAL);
1407 1406
                 }
1408 1407
             }
1409 1408
         } else {
1410 1409
             if (!@$mail = popen($sendmail, 'w')) {
1411
-                throw new phpmailerException($this->lang('execute') . $this->Sendmail, self::STOP_CRITICAL);
1410
+                throw new phpmailerException($this->lang('execute').$this->Sendmail, self::STOP_CRITICAL);
1412 1411
             }
1413 1412
             fputs($mail, $header);
1414 1413
             fputs($mail, $body);
@@ -1423,7 +1422,7 @@  discard block
 block discarded – undo
1423 1422
                 $this->From
1424 1423
             );
1425 1424
             if ($result != 0) {
1426
-                throw new phpmailerException($this->lang('execute') . $this->Sendmail, self::STOP_CRITICAL);
1425
+                throw new phpmailerException($this->lang('execute').$this->Sendmail, self::STOP_CRITICAL);
1427 1426
             }
1428 1427
         }
1429 1428
         return true;
@@ -1548,7 +1547,7 @@  discard block
 block discarded – undo
1548 1547
             $smtp_from = $this->From;
1549 1548
         }
1550 1549
         if (!$this->smtp->mail($smtp_from)) {
1551
-            $this->setError($this->lang('from_failed') . $smtp_from . ' : ' . implode(',', $this->smtp->getError()));
1550
+            $this->setError($this->lang('from_failed').$smtp_from.' : '.implode(',', $this->smtp->getError()));
1552 1551
             throw new phpmailerException($this->ErrorInfo, self::STOP_CRITICAL);
1553 1552
         }
1554 1553
 
@@ -1567,7 +1566,7 @@  discard block
 block discarded – undo
1567 1566
         }
1568 1567
 
1569 1568
         // Only send the DATA command if we have viable recipients
1570
-        if ((count($this->all_recipients) > count($bad_rcpt)) and !$this->smtp->data($header . $body)) {
1569
+        if ((count($this->all_recipients) > count($bad_rcpt)) and !$this->smtp->data($header.$body)) {
1571 1570
             throw new phpmailerException($this->lang('data_not_accepted'), self::STOP_CRITICAL);
1572 1571
         }
1573 1572
         if ($this->SMTPKeepAlive) {
@@ -1580,10 +1579,10 @@  discard block
 block discarded – undo
1580 1579
         if (count($bad_rcpt) > 0) {
1581 1580
             $errstr = '';
1582 1581
             foreach ($bad_rcpt as $bad) {
1583
-                $errstr .= $bad['to'] . ': ' . $bad['error'];
1582
+                $errstr .= $bad['to'].': '.$bad['error'];
1584 1583
             }
1585 1584
             throw new phpmailerException(
1586
-                $this->lang('recipients_failed') . $errstr,
1585
+                $this->lang('recipients_failed').$errstr,
1587 1586
                 self::STOP_CONTINUE
1588 1587
             );
1589 1588
         }
@@ -1630,7 +1629,7 @@  discard block
 block discarded – undo
1630 1629
                 $hostinfo
1631 1630
             )) {
1632 1631
                 // Not a valid host entry
1633
-                $this->edebug('Ignoring invalid host: ' . $hostentry);
1632
+                $this->edebug('Ignoring invalid host: '.$hostentry);
1634 1633
                 continue;
1635 1634
             }
1636 1635
             // $hostinfo[2]: optional ssl or tls prefix
@@ -1664,7 +1663,7 @@  discard block
 block discarded – undo
1664 1663
             if ($tport > 0 and $tport < 65536) {
1665 1664
                 $port = $tport;
1666 1665
             }
1667
-            if ($this->smtp->connect($prefix . $host, $port, $this->Timeout, $options)) {
1666
+            if ($this->smtp->connect($prefix.$host, $port, $this->Timeout, $options)) {
1668 1667
                 try {
1669 1668
                     if ($this->Helo) {
1670 1669
                         $hello = $this->Helo;
@@ -1780,14 +1779,14 @@  discard block
 block discarded – undo
1780 1779
         );
1781 1780
         if (empty($lang_path)) {
1782 1781
             // Calculate an absolute path so it can work if CWD is not here
1783
-            $lang_path = dirname(__FILE__). DIRECTORY_SEPARATOR . 'language'. DIRECTORY_SEPARATOR;
1782
+            $lang_path = dirname(__FILE__).DIRECTORY_SEPARATOR.'language'.DIRECTORY_SEPARATOR;
1784 1783
         }
1785 1784
         //Validate $langcode
1786 1785
         if (!preg_match('/^[a-z]{2}(?:_[a-zA-Z]{2})?$/', $langcode)) {
1787 1786
             $langcode = 'en';
1788 1787
         }
1789 1788
         $foundlang = true;
1790
-        $lang_file = $lang_path . 'phpmailer.lang-' . $langcode . '.php';
1789
+        $lang_file = $lang_path.'phpmailer.lang-'.$langcode.'.php';
1791 1790
         // There is no English translation file
1792 1791
         if ($langcode != 'en') {
1793 1792
             // Make sure language file path is readable
@@ -1828,7 +1827,7 @@  discard block
 block discarded – undo
1828 1827
         foreach ($addr as $address) {
1829 1828
             $addresses[] = $this->addrFormat($address);
1830 1829
         }
1831
-        return $type . ': ' . implode(', ', $addresses) . $this->LE;
1830
+        return $type.': '.implode(', ', $addresses).$this->LE;
1832 1831
     }
1833 1832
 
1834 1833
     /**
@@ -1843,9 +1842,9 @@  discard block
 block discarded – undo
1843 1842
         if (empty($addr[1])) { // No name provided
1844 1843
             return $this->secureHeader($addr[0]);
1845 1844
         } else {
1846
-            return $this->encodeHeader($this->secureHeader($addr[1]), 'phrase') . ' <' . $this->secureHeader(
1845
+            return $this->encodeHeader($this->secureHeader($addr[1]), 'phrase').' <'.$this->secureHeader(
1847 1846
                 $addr[0]
1848
-            ) . '>';
1847
+            ).'>';
1849 1848
         }
1850 1849
     }
1851 1850
 
@@ -1902,10 +1901,10 @@  discard block
 block discarded – undo
1902 1901
                             }
1903 1902
                             $part = substr($word, 0, $len);
1904 1903
                             $word = substr($word, $len);
1905
-                            $buf .= ' ' . $part;
1906
-                            $message .= $buf . sprintf('=%s', self::CRLF);
1904
+                            $buf .= ' '.$part;
1905
+                            $message .= $buf.sprintf('=%s', self::CRLF);
1907 1906
                         } else {
1908
-                            $message .= $buf . $soft_break;
1907
+                            $message .= $buf.$soft_break;
1909 1908
                         }
1910 1909
                         $buf = '';
1911 1910
                     }
@@ -1925,7 +1924,7 @@  discard block
 block discarded – undo
1925 1924
                         $word = substr($word, $len);
1926 1925
 
1927 1926
                         if (strlen($word) > 0) {
1928
-                            $message .= $part . sprintf('=%s', self::CRLF);
1927
+                            $message .= $part.sprintf('=%s', self::CRLF);
1929 1928
                         } else {
1930 1929
                             $buf = $part;
1931 1930
                         }
@@ -1938,13 +1937,13 @@  discard block
 block discarded – undo
1938 1937
                     $buf .= $word;
1939 1938
 
1940 1939
                     if (strlen($buf) > $length and $buf_o != '') {
1941
-                        $message .= $buf_o . $soft_break;
1940
+                        $message .= $buf_o.$soft_break;
1942 1941
                         $buf = $word;
1943 1942
                     }
1944 1943
                 }
1945 1944
                 $firstword = false;
1946 1945
             }
1947
-            $message .= $buf . self::CRLF;
1946
+            $message .= $buf.self::CRLF;
1948 1947
         }
1949 1948
 
1950 1949
         return $message;
@@ -2090,7 +2089,7 @@  discard block
 block discarded – undo
2090 2089
         if ($this->XMailer == '') {
2091 2090
             $result .= $this->headerLine(
2092 2091
                 'X-Mailer',
2093
-                'PHPMailer ' . $this->Version . ' (https://github.com/PHPMailer/PHPMailer)'
2092
+                'PHPMailer '.$this->Version.' (https://github.com/PHPMailer/PHPMailer)'
2094 2093
             );
2095 2094
         } else {
2096 2095
             $myXmailer = trim($this->XMailer);
@@ -2100,7 +2099,7 @@  discard block
 block discarded – undo
2100 2099
         }
2101 2100
 
2102 2101
         if ($this->ConfirmReadingTo != '') {
2103
-            $result .= $this->headerLine('Disposition-Notification-To', '<' . $this->ConfirmReadingTo . '>');
2102
+            $result .= $this->headerLine('Disposition-Notification-To', '<'.$this->ConfirmReadingTo.'>');
2104 2103
         }
2105 2104
 
2106 2105
         // Add custom headers
@@ -2130,23 +2129,23 @@  discard block
 block discarded – undo
2130 2129
         switch ($this->message_type) {
2131 2130
             case 'inline':
2132 2131
                 $result .= $this->headerLine('Content-Type', 'multipart/related;');
2133
-                $result .= $this->textLine("\tboundary=\"" . $this->boundary[1] . '"');
2132
+                $result .= $this->textLine("\tboundary=\"".$this->boundary[1].'"');
2134 2133
                 break;
2135 2134
             case 'attach':
2136 2135
             case 'inline_attach':
2137 2136
             case 'alt_attach':
2138 2137
             case 'alt_inline_attach':
2139 2138
                 $result .= $this->headerLine('Content-Type', 'multipart/mixed;');
2140
-                $result .= $this->textLine("\tboundary=\"" . $this->boundary[1] . '"');
2139
+                $result .= $this->textLine("\tboundary=\"".$this->boundary[1].'"');
2141 2140
                 break;
2142 2141
             case 'alt':
2143 2142
             case 'alt_inline':
2144 2143
                 $result .= $this->headerLine('Content-Type', 'multipart/alternative;');
2145
-                $result .= $this->textLine("\tboundary=\"" . $this->boundary[1] . '"');
2144
+                $result .= $this->textLine("\tboundary=\"".$this->boundary[1].'"');
2146 2145
                 break;
2147 2146
             default:
2148 2147
                 // Catches case 'plain': and case '':
2149
-                $result .= $this->textLine('Content-Type: ' . $this->ContentType . '; charset=' . $this->CharSet);
2148
+                $result .= $this->textLine('Content-Type: '.$this->ContentType.'; charset='.$this->CharSet);
2150 2149
                 $ismultipart = false;
2151 2150
                 break;
2152 2151
         }
@@ -2180,7 +2179,7 @@  discard block
 block discarded – undo
2180 2179
      */
2181 2180
     public function getSentMIMEMessage()
2182 2181
     {
2183
-        return rtrim($this->MIMEHeader . $this->mailHeader, "\n\r") . self::CRLF . self::CRLF . $this->MIMEBody;
2182
+        return rtrim($this->MIMEHeader.$this->mailHeader, "\n\r").self::CRLF.self::CRLF.$this->MIMEBody;
2184 2183
     }
2185 2184
 
2186 2185
     /**
@@ -2203,12 +2202,12 @@  discard block
 block discarded – undo
2203 2202
         $body = '';
2204 2203
         //Create unique IDs and preset boundaries
2205 2204
         $this->uniqueid = $this->generateId();
2206
-        $this->boundary[1] = 'b1_' . $this->uniqueid;
2207
-        $this->boundary[2] = 'b2_' . $this->uniqueid;
2208
-        $this->boundary[3] = 'b3_' . $this->uniqueid;
2205
+        $this->boundary[1] = 'b1_'.$this->uniqueid;
2206
+        $this->boundary[2] = 'b2_'.$this->uniqueid;
2207
+        $this->boundary[3] = 'b3_'.$this->uniqueid;
2209 2208
 
2210 2209
         if ($this->sign_key_file) {
2211
-            $body .= $this->getMailMIME() . $this->LE;
2210
+            $body .= $this->getMailMIME().$this->LE;
2212 2211
         }
2213 2212
 
2214 2213
         $this->setWordWrap();
@@ -2241,31 +2240,31 @@  discard block
 block discarded – undo
2241 2240
             $altBodyEncoding = 'quoted-printable';
2242 2241
         }
2243 2242
         //Use this as a preamble in all multipart message types
2244
-        $mimepre = "This is a multi-part message in MIME format." . $this->LE . $this->LE;
2243
+        $mimepre = "This is a multi-part message in MIME format.".$this->LE.$this->LE;
2245 2244
         switch ($this->message_type) {
2246 2245
             case 'inline':
2247 2246
                 $body .= $mimepre;
2248 2247
                 $body .= $this->getBoundary($this->boundary[1], $bodyCharSet, '', $bodyEncoding);
2249 2248
                 $body .= $this->encodeString($this->Body, $bodyEncoding);
2250
-                $body .= $this->LE . $this->LE;
2249
+                $body .= $this->LE.$this->LE;
2251 2250
                 $body .= $this->attachAll('inline', $this->boundary[1]);
2252 2251
                 break;
2253 2252
             case 'attach':
2254 2253
                 $body .= $mimepre;
2255 2254
                 $body .= $this->getBoundary($this->boundary[1], $bodyCharSet, '', $bodyEncoding);
2256 2255
                 $body .= $this->encodeString($this->Body, $bodyEncoding);
2257
-                $body .= $this->LE . $this->LE;
2256
+                $body .= $this->LE.$this->LE;
2258 2257
                 $body .= $this->attachAll('attachment', $this->boundary[1]);
2259 2258
                 break;
2260 2259
             case 'inline_attach':
2261 2260
                 $body .= $mimepre;
2262
-                $body .= $this->textLine('--' . $this->boundary[1]);
2261
+                $body .= $this->textLine('--'.$this->boundary[1]);
2263 2262
                 $body .= $this->headerLine('Content-Type', 'multipart/related;');
2264
-                $body .= $this->textLine("\tboundary=\"" . $this->boundary[2] . '"');
2263
+                $body .= $this->textLine("\tboundary=\"".$this->boundary[2].'"');
2265 2264
                 $body .= $this->LE;
2266 2265
                 $body .= $this->getBoundary($this->boundary[2], $bodyCharSet, '', $bodyEncoding);
2267 2266
                 $body .= $this->encodeString($this->Body, $bodyEncoding);
2268
-                $body .= $this->LE . $this->LE;
2267
+                $body .= $this->LE.$this->LE;
2269 2268
                 $body .= $this->attachAll('inline', $this->boundary[2]);
2270 2269
                 $body .= $this->LE;
2271 2270
                 $body .= $this->attachAll('attachment', $this->boundary[1]);
@@ -2274,14 +2273,14 @@  discard block
 block discarded – undo
2274 2273
                 $body .= $mimepre;
2275 2274
                 $body .= $this->getBoundary($this->boundary[1], $altBodyCharSet, 'text/plain', $altBodyEncoding);
2276 2275
                 $body .= $this->encodeString($this->AltBody, $altBodyEncoding);
2277
-                $body .= $this->LE . $this->LE;
2276
+                $body .= $this->LE.$this->LE;
2278 2277
                 $body .= $this->getBoundary($this->boundary[1], $bodyCharSet, 'text/html', $bodyEncoding);
2279 2278
                 $body .= $this->encodeString($this->Body, $bodyEncoding);
2280
-                $body .= $this->LE . $this->LE;
2279
+                $body .= $this->LE.$this->LE;
2281 2280
                 if (!empty($this->Ical)) {
2282 2281
                     $body .= $this->getBoundary($this->boundary[1], '', 'text/calendar; method=REQUEST', '');
2283 2282
                     $body .= $this->encodeString($this->Ical, $this->Encoding);
2284
-                    $body .= $this->LE . $this->LE;
2283
+                    $body .= $this->LE.$this->LE;
2285 2284
                 }
2286 2285
                 $body .= $this->endBoundary($this->boundary[1]);
2287 2286
                 break;
@@ -2289,50 +2288,50 @@  discard block
 block discarded – undo
2289 2288
                 $body .= $mimepre;
2290 2289
                 $body .= $this->getBoundary($this->boundary[1], $altBodyCharSet, 'text/plain', $altBodyEncoding);
2291 2290
                 $body .= $this->encodeString($this->AltBody, $altBodyEncoding);
2292
-                $body .= $this->LE . $this->LE;
2293
-                $body .= $this->textLine('--' . $this->boundary[1]);
2291
+                $body .= $this->LE.$this->LE;
2292
+                $body .= $this->textLine('--'.$this->boundary[1]);
2294 2293
                 $body .= $this->headerLine('Content-Type', 'multipart/related;');
2295
-                $body .= $this->textLine("\tboundary=\"" . $this->boundary[2] . '"');
2294
+                $body .= $this->textLine("\tboundary=\"".$this->boundary[2].'"');
2296 2295
                 $body .= $this->LE;
2297 2296
                 $body .= $this->getBoundary($this->boundary[2], $bodyCharSet, 'text/html', $bodyEncoding);
2298 2297
                 $body .= $this->encodeString($this->Body, $bodyEncoding);
2299
-                $body .= $this->LE . $this->LE;
2298
+                $body .= $this->LE.$this->LE;
2300 2299
                 $body .= $this->attachAll('inline', $this->boundary[2]);
2301 2300
                 $body .= $this->LE;
2302 2301
                 $body .= $this->endBoundary($this->boundary[1]);
2303 2302
                 break;
2304 2303
             case 'alt_attach':
2305 2304
                 $body .= $mimepre;
2306
-                $body .= $this->textLine('--' . $this->boundary[1]);
2305
+                $body .= $this->textLine('--'.$this->boundary[1]);
2307 2306
                 $body .= $this->headerLine('Content-Type', 'multipart/alternative;');
2308
-                $body .= $this->textLine("\tboundary=\"" . $this->boundary[2] . '"');
2307
+                $body .= $this->textLine("\tboundary=\"".$this->boundary[2].'"');
2309 2308
                 $body .= $this->LE;
2310 2309
                 $body .= $this->getBoundary($this->boundary[2], $altBodyCharSet, 'text/plain', $altBodyEncoding);
2311 2310
                 $body .= $this->encodeString($this->AltBody, $altBodyEncoding);
2312
-                $body .= $this->LE . $this->LE;
2311
+                $body .= $this->LE.$this->LE;
2313 2312
                 $body .= $this->getBoundary($this->boundary[2], $bodyCharSet, 'text/html', $bodyEncoding);
2314 2313
                 $body .= $this->encodeString($this->Body, $bodyEncoding);
2315
-                $body .= $this->LE . $this->LE;
2314
+                $body .= $this->LE.$this->LE;
2316 2315
                 $body .= $this->endBoundary($this->boundary[2]);
2317 2316
                 $body .= $this->LE;
2318 2317
                 $body .= $this->attachAll('attachment', $this->boundary[1]);
2319 2318
                 break;
2320 2319
             case 'alt_inline_attach':
2321 2320
                 $body .= $mimepre;
2322
-                $body .= $this->textLine('--' . $this->boundary[1]);
2321
+                $body .= $this->textLine('--'.$this->boundary[1]);
2323 2322
                 $body .= $this->headerLine('Content-Type', 'multipart/alternative;');
2324
-                $body .= $this->textLine("\tboundary=\"" . $this->boundary[2] . '"');
2323
+                $body .= $this->textLine("\tboundary=\"".$this->boundary[2].'"');
2325 2324
                 $body .= $this->LE;
2326 2325
                 $body .= $this->getBoundary($this->boundary[2], $altBodyCharSet, 'text/plain', $altBodyEncoding);
2327 2326
                 $body .= $this->encodeString($this->AltBody, $altBodyEncoding);
2328
-                $body .= $this->LE . $this->LE;
2329
-                $body .= $this->textLine('--' . $this->boundary[2]);
2327
+                $body .= $this->LE.$this->LE;
2328
+                $body .= $this->textLine('--'.$this->boundary[2]);
2330 2329
                 $body .= $this->headerLine('Content-Type', 'multipart/related;');
2331
-                $body .= $this->textLine("\tboundary=\"" . $this->boundary[3] . '"');
2330
+                $body .= $this->textLine("\tboundary=\"".$this->boundary[3].'"');
2332 2331
                 $body .= $this->LE;
2333 2332
                 $body .= $this->getBoundary($this->boundary[3], $bodyCharSet, 'text/html', $bodyEncoding);
2334 2333
                 $body .= $this->encodeString($this->Body, $bodyEncoding);
2335
-                $body .= $this->LE . $this->LE;
2334
+                $body .= $this->LE.$this->LE;
2336 2335
                 $body .= $this->attachAll('inline', $this->boundary[3]);
2337 2336
                 $body .= $this->LE;
2338 2337
                 $body .= $this->endBoundary($this->boundary[2]);
@@ -2352,12 +2351,12 @@  discard block
 block discarded – undo
2352 2351
         } elseif ($this->sign_key_file) {
2353 2352
             try {
2354 2353
                 if (!defined('PKCS7_TEXT')) {
2355
-                    throw new phpmailerException($this->lang('extension_missing') . 'openssl');
2354
+                    throw new phpmailerException($this->lang('extension_missing').'openssl');
2356 2355
                 }
2357 2356
                 // @TODO would be nice to use php://temp streams here, but need to wrap for PHP < 5.1
2358 2357
                 $file = tempnam(sys_get_temp_dir(), 'mail');
2359 2358
                 if (false === file_put_contents($file, $body)) {
2360
-                    throw new phpmailerException($this->lang('signing') . ' Could not write temp file');
2359
+                    throw new phpmailerException($this->lang('signing').' Could not write temp file');
2361 2360
                 }
2362 2361
                 $signed = tempnam(sys_get_temp_dir(), 'signed');
2363 2362
                 //Workaround for PHP bug https://bugs.php.net/bug.php?id=69197
@@ -2365,16 +2364,16 @@  discard block
 block discarded – undo
2365 2364
                     $sign = @openssl_pkcs7_sign(
2366 2365
                         $file,
2367 2366
                         $signed,
2368
-                        'file://' . realpath($this->sign_cert_file),
2369
-                        array('file://' . realpath($this->sign_key_file), $this->sign_key_pass),
2367
+                        'file://'.realpath($this->sign_cert_file),
2368
+                        array('file://'.realpath($this->sign_key_file), $this->sign_key_pass),
2370 2369
                         null
2371 2370
                     );
2372 2371
                 } else {
2373 2372
                     $sign = @openssl_pkcs7_sign(
2374 2373
                         $file,
2375 2374
                         $signed,
2376
-                        'file://' . realpath($this->sign_cert_file),
2377
-                        array('file://' . realpath($this->sign_key_file), $this->sign_key_pass),
2375
+                        'file://'.realpath($this->sign_cert_file),
2376
+                        array('file://'.realpath($this->sign_key_file), $this->sign_key_pass),
2378 2377
                         null,
2379 2378
                         PKCS7_DETACHED,
2380 2379
                         $this->sign_extracerts_file
@@ -2386,12 +2385,12 @@  discard block
 block discarded – undo
2386 2385
                     @unlink($signed);
2387 2386
                     //The message returned by openssl contains both headers and body, so need to split them up
2388 2387
                     $parts = explode("\n\n", $body, 2);
2389
-                    $this->MIMEHeader .= $parts[0] . $this->LE . $this->LE;
2388
+                    $this->MIMEHeader .= $parts[0].$this->LE.$this->LE;
2390 2389
                     $body = $parts[1];
2391 2390
                 } else {
2392 2391
                     @unlink($file);
2393 2392
                     @unlink($signed);
2394
-                    throw new phpmailerException($this->lang('signing') . openssl_error_string());
2393
+                    throw new phpmailerException($this->lang('signing').openssl_error_string());
2395 2394
                 }
2396 2395
             } catch (phpmailerException $exc) {
2397 2396
                 $body = '';
@@ -2424,7 +2423,7 @@  discard block
 block discarded – undo
2424 2423
         if ($encoding == '') {
2425 2424
             $encoding = $this->Encoding;
2426 2425
         }
2427
-        $result .= $this->textLine('--' . $boundary);
2426
+        $result .= $this->textLine('--'.$boundary);
2428 2427
         $result .= sprintf('Content-Type: %s; charset=%s', $contentType, $charSet);
2429 2428
         $result .= $this->LE;
2430 2429
         // RFC1341 part 5 says 7bit is assumed if not specified
@@ -2444,7 +2443,7 @@  discard block
 block discarded – undo
2444 2443
      */
2445 2444
     protected function endBoundary($boundary)
2446 2445
     {
2447
-        return $this->LE . '--' . $boundary . '--' . $this->LE;
2446
+        return $this->LE.'--'.$boundary.'--'.$this->LE;
2448 2447
     }
2449 2448
 
2450 2449
     /**
@@ -2481,7 +2480,7 @@  discard block
 block discarded – undo
2481 2480
      */
2482 2481
     public function headerLine($name, $value)
2483 2482
     {
2484
-        return $name . ': ' . $value . $this->LE;
2483
+        return $name.': '.$value.$this->LE;
2485 2484
     }
2486 2485
 
2487 2486
     /**
@@ -2492,7 +2491,7 @@  discard block
 block discarded – undo
2492 2491
      */
2493 2492
     public function textLine($value)
2494 2493
     {
2495
-        return $value . $this->LE;
2494
+        return $value.$this->LE;
2496 2495
     }
2497 2496
 
2498 2497
     /**
@@ -2511,7 +2510,7 @@  discard block
 block discarded – undo
2511 2510
     {
2512 2511
         try {
2513 2512
             if (!@is_file($path)) {
2514
-                throw new phpmailerException($this->lang('file_access') . $path, self::STOP_CONTINUE);
2513
+                throw new phpmailerException($this->lang('file_access').$path, self::STOP_CONTINUE);
2515 2514
             }
2516 2515
 
2517 2516
             // If a MIME type is not specified, try to work it out from the file name
@@ -2635,7 +2634,7 @@  discard block
 block discarded – undo
2635 2634
                             'Content-Disposition: %s; filename="%s"%s',
2636 2635
                             $disposition,
2637 2636
                             $encoded_name,
2638
-                            $this->LE . $this->LE
2637
+                            $this->LE.$this->LE
2639 2638
                         );
2640 2639
                     } else {
2641 2640
                         if (!empty($encoded_name)) {
@@ -2643,13 +2642,13 @@  discard block
 block discarded – undo
2643 2642
                                 'Content-Disposition: %s; filename=%s%s',
2644 2643
                                 $disposition,
2645 2644
                                 $encoded_name,
2646
-                                $this->LE . $this->LE
2645
+                                $this->LE.$this->LE
2647 2646
                             );
2648 2647
                         } else {
2649 2648
                             $mime[] = sprintf(
2650 2649
                                 'Content-Disposition: %s%s',
2651 2650
                                 $disposition,
2652
-                                $this->LE . $this->LE
2651
+                                $this->LE.$this->LE
2653 2652
                             );
2654 2653
                         }
2655 2654
                     }
@@ -2663,13 +2662,13 @@  discard block
 block discarded – undo
2663 2662
                     if ($this->isError()) {
2664 2663
                         return '';
2665 2664
                     }
2666
-                    $mime[] = $this->LE . $this->LE;
2665
+                    $mime[] = $this->LE.$this->LE;
2667 2666
                 } else {
2668 2667
                     $mime[] = $this->encodeFile($path, $encoding);
2669 2668
                     if ($this->isError()) {
2670 2669
                         return '';
2671 2670
                     }
2672
-                    $mime[] = $this->LE . $this->LE;
2671
+                    $mime[] = $this->LE.$this->LE;
2673 2672
                 }
2674 2673
             }
2675 2674
         }
@@ -2692,7 +2691,7 @@  discard block
 block discarded – undo
2692 2691
     {
2693 2692
         try {
2694 2693
             if (!is_readable($path)) {
2695
-                throw new phpmailerException($this->lang('file_open') . $path, self::STOP_CONTINUE);
2694
+                throw new phpmailerException($this->lang('file_open').$path, self::STOP_CONTINUE);
2696 2695
             }
2697 2696
             $magic_quotes = get_magic_quotes_runtime();
2698 2697
             if ($magic_quotes) {
@@ -2751,7 +2750,7 @@  discard block
 block discarded – undo
2751 2750
                 $encoded = $this->encodeQP($str);
2752 2751
                 break;
2753 2752
             default:
2754
-                $this->setError($this->lang('encoding') . $encoding);
2753
+                $this->setError($this->lang('encoding').$encoding);
2755 2754
                 break;
2756 2755
         }
2757 2756
         return $encoded;
@@ -2814,10 +2813,10 @@  discard block
 block discarded – undo
2814 2813
             $encoding = 'Q';
2815 2814
             $encoded = $this->encodeQ($str, $position);
2816 2815
             $encoded = $this->wrapText($encoded, $maxlen, true);
2817
-            $encoded = str_replace('=' . self::CRLF, "\n", trim($encoded));
2816
+            $encoded = str_replace('='.self::CRLF, "\n", trim($encoded));
2818 2817
         }
2819 2818
 
2820
-        $encoded = preg_replace('/^(.*)$/m', ' =?' . $this->CharSet . "?$encoding?\\1?=", $encoded);
2819
+        $encoded = preg_replace('/^(.*)$/m', ' =?'.$this->CharSet."?$encoding?\\1?=", $encoded);
2821 2820
         $encoded = trim(str_replace("\n", $this->LE, $encoded));
2822 2821
 
2823 2822
         return $encoded;
@@ -2860,7 +2859,7 @@  discard block
 block discarded – undo
2860 2859
      */
2861 2860
     public function base64EncodeWrapMB($str, $linebreak = null)
2862 2861
     {
2863
-        $start = '=?' . $this->CharSet . '?B?';
2862
+        $start = '=?'.$this->CharSet.'?B?';
2864 2863
         $end = '?=';
2865 2864
         $encoded = '';
2866 2865
         if ($linebreak === null) {
@@ -2883,7 +2882,7 @@  discard block
 block discarded – undo
2883 2882
                 $chunk = base64_encode($chunk);
2884 2883
                 $lookBack++;
2885 2884
             } while (strlen($chunk) > $length);
2886
-            $encoded .= $chunk . $linebreak;
2885
+            $encoded .= $chunk.$linebreak;
2887 2886
         }
2888 2887
 
2889 2888
         // Chomp the last linefeed
@@ -2912,7 +2911,7 @@  discard block
 block discarded – undo
2912 2911
             array(' ', "\r\n=2E", "\r\n", '='),
2913 2912
             rawurlencode($string)
2914 2913
         );
2915
-        return preg_replace('/[^\r\n]{' . ($line_max - 3) . '}[^=\r\n]{2}/', "$0=\r\n", $string);
2914
+        return preg_replace('/[^\r\n]{'.($line_max - 3).'}[^=\r\n]{2}/', "$0=\r\n", $string);
2916 2915
     }
2917 2916
 
2918 2917
     /**
@@ -2961,7 +2960,7 @@  discard block
 block discarded – undo
2961 2960
             default:
2962 2961
                 // RFC 2047 section 5.1
2963 2962
                 // Replace every high ascii, control, =, ? and _ characters
2964
-                $pattern = '\000-\011\013\014\016-\037\075\077\137\177-\377' . $pattern;
2963
+                $pattern = '\000-\011\013\014\016-\037\075\077\137\177-\377'.$pattern;
2965 2964
                 break;
2966 2965
         }
2967 2966
         $matches = array();
@@ -2974,7 +2973,7 @@  discard block
 block discarded – undo
2974 2973
                 array_unshift($matches[0], '=');
2975 2974
             }
2976 2975
             foreach (array_unique($matches[0]) as $char) {
2977
-                $encoded = str_replace($char, '=' . sprintf('%02X', ord($char)), $encoded);
2976
+                $encoded = str_replace($char, '='.sprintf('%02X', ord($char)), $encoded);
2978 2977
             }
2979 2978
         }
2980 2979
         // Replace every spaces to _ (more readable than =20)
@@ -3036,7 +3035,7 @@  discard block
 block discarded – undo
3036 3035
     public function addEmbeddedImage($path, $cid, $name = '', $encoding = 'base64', $type = '', $disposition = 'inline')
3037 3036
     {
3038 3037
         if (!@is_file($path)) {
3039
-            $this->setError($this->lang('file_access') . $path);
3038
+            $this->setError($this->lang('file_access').$path);
3040 3039
             return false;
3041 3040
         }
3042 3041
 
@@ -3251,15 +3250,15 @@  discard block
 block discarded – undo
3251 3250
         if ($this->Mailer == 'smtp' and !is_null($this->smtp)) {
3252 3251
             $lasterror = $this->smtp->getError();
3253 3252
             if (!empty($lasterror['error'])) {
3254
-                $msg .= $this->lang('smtp_error') . $lasterror['error'];
3253
+                $msg .= $this->lang('smtp_error').$lasterror['error'];
3255 3254
                 if (!empty($lasterror['detail'])) {
3256
-                    $msg .= ' Detail: '. $lasterror['detail'];
3255
+                    $msg .= ' Detail: '.$lasterror['detail'];
3257 3256
                 }
3258 3257
                 if (!empty($lasterror['smtp_code'])) {
3259
-                    $msg .= ' SMTP code: ' . $lasterror['smtp_code'];
3258
+                    $msg .= ' SMTP code: '.$lasterror['smtp_code'];
3260 3259
                 }
3261 3260
                 if (!empty($lasterror['smtp_code_ex'])) {
3262
-                    $msg .= ' Additional SMTP info: ' . $lasterror['smtp_code_ex'];
3261
+                    $msg .= ' Additional SMTP info: '.$lasterror['smtp_code_ex'];
3263 3262
                 }
3264 3263
             }
3265 3264
         }
@@ -3318,7 +3317,7 @@  discard block
 block discarded – undo
3318 3317
                 //Include a link to troubleshooting docs on SMTP connection failure
3319 3318
                 //this is by far the biggest cause of support questions
3320 3319
                 //but it's usually not PHPMailer's fault.
3321
-                return $this->language[$key] . ' https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting';
3320
+                return $this->language[$key].' https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting';
3322 3321
             }
3323 3322
             return $this->language[$key];
3324 3323
         } else {
@@ -3416,11 +3415,11 @@  discard block
 block discarded – undo
3416 3415
                     } else {
3417 3416
                         $data = rawurldecode($data);
3418 3417
                     }
3419
-                    $cid = md5($url) . '@phpmailer.0'; // RFC2392 S 2
3420
-                    if ($this->addStringEmbeddedImage($data, $cid, 'embed' . $imgindex, 'base64', $match[1])) {
3418
+                    $cid = md5($url).'@phpmailer.0'; // RFC2392 S 2
3419
+                    if ($this->addStringEmbeddedImage($data, $cid, 'embed'.$imgindex, 'base64', $match[1])) {
3421 3420
                         $message = str_replace(
3422 3421
                             $images[0][$imgindex],
3423
-                            $images[1][$imgindex] . '="cid:' . $cid . '"',
3422
+                            $images[1][$imgindex].'="cid:'.$cid.'"',
3424 3423
                             $message
3425 3424
                         );
3426 3425
                     }
@@ -3441,12 +3440,12 @@  discard block
 block discarded – undo
3441 3440
                     if ($directory == '.') {
3442 3441
                         $directory = '';
3443 3442
                     }
3444
-                    $cid = md5($url) . '@phpmailer.0'; // RFC2392 S 2
3443
+                    $cid = md5($url).'@phpmailer.0'; // RFC2392 S 2
3445 3444
                     if (strlen($directory) > 1 && substr($directory, -1) != '/') {
3446 3445
                         $directory .= '/';
3447 3446
                     }
3448 3447
                     if ($this->addEmbeddedImage(
3449
-                        $basedir . $directory . $filename,
3448
+                        $basedir.$directory.$filename,
3450 3449
                         $cid,
3451 3450
                         $filename,
3452 3451
                         'base64',
@@ -3454,8 +3453,8 @@  discard block
 block discarded – undo
3454 3453
                     )
3455 3454
                     ) {
3456 3455
                         $message = preg_replace(
3457
-                            '/' . $images[1][$imgindex] . '=["\']' . preg_quote($url, '/') . '["\']/Ui',
3458
-                            $images[1][$imgindex] . '="cid:' . $cid . '"',
3456
+                            '/'.$images[1][$imgindex].'=["\']'.preg_quote($url, '/').'["\']/Ui',
3457
+                            $images[1][$imgindex].'="cid:'.$cid.'"',
3459 3458
                             $message
3460 3459
                         );
3461 3460
                     }
@@ -3467,8 +3466,8 @@  discard block
 block discarded – undo
3467 3466
         $this->Body = $this->normalizeBreaks($message);
3468 3467
         $this->AltBody = $this->normalizeBreaks($this->html2text($message, $advanced));
3469 3468
         if (!$this->alternativeExists()) {
3470
-            $this->AltBody = 'To view this email message, open it in a program that understands HTML!' .
3471
-                self::CRLF . self::CRLF;
3469
+            $this->AltBody = 'To view this email message, open it in a program that understands HTML!'.
3470
+                self::CRLF.self::CRLF;
3472 3471
         }
3473 3472
         return $this->Body;
3474 3473
     }
@@ -3705,7 +3704,7 @@  discard block
 block discarded – undo
3705 3704
             $this->$name = $value;
3706 3705
             return true;
3707 3706
         } else {
3708
-            $this->setError($this->lang('variable_set') . $name);
3707
+            $this->setError($this->lang('variable_set').$name);
3709 3708
             return false;
3710 3709
         }
3711 3710
     }
@@ -3766,7 +3765,7 @@  discard block
 block discarded – undo
3766 3765
             if (((0x21 <= $ord) && ($ord <= 0x3A)) || $ord == 0x3C || ((0x3E <= $ord) && ($ord <= 0x7E))) {
3767 3766
                 $line .= $txt[$i];
3768 3767
             } else {
3769
-                $line .= '=' . sprintf('%02X', $ord);
3768
+                $line .= '='.sprintf('%02X', $ord);
3770 3769
             }
3771 3770
         }
3772 3771
         return $line;
@@ -3783,7 +3782,7 @@  discard block
 block discarded – undo
3783 3782
     {
3784 3783
         if (!defined('PKCS7_TEXT')) {
3785 3784
             if ($this->exceptions) {
3786
-                throw new phpmailerException($this->lang('extension_missing') . 'openssl');
3785
+                throw new phpmailerException($this->lang('extension_missing').'openssl');
3787 3786
             }
3788 3787
             return '';
3789 3788
         }
@@ -3806,9 +3805,9 @@  discard block
 block discarded – undo
3806 3805
             $hash = hash('sha256', $signHeader);
3807 3806
             //'Magic' constant for SHA256 from RFC3447
3808 3807
             //@link https://tools.ietf.org/html/rfc3447#page-43
3809
-            $t = '3031300d060960864801650304020105000420' . $hash;
3808
+            $t = '3031300d060960864801650304020105000420'.$hash;
3810 3809
             $pslen = $pinfo['bits'] / 8 - (strlen($t) / 2 + 3);
3811
-            $eb = pack('H*', '0001' . str_repeat('FF', $pslen) . '00' . $t);
3810
+            $eb = pack('H*', '0001'.str_repeat('FF', $pslen).'00'.$t);
3812 3811
 
3813 3812
             if (openssl_private_encrypt($eb, $signature, $privKey, OPENSSL_NO_PADDING)) {
3814 3813
                 openssl_pkey_free($privKey);
@@ -3833,7 +3832,7 @@  discard block
 block discarded – undo
3833 3832
             list($heading, $value) = explode(':', $line, 2);
3834 3833
             $heading = strtolower($heading);
3835 3834
             $value = preg_replace('/\s{2,}/', ' ', $value); // Compress useless spaces
3836
-            $lines[$key] = $heading . ':' . trim($value); // Don't forget to remove WSP around the value
3835
+            $lines[$key] = $heading.':'.trim($value); // Don't forget to remove WSP around the value
3837 3836
         }
3838 3837
         $signHeader = implode("\r\n", $lines);
3839 3838
         return $signHeader;
@@ -3912,32 +3911,32 @@  discard block
 block discarded – undo
3912 3911
         if ('' == $this->DKIM_identity) {
3913 3912
             $ident = '';
3914 3913
         } else {
3915
-            $ident = ' i=' . $this->DKIM_identity . ';';
3916
-        }
3917
-        $dkimhdrs = 'DKIM-Signature: v=1; a=' .
3918
-            $DKIMsignatureType . '; q=' .
3919
-            $DKIMquery . '; l=' .
3920
-            $DKIMlen . '; s=' .
3921
-            $this->DKIM_selector .
3922
-            ";\r\n" .
3923
-            "\tt=" . $DKIMtime . '; c=' . $DKIMcanonicalization . ";\r\n" .
3924
-            "\th=From:To:Date:Subject;\r\n" .
3925
-            "\td=" . $this->DKIM_domain . ';' . $ident . "\r\n" .
3926
-            "\tz=$from\r\n" .
3927
-            "\t|$to\r\n" .
3928
-            "\t|$date\r\n" .
3929
-            "\t|$subject;\r\n" .
3930
-            "\tbh=" . $DKIMb64 . ";\r\n" .
3914
+            $ident = ' i='.$this->DKIM_identity.';';
3915
+        }
3916
+        $dkimhdrs = 'DKIM-Signature: v=1; a='.
3917
+            $DKIMsignatureType.'; q='.
3918
+            $DKIMquery.'; l='.
3919
+            $DKIMlen.'; s='.
3920
+            $this->DKIM_selector.
3921
+            ";\r\n".
3922
+            "\tt=".$DKIMtime.'; c='.$DKIMcanonicalization.";\r\n".
3923
+            "\th=From:To:Date:Subject;\r\n".
3924
+            "\td=".$this->DKIM_domain.';'.$ident."\r\n".
3925
+            "\tz=$from\r\n".
3926
+            "\t|$to\r\n".
3927
+            "\t|$date\r\n".
3928
+            "\t|$subject;\r\n".
3929
+            "\tbh=".$DKIMb64.";\r\n".
3931 3930
             "\tb=";
3932 3931
         $toSign = $this->DKIM_HeaderC(
3933
-            $from_header . "\r\n" .
3934
-            $to_header . "\r\n" .
3935
-            $date_header . "\r\n" .
3936
-            $subject_header . "\r\n" .
3932
+            $from_header."\r\n".
3933
+            $to_header."\r\n".
3934
+            $date_header."\r\n".
3935
+            $subject_header."\r\n".
3937 3936
             $dkimhdrs
3938 3937
         );
3939 3938
         $signed = $this->DKIM_Sign($toSign);
3940
-        return $dkimhdrs . $signed . "\r\n";
3939
+        return $dkimhdrs.$signed."\r\n";
3941 3940
     }
3942 3941
 
3943 3942
     /**
@@ -4038,7 +4037,7 @@  discard block
 block discarded – undo
4038 4037
      */
4039 4038
     public function errorMessage()
4040 4039
     {
4041
-        $errorMsg = '<strong>' . htmlspecialchars($this->getMessage()) . "</strong><br />\n";
4040
+        $errorMsg = '<strong>'.htmlspecialchars($this->getMessage())."</strong><br />\n";
4042 4041
         return $errorMsg;
4043 4042
     }
4044 4043
 }
Please login to merge, or discard this patch.
htdocs/class/mail/phpmailer/class.phpmaileroauth.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -141,7 +141,7 @@
 block discarded – undo
141 141
             if ($tport > 0 and $tport < 65536) {
142 142
                 $port = $tport;
143 143
             }
144
-            if ($this->smtp->connect($prefix . $host, $port, $this->Timeout, $options)) {
144
+            if ($this->smtp->connect($prefix.$host, $port, $this->Timeout, $options)) {
145 145
                 try {
146 146
                     if ($this->Helo) {
147 147
                         $hello = $this->Helo;
Please login to merge, or discard this patch.
htdocs/class/mail/xoopsmultimailer.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -29,12 +29,12 @@  discard block
 block discarded – undo
29 29
 /**
30 30
  * load the base class
31 31
  */
32
-if (!file_exists($file = XOOPS_ROOT_PATH . '/class/mail/phpmailer/class.phpmailer.php')) {
33
-    trigger_error('Required File  ' . str_replace(XOOPS_ROOT_PATH, '', $file) . ' was not found in file ' . __FILE__ . ' at line ' . __LINE__, E_USER_WARNING);
32
+if (!file_exists($file = XOOPS_ROOT_PATH.'/class/mail/phpmailer/class.phpmailer.php')) {
33
+    trigger_error('Required File  '.str_replace(XOOPS_ROOT_PATH, '', $file).' was not found in file '.__FILE__.' at line '.__LINE__, E_USER_WARNING);
34 34
 
35 35
     return false;
36 36
 }
37
-require_once XOOPS_ROOT_PATH . '/class/mail/phpmailer/PHPMailerAutoload.php';
37
+require_once XOOPS_ROOT_PATH.'/class/mail/phpmailer/PHPMailerAutoload.php';
38 38
 //include_once XOOPS_ROOT_PATH . '/class/mail/phpmailer/class.phpmailer.php';
39 39
 
40 40
 /**
@@ -165,11 +165,11 @@  discard block
 block discarded – undo
165 165
         }
166 166
         $this->CharSet = strtolower(_CHARSET);
167 167
         $xoopsLanguage = preg_replace('/[^a-zA-Z0-9_-]/', '', $GLOBALS['xoopsConfig']['language']);
168
-        if (file_exists(XOOPS_ROOT_PATH . '/language/' . $xoopsLanguage . '/phpmailer.php')) {
169
-            include XOOPS_ROOT_PATH . '/language/' . $xoopsLanguage . '/phpmailer.php';
168
+        if (file_exists(XOOPS_ROOT_PATH.'/language/'.$xoopsLanguage.'/phpmailer.php')) {
169
+            include XOOPS_ROOT_PATH.'/language/'.$xoopsLanguage.'/phpmailer.php';
170 170
             $this->language = $PHPMAILER_LANG;
171 171
         } else {
172
-            $this->setLanguage('en', XOOPS_ROOT_PATH . '/class/mail/phpmailer/language/');
172
+            $this->setLanguage('en', XOOPS_ROOT_PATH.'/class/mail/phpmailer/language/');
173 173
         }
174 174
         //$this->pluginDir = XOOPS_ROOT_PATH . '/class/mail/phpmailer/';
175 175
     }
Please login to merge, or discard this patch.
htdocs/class/xoopsstory.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -20,8 +20,8 @@  discard block
 block discarded – undo
20 20
 defined('XOOPS_ROOT_PATH') || exit('XOOPS root path not defined');
21 21
 
22 22
 $GLOBALS['xoopsLogger']->addDeprecated("'/class/xoopstory.php' is deprecated since XOOPS 2.5.4, please create your own class instead.");
23
-include_once XOOPS_ROOT_PATH . '/class/xoopstopic.php';
24
-include_once XOOPS_ROOT_PATH . '/kernel/user.php';
23
+include_once XOOPS_ROOT_PATH.'/class/xoopstopic.php';
24
+include_once XOOPS_ROOT_PATH.'/kernel/user.php';
25 25
 
26 26
 /**
27 27
  * Class XoopsStory
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
     public $uid;
35 35
     public $title;
36 36
     public $hometext;
37
-    public $bodytext  = '';
37
+    public $bodytext = '';
38 38
     public $counter;
39 39
     public $created;
40 40
     public $published;
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
         $expired = !empty($this->expired) ? $this->expired : 0;
242 242
         if (!isset($this->storyid)) {
243 243
             //$newpost = 1;
244
-            $newstoryid = $this->db->genId($this->table . '_storyid_seq');
244
+            $newstoryid = $this->db->genId($this->table.'_storyid_seq');
245 245
             $created    = time();
246 246
             $published  = $this->approved ? $this->published : 0;
247 247
 
@@ -271,7 +271,7 @@  discard block
 block discarded – undo
271 271
     public function getStory($storyid)
272 272
     {
273 273
         $storyid = (int)$storyid;
274
-        $sql     = 'SELECT * FROM ' . $this->table . ' WHERE storyid=' . $storyid . '';
274
+        $sql     = 'SELECT * FROM '.$this->table.' WHERE storyid='.$storyid.'';
275 275
         $array   = $this->db->fetchArray($this->db->query($sql));
276 276
         $this->makeStory($array);
277 277
     }
Please login to merge, or discard this patch.
htdocs/class/xoopstree.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
      */
47 47
     public function __construct($table_name, $id_name, $pid_name)
48 48
     {
49
-        $GLOBALS['xoopsLogger']->addDeprecated("Class '" . __CLASS__ . "' is deprecated, check 'XoopsObjectTree' in tree.php");
49
+        $GLOBALS['xoopsLogger']->addDeprecated("Class '".__CLASS__."' is deprecated, check 'XoopsObjectTree' in tree.php");
50 50
         $this->db = XoopsDatabaseFactory::getDatabaseConnection();
51 51
         $this->table = $table_name;
52 52
         $this->id    = $id_name;
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
     {
65 65
         $sel_id = (int)$sel_id;
66 66
         $arr    = array();
67
-        $sql    = 'SELECT * FROM ' . $this->table . ' WHERE ' . $this->pid . '=' . $sel_id . '';
67
+        $sql    = 'SELECT * FROM '.$this->table.' WHERE '.$this->pid.'='.$sel_id.'';
68 68
         if ($order != '') {
69 69
             $sql .= " ORDER BY $order";
70 70
         }
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
     {
91 91
         $sel_id  = (int)$sel_id;
92 92
         $idarray = array();
93
-        $result  = $this->db->query('SELECT ' . $this->id . ' FROM ' . $this->table . ' WHERE ' . $this->pid . '=' . $sel_id . '');
93
+        $result  = $this->db->query('SELECT '.$this->id.' FROM '.$this->table.' WHERE '.$this->pid.'='.$sel_id.'');
94 94
         $count   = $this->db->getRowsNum($result);
95 95
         if ($count == 0) {
96 96
             return $idarray;
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
     public function getAllChildId($sel_id, $order = '', $idarray = array())
114 114
     {
115 115
         $sel_id = (int)$sel_id;
116
-        $sql    = 'SELECT ' . $this->id . ' FROM ' . $this->table . ' WHERE ' . $this->pid . '=' . $sel_id . '';
116
+        $sql    = 'SELECT '.$this->id.' FROM '.$this->table.' WHERE '.$this->pid.'='.$sel_id.'';
117 117
         if ($order != '') {
118 118
             $sql .= " ORDER BY $order";
119 119
         }
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
     public function getAllParentId($sel_id, $order = '', $idarray = array())
142 142
     {
143 143
         $sel_id = (int)$sel_id;
144
-        $sql    = 'SELECT ' . $this->pid . ' FROM ' . $this->table . ' WHERE ' . $this->id . '=' . $sel_id . '';
144
+        $sql    = 'SELECT '.$this->pid.' FROM '.$this->table.' WHERE '.$this->id.'='.$sel_id.'';
145 145
         if ($order != '') {
146 146
             $sql .= " ORDER BY $order";
147 147
         }
@@ -168,14 +168,14 @@  discard block
 block discarded – undo
168 168
     public function getPathFromId($sel_id, $title, $path = '')
169 169
     {
170 170
         $sel_id = (int)$sel_id;
171
-        $result = $this->db->query('SELECT ' . $this->pid . ', ' . $title . ' FROM ' . $this->table . ' WHERE ' . $this->id . "=$sel_id");
171
+        $result = $this->db->query('SELECT '.$this->pid.', '.$title.' FROM '.$this->table.' WHERE '.$this->id."=$sel_id");
172 172
         if ($this->db->getRowsNum($result) == 0) {
173 173
             return $path;
174 174
         }
175 175
         list($parentid, $name) = $this->db->fetchRow($result);
176 176
         $myts = MyTextSanitizer::getInstance();
177 177
         $name = $myts->htmlspecialchars($name);
178
-        $path = '/' . $name . $path . '';
178
+        $path = '/'.$name.$path.'';
179 179
         if ($parentid == 0) {
180 180
             return $path;
181 181
         }
@@ -201,12 +201,12 @@  discard block
 block discarded – undo
201 201
             $sel_name = $this->id;
202 202
         }
203 203
         $myts = MyTextSanitizer::getInstance();
204
-        echo "<select name='" . $sel_name . "'";
204
+        echo "<select name='".$sel_name."'";
205 205
         if ($onchange != '') {
206
-            echo " onchange='" . $onchange . "'";
206
+            echo " onchange='".$onchange."'";
207 207
         }
208 208
         echo ">\n";
209
-        $sql = 'SELECT ' . $this->id . ', ' . $title . ' FROM ' . $this->table . ' WHERE ' . $this->pid . '=0';
209
+        $sql = 'SELECT '.$this->id.', '.$title.' FROM '.$this->table.' WHERE '.$this->pid.'=0';
210 210
         if ($order != '') {
211 211
             $sql .= " ORDER BY $order";
212 212
         }
@@ -224,11 +224,11 @@  discard block
 block discarded – undo
224 224
             $arr = $this->getChildTreeArray($catid, $order);
225 225
             foreach ($arr as $option) {
226 226
                 $option['prefix'] = str_replace('.', '--', $option['prefix']);
227
-                $catpath          = $option['prefix'] . '&nbsp;' . $myts->htmlspecialchars($option[$title]);
227
+                $catpath          = $option['prefix'].'&nbsp;'.$myts->htmlspecialchars($option[$title]);
228 228
                 if ($option[$this->id] == $preset_id) {
229 229
                     $sel = " selected";
230 230
                 }
231
-                echo "<option value='" . $option[$this->id] . "'$sel>$catpath</option>\n";
231
+                echo "<option value='".$option[$this->id]."'$sel>$catpath</option>\n";
232 232
                 $sel = '';
233 233
             }
234 234
         }
@@ -246,9 +246,9 @@  discard block
 block discarded – undo
246 246
      */
247 247
     public function getNicePathFromId($sel_id, $title, $funcURL, $path = '')
248 248
     {
249
-        $path   = !empty($path) ? '&nbsp;:&nbsp;' . $path : $path;
249
+        $path   = !empty($path) ? '&nbsp;:&nbsp;'.$path : $path;
250 250
         $sel_id = (int)$sel_id;
251
-        $sql    = 'SELECT ' . $this->pid . ', ' . $title . ' FROM ' . $this->table . ' WHERE ' . $this->id . "=$sel_id";
251
+        $sql    = 'SELECT '.$this->pid.', '.$title.' FROM '.$this->table.' WHERE '.$this->id."=$sel_id";
252 252
         $result = $this->db->query($sql);
253 253
         if ($this->db->getRowsNum($result) == 0) {
254 254
             return $path;
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
         list($parentid, $name) = $this->db->fetchRow($result);
257 257
         $myts = MyTextSanitizer::getInstance();
258 258
         $name = $myts->htmlspecialchars($name);
259
-        $path = "<a href='" . $funcURL . '&amp;' . $this->id . '=' . $sel_id . "'>" . $name . '</a>' . $path . '';
259
+        $path = "<a href='".$funcURL.'&amp;'.$this->id.'='.$sel_id."'>".$name.'</a>'.$path.'';
260 260
         if ($parentid == 0) {
261 261
             return $path;
262 262
         }
@@ -276,12 +276,12 @@  discard block
 block discarded – undo
276 276
     public function getIdPathFromId($sel_id, $path = '')
277 277
     {
278 278
         $sel_id = (int)$sel_id;
279
-        $result = $this->db->query('SELECT ' . $this->pid . ' FROM ' . $this->table . ' WHERE ' . $this->id . "=$sel_id");
279
+        $result = $this->db->query('SELECT '.$this->pid.' FROM '.$this->table.' WHERE '.$this->id."=$sel_id");
280 280
         if ($this->db->getRowsNum($result) == 0) {
281 281
             return $path;
282 282
         }
283 283
         list($parentid) = $this->db->fetchRow($result);
284
-        $path = '/' . $sel_id . $path . '';
284
+        $path = '/'.$sel_id.$path.'';
285 285
         if ($parentid == 0) {
286 286
             return $path;
287 287
         }
@@ -302,7 +302,7 @@  discard block
 block discarded – undo
302 302
     public function getAllChild($sel_id = 0, $order = '', $parray = array())
303 303
     {
304 304
         $sel_id = (int)$sel_id;
305
-        $sql    = 'SELECT * FROM ' . $this->table . ' WHERE ' . $this->pid . '=' . $sel_id . '';
305
+        $sql    = 'SELECT * FROM '.$this->table.' WHERE '.$this->pid.'='.$sel_id.'';
306 306
         if ($order != '') {
307 307
             $sql .= " ORDER BY $order";
308 308
         }
@@ -331,7 +331,7 @@  discard block
 block discarded – undo
331 331
     public function getChildTreeArray($sel_id = 0, $order = '', $parray = array(), $r_prefix = '')
332 332
     {
333 333
         $sel_id = (int)$sel_id;
334
-        $sql    = 'SELECT * FROM ' . $this->table . ' WHERE ' . $this->pid . '=' . $sel_id . '';
334
+        $sql    = 'SELECT * FROM '.$this->table.' WHERE '.$this->pid.'='.$sel_id.'';
335 335
         if ($order != '') {
336 336
             $sql .= " ORDER BY $order";
337 337
         }
@@ -341,7 +341,7 @@  discard block
 block discarded – undo
341 341
             return $parray;
342 342
         }
343 343
         while (false !== ($row = $this->db->fetchArray($result))) {
344
-            $row['prefix'] = $r_prefix . '.';
344
+            $row['prefix'] = $r_prefix.'.';
345 345
             $parray[]      = $row;
346 346
             $parray        = $this->getChildTreeArray($row[$this->id], $order, $parray, $row['prefix']);
347 347
         }
Please login to merge, or discard this patch.