Completed
Push — development ( 362b6c...477849 )
by Nils
08:04
created
includes/libraries/Pdf/Tfpdf/font/symbol.php 2 patches
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -4,16 +4,16 @@
 block discarded – undo
4 4
 $up = -100;
5 5
 $ut = 50;
6 6
 $cw = array(
7
-	chr(0)=>250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250,
8
-	chr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>333,'"'=>713,'#'=>500,'$'=>549,'%'=>833,'&'=>778,'\''=>439,'('=>333,')'=>333,'*'=>500,'+'=>549,
9
-	','=>250,'-'=>549,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>278,';'=>278,'<'=>549,'='=>549,'>'=>549,'?'=>444,'@'=>549,'A'=>722,
10
-	'B'=>667,'C'=>722,'D'=>612,'E'=>611,'F'=>763,'G'=>603,'H'=>722,'I'=>333,'J'=>631,'K'=>722,'L'=>686,'M'=>889,'N'=>722,'O'=>722,'P'=>768,'Q'=>741,'R'=>556,'S'=>592,'T'=>611,'U'=>690,'V'=>439,'W'=>768,
11
-	'X'=>645,'Y'=>795,'Z'=>611,'['=>333,'\\'=>863,']'=>333,'^'=>658,'_'=>500,'`'=>500,'a'=>631,'b'=>549,'c'=>549,'d'=>494,'e'=>439,'f'=>521,'g'=>411,'h'=>603,'i'=>329,'j'=>603,'k'=>549,'l'=>549,'m'=>576,
12
-	'n'=>521,'o'=>549,'p'=>549,'q'=>521,'r'=>549,'s'=>603,'t'=>439,'u'=>576,'v'=>713,'w'=>686,'x'=>493,'y'=>686,'z'=>494,'{'=>480,'|'=>200,'}'=>480,'~'=>549,chr(127)=>0,chr(128)=>0,chr(129)=>0,chr(130)=>0,chr(131)=>0,
13
-	chr(132)=>0,chr(133)=>0,chr(134)=>0,chr(135)=>0,chr(136)=>0,chr(137)=>0,chr(138)=>0,chr(139)=>0,chr(140)=>0,chr(141)=>0,chr(142)=>0,chr(143)=>0,chr(144)=>0,chr(145)=>0,chr(146)=>0,chr(147)=>0,chr(148)=>0,chr(149)=>0,chr(150)=>0,chr(151)=>0,chr(152)=>0,chr(153)=>0,
14
-	chr(154)=>0,chr(155)=>0,chr(156)=>0,chr(157)=>0,chr(158)=>0,chr(159)=>0,chr(160)=>750,chr(161)=>620,chr(162)=>247,chr(163)=>549,chr(164)=>167,chr(165)=>713,chr(166)=>500,chr(167)=>753,chr(168)=>753,chr(169)=>753,chr(170)=>753,chr(171)=>1042,chr(172)=>987,chr(173)=>603,chr(174)=>987,chr(175)=>603,
15
-	chr(176)=>400,chr(177)=>549,chr(178)=>411,chr(179)=>549,chr(180)=>549,chr(181)=>713,chr(182)=>494,chr(183)=>460,chr(184)=>549,chr(185)=>549,chr(186)=>549,chr(187)=>549,chr(188)=>1000,chr(189)=>603,chr(190)=>1000,chr(191)=>658,chr(192)=>823,chr(193)=>686,chr(194)=>795,chr(195)=>987,chr(196)=>768,chr(197)=>768,
16
-	chr(198)=>823,chr(199)=>768,chr(200)=>768,chr(201)=>713,chr(202)=>713,chr(203)=>713,chr(204)=>713,chr(205)=>713,chr(206)=>713,chr(207)=>713,chr(208)=>768,chr(209)=>713,chr(210)=>790,chr(211)=>790,chr(212)=>890,chr(213)=>823,chr(214)=>549,chr(215)=>250,chr(216)=>713,chr(217)=>603,chr(218)=>603,chr(219)=>1042,
17
-	chr(220)=>987,chr(221)=>603,chr(222)=>987,chr(223)=>603,chr(224)=>494,chr(225)=>329,chr(226)=>790,chr(227)=>790,chr(228)=>786,chr(229)=>713,chr(230)=>384,chr(231)=>384,chr(232)=>384,chr(233)=>384,chr(234)=>384,chr(235)=>384,chr(236)=>494,chr(237)=>494,chr(238)=>494,chr(239)=>494,chr(240)=>0,chr(241)=>329,
18
-	chr(242)=>274,chr(243)=>686,chr(244)=>686,chr(245)=>686,chr(246)=>384,chr(247)=>384,chr(248)=>384,chr(249)=>384,chr(250)=>384,chr(251)=>384,chr(252)=>494,chr(253)=>494,chr(254)=>494,chr(255)=>0);
7
+    chr(0)=>250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250,
8
+    chr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>333,'"'=>713,'#'=>500,'$'=>549,'%'=>833,'&'=>778,'\''=>439,'('=>333,')'=>333,'*'=>500,'+'=>549,
9
+    ','=>250,'-'=>549,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>278,';'=>278,'<'=>549,'='=>549,'>'=>549,'?'=>444,'@'=>549,'A'=>722,
10
+    'B'=>667,'C'=>722,'D'=>612,'E'=>611,'F'=>763,'G'=>603,'H'=>722,'I'=>333,'J'=>631,'K'=>722,'L'=>686,'M'=>889,'N'=>722,'O'=>722,'P'=>768,'Q'=>741,'R'=>556,'S'=>592,'T'=>611,'U'=>690,'V'=>439,'W'=>768,
11
+    'X'=>645,'Y'=>795,'Z'=>611,'['=>333,'\\'=>863,']'=>333,'^'=>658,'_'=>500,'`'=>500,'a'=>631,'b'=>549,'c'=>549,'d'=>494,'e'=>439,'f'=>521,'g'=>411,'h'=>603,'i'=>329,'j'=>603,'k'=>549,'l'=>549,'m'=>576,
12
+    'n'=>521,'o'=>549,'p'=>549,'q'=>521,'r'=>549,'s'=>603,'t'=>439,'u'=>576,'v'=>713,'w'=>686,'x'=>493,'y'=>686,'z'=>494,'{'=>480,'|'=>200,'}'=>480,'~'=>549,chr(127)=>0,chr(128)=>0,chr(129)=>0,chr(130)=>0,chr(131)=>0,
13
+    chr(132)=>0,chr(133)=>0,chr(134)=>0,chr(135)=>0,chr(136)=>0,chr(137)=>0,chr(138)=>0,chr(139)=>0,chr(140)=>0,chr(141)=>0,chr(142)=>0,chr(143)=>0,chr(144)=>0,chr(145)=>0,chr(146)=>0,chr(147)=>0,chr(148)=>0,chr(149)=>0,chr(150)=>0,chr(151)=>0,chr(152)=>0,chr(153)=>0,
14
+    chr(154)=>0,chr(155)=>0,chr(156)=>0,chr(157)=>0,chr(158)=>0,chr(159)=>0,chr(160)=>750,chr(161)=>620,chr(162)=>247,chr(163)=>549,chr(164)=>167,chr(165)=>713,chr(166)=>500,chr(167)=>753,chr(168)=>753,chr(169)=>753,chr(170)=>753,chr(171)=>1042,chr(172)=>987,chr(173)=>603,chr(174)=>987,chr(175)=>603,
15
+    chr(176)=>400,chr(177)=>549,chr(178)=>411,chr(179)=>549,chr(180)=>549,chr(181)=>713,chr(182)=>494,chr(183)=>460,chr(184)=>549,chr(185)=>549,chr(186)=>549,chr(187)=>549,chr(188)=>1000,chr(189)=>603,chr(190)=>1000,chr(191)=>658,chr(192)=>823,chr(193)=>686,chr(194)=>795,chr(195)=>987,chr(196)=>768,chr(197)=>768,
16
+    chr(198)=>823,chr(199)=>768,chr(200)=>768,chr(201)=>713,chr(202)=>713,chr(203)=>713,chr(204)=>713,chr(205)=>713,chr(206)=>713,chr(207)=>713,chr(208)=>768,chr(209)=>713,chr(210)=>790,chr(211)=>790,chr(212)=>890,chr(213)=>823,chr(214)=>549,chr(215)=>250,chr(216)=>713,chr(217)=>603,chr(218)=>603,chr(219)=>1042,
17
+    chr(220)=>987,chr(221)=>603,chr(222)=>987,chr(223)=>603,chr(224)=>494,chr(225)=>329,chr(226)=>790,chr(227)=>790,chr(228)=>786,chr(229)=>713,chr(230)=>384,chr(231)=>384,chr(232)=>384,chr(233)=>384,chr(234)=>384,chr(235)=>384,chr(236)=>494,chr(237)=>494,chr(238)=>494,chr(239)=>494,chr(240)=>0,chr(241)=>329,
18
+    chr(242)=>274,chr(243)=>686,chr(244)=>686,chr(245)=>686,chr(246)=>384,chr(247)=>384,chr(248)=>384,chr(249)=>384,chr(250)=>384,chr(251)=>384,chr(252)=>494,chr(253)=>494,chr(254)=>494,chr(255)=>0);
19 19
 ?>
Please login to merge, or discard this patch.
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -4,16 +4,16 @@
 block discarded – undo
4 4
 $up = -100;
5 5
 $ut = 50;
6 6
 $cw = array(
7
-	chr(0)=>250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250,
8
-	chr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>333,'"'=>713,'#'=>500,'$'=>549,'%'=>833,'&'=>778,'\''=>439,'('=>333,')'=>333,'*'=>500,'+'=>549,
9
-	','=>250,'-'=>549,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>278,';'=>278,'<'=>549,'='=>549,'>'=>549,'?'=>444,'@'=>549,'A'=>722,
10
-	'B'=>667,'C'=>722,'D'=>612,'E'=>611,'F'=>763,'G'=>603,'H'=>722,'I'=>333,'J'=>631,'K'=>722,'L'=>686,'M'=>889,'N'=>722,'O'=>722,'P'=>768,'Q'=>741,'R'=>556,'S'=>592,'T'=>611,'U'=>690,'V'=>439,'W'=>768,
11
-	'X'=>645,'Y'=>795,'Z'=>611,'['=>333,'\\'=>863,']'=>333,'^'=>658,'_'=>500,'`'=>500,'a'=>631,'b'=>549,'c'=>549,'d'=>494,'e'=>439,'f'=>521,'g'=>411,'h'=>603,'i'=>329,'j'=>603,'k'=>549,'l'=>549,'m'=>576,
12
-	'n'=>521,'o'=>549,'p'=>549,'q'=>521,'r'=>549,'s'=>603,'t'=>439,'u'=>576,'v'=>713,'w'=>686,'x'=>493,'y'=>686,'z'=>494,'{'=>480,'|'=>200,'}'=>480,'~'=>549,chr(127)=>0,chr(128)=>0,chr(129)=>0,chr(130)=>0,chr(131)=>0,
13
-	chr(132)=>0,chr(133)=>0,chr(134)=>0,chr(135)=>0,chr(136)=>0,chr(137)=>0,chr(138)=>0,chr(139)=>0,chr(140)=>0,chr(141)=>0,chr(142)=>0,chr(143)=>0,chr(144)=>0,chr(145)=>0,chr(146)=>0,chr(147)=>0,chr(148)=>0,chr(149)=>0,chr(150)=>0,chr(151)=>0,chr(152)=>0,chr(153)=>0,
14
-	chr(154)=>0,chr(155)=>0,chr(156)=>0,chr(157)=>0,chr(158)=>0,chr(159)=>0,chr(160)=>750,chr(161)=>620,chr(162)=>247,chr(163)=>549,chr(164)=>167,chr(165)=>713,chr(166)=>500,chr(167)=>753,chr(168)=>753,chr(169)=>753,chr(170)=>753,chr(171)=>1042,chr(172)=>987,chr(173)=>603,chr(174)=>987,chr(175)=>603,
15
-	chr(176)=>400,chr(177)=>549,chr(178)=>411,chr(179)=>549,chr(180)=>549,chr(181)=>713,chr(182)=>494,chr(183)=>460,chr(184)=>549,chr(185)=>549,chr(186)=>549,chr(187)=>549,chr(188)=>1000,chr(189)=>603,chr(190)=>1000,chr(191)=>658,chr(192)=>823,chr(193)=>686,chr(194)=>795,chr(195)=>987,chr(196)=>768,chr(197)=>768,
16
-	chr(198)=>823,chr(199)=>768,chr(200)=>768,chr(201)=>713,chr(202)=>713,chr(203)=>713,chr(204)=>713,chr(205)=>713,chr(206)=>713,chr(207)=>713,chr(208)=>768,chr(209)=>713,chr(210)=>790,chr(211)=>790,chr(212)=>890,chr(213)=>823,chr(214)=>549,chr(215)=>250,chr(216)=>713,chr(217)=>603,chr(218)=>603,chr(219)=>1042,
17
-	chr(220)=>987,chr(221)=>603,chr(222)=>987,chr(223)=>603,chr(224)=>494,chr(225)=>329,chr(226)=>790,chr(227)=>790,chr(228)=>786,chr(229)=>713,chr(230)=>384,chr(231)=>384,chr(232)=>384,chr(233)=>384,chr(234)=>384,chr(235)=>384,chr(236)=>494,chr(237)=>494,chr(238)=>494,chr(239)=>494,chr(240)=>0,chr(241)=>329,
18
-	chr(242)=>274,chr(243)=>686,chr(244)=>686,chr(245)=>686,chr(246)=>384,chr(247)=>384,chr(248)=>384,chr(249)=>384,chr(250)=>384,chr(251)=>384,chr(252)=>494,chr(253)=>494,chr(254)=>494,chr(255)=>0);
7
+	chr(0)=>250, chr(1)=>250, chr(2)=>250, chr(3)=>250, chr(4)=>250, chr(5)=>250, chr(6)=>250, chr(7)=>250, chr(8)=>250, chr(9)=>250, chr(10)=>250, chr(11)=>250, chr(12)=>250, chr(13)=>250, chr(14)=>250, chr(15)=>250, chr(16)=>250, chr(17)=>250, chr(18)=>250, chr(19)=>250, chr(20)=>250, chr(21)=>250,
8
+	chr(22)=>250, chr(23)=>250, chr(24)=>250, chr(25)=>250, chr(26)=>250, chr(27)=>250, chr(28)=>250, chr(29)=>250, chr(30)=>250, chr(31)=>250, ' '=>250, '!'=>333, '"'=>713, '#'=>500, '$'=>549, '%'=>833, '&'=>778, '\''=>439, '('=>333, ')'=>333, '*'=>500, '+'=>549,
9
+	','=>250, '-'=>549, '.'=>250, '/'=>278, '0'=>500, '1'=>500, '2'=>500, '3'=>500, '4'=>500, '5'=>500, '6'=>500, '7'=>500, '8'=>500, '9'=>500, ':'=>278, ';'=>278, '<'=>549, '='=>549, '>'=>549, '?'=>444, '@'=>549, 'A'=>722,
10
+	'B'=>667, 'C'=>722, 'D'=>612, 'E'=>611, 'F'=>763, 'G'=>603, 'H'=>722, 'I'=>333, 'J'=>631, 'K'=>722, 'L'=>686, 'M'=>889, 'N'=>722, 'O'=>722, 'P'=>768, 'Q'=>741, 'R'=>556, 'S'=>592, 'T'=>611, 'U'=>690, 'V'=>439, 'W'=>768,
11
+	'X'=>645, 'Y'=>795, 'Z'=>611, '['=>333, '\\'=>863, ']'=>333, '^'=>658, '_'=>500, '`'=>500, 'a'=>631, 'b'=>549, 'c'=>549, 'd'=>494, 'e'=>439, 'f'=>521, 'g'=>411, 'h'=>603, 'i'=>329, 'j'=>603, 'k'=>549, 'l'=>549, 'm'=>576,
12
+	'n'=>521, 'o'=>549, 'p'=>549, 'q'=>521, 'r'=>549, 's'=>603, 't'=>439, 'u'=>576, 'v'=>713, 'w'=>686, 'x'=>493, 'y'=>686, 'z'=>494, '{'=>480, '|'=>200, '}'=>480, '~'=>549, chr(127)=>0, chr(128)=>0, chr(129)=>0, chr(130)=>0, chr(131)=>0,
13
+	chr(132)=>0, chr(133)=>0, chr(134)=>0, chr(135)=>0, chr(136)=>0, chr(137)=>0, chr(138)=>0, chr(139)=>0, chr(140)=>0, chr(141)=>0, chr(142)=>0, chr(143)=>0, chr(144)=>0, chr(145)=>0, chr(146)=>0, chr(147)=>0, chr(148)=>0, chr(149)=>0, chr(150)=>0, chr(151)=>0, chr(152)=>0, chr(153)=>0,
14
+	chr(154)=>0, chr(155)=>0, chr(156)=>0, chr(157)=>0, chr(158)=>0, chr(159)=>0, chr(160)=>750, chr(161)=>620, chr(162)=>247, chr(163)=>549, chr(164)=>167, chr(165)=>713, chr(166)=>500, chr(167)=>753, chr(168)=>753, chr(169)=>753, chr(170)=>753, chr(171)=>1042, chr(172)=>987, chr(173)=>603, chr(174)=>987, chr(175)=>603,
15
+	chr(176)=>400, chr(177)=>549, chr(178)=>411, chr(179)=>549, chr(180)=>549, chr(181)=>713, chr(182)=>494, chr(183)=>460, chr(184)=>549, chr(185)=>549, chr(186)=>549, chr(187)=>549, chr(188)=>1000, chr(189)=>603, chr(190)=>1000, chr(191)=>658, chr(192)=>823, chr(193)=>686, chr(194)=>795, chr(195)=>987, chr(196)=>768, chr(197)=>768,
16
+	chr(198)=>823, chr(199)=>768, chr(200)=>768, chr(201)=>713, chr(202)=>713, chr(203)=>713, chr(204)=>713, chr(205)=>713, chr(206)=>713, chr(207)=>713, chr(208)=>768, chr(209)=>713, chr(210)=>790, chr(211)=>790, chr(212)=>890, chr(213)=>823, chr(214)=>549, chr(215)=>250, chr(216)=>713, chr(217)=>603, chr(218)=>603, chr(219)=>1042,
17
+	chr(220)=>987, chr(221)=>603, chr(222)=>987, chr(223)=>603, chr(224)=>494, chr(225)=>329, chr(226)=>790, chr(227)=>790, chr(228)=>786, chr(229)=>713, chr(230)=>384, chr(231)=>384, chr(232)=>384, chr(233)=>384, chr(234)=>384, chr(235)=>384, chr(236)=>494, chr(237)=>494, chr(238)=>494, chr(239)=>494, chr(240)=>0, chr(241)=>329,
18
+	chr(242)=>274, chr(243)=>686, chr(244)=>686, chr(245)=>686, chr(246)=>384, chr(247)=>384, chr(248)=>384, chr(249)=>384, chr(250)=>384, chr(251)=>384, chr(252)=>494, chr(253)=>494, chr(254)=>494, chr(255)=>0);
19 19
 ?>
Please login to merge, or discard this patch.
includes/libraries/Pdf/Tfpdf/font/times.php 2 patches
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -4,16 +4,16 @@
 block discarded – undo
4 4
 $up = -100;
5 5
 $ut = 50;
6 6
 $cw = array(
7
-	chr(0)=>250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250,
8
-	chr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>333,'"'=>408,'#'=>500,'$'=>500,'%'=>833,'&'=>778,'\''=>180,'('=>333,')'=>333,'*'=>500,'+'=>564,
9
-	','=>250,'-'=>333,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>278,';'=>278,'<'=>564,'='=>564,'>'=>564,'?'=>444,'@'=>921,'A'=>722,
10
-	'B'=>667,'C'=>667,'D'=>722,'E'=>611,'F'=>556,'G'=>722,'H'=>722,'I'=>333,'J'=>389,'K'=>722,'L'=>611,'M'=>889,'N'=>722,'O'=>722,'P'=>556,'Q'=>722,'R'=>667,'S'=>556,'T'=>611,'U'=>722,'V'=>722,'W'=>944,
11
-	'X'=>722,'Y'=>722,'Z'=>611,'['=>333,'\\'=>278,']'=>333,'^'=>469,'_'=>500,'`'=>333,'a'=>444,'b'=>500,'c'=>444,'d'=>500,'e'=>444,'f'=>333,'g'=>500,'h'=>500,'i'=>278,'j'=>278,'k'=>500,'l'=>278,'m'=>778,
12
-	'n'=>500,'o'=>500,'p'=>500,'q'=>500,'r'=>333,'s'=>389,'t'=>278,'u'=>500,'v'=>500,'w'=>722,'x'=>500,'y'=>500,'z'=>444,'{'=>480,'|'=>200,'}'=>480,'~'=>541,chr(127)=>350,chr(128)=>500,chr(129)=>350,chr(130)=>333,chr(131)=>500,
13
-	chr(132)=>444,chr(133)=>1000,chr(134)=>500,chr(135)=>500,chr(136)=>333,chr(137)=>1000,chr(138)=>556,chr(139)=>333,chr(140)=>889,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>333,chr(146)=>333,chr(147)=>444,chr(148)=>444,chr(149)=>350,chr(150)=>500,chr(151)=>1000,chr(152)=>333,chr(153)=>980,
14
-	chr(154)=>389,chr(155)=>333,chr(156)=>722,chr(157)=>350,chr(158)=>444,chr(159)=>722,chr(160)=>250,chr(161)=>333,chr(162)=>500,chr(163)=>500,chr(164)=>500,chr(165)=>500,chr(166)=>200,chr(167)=>500,chr(168)=>333,chr(169)=>760,chr(170)=>276,chr(171)=>500,chr(172)=>564,chr(173)=>333,chr(174)=>760,chr(175)=>333,
15
-	chr(176)=>400,chr(177)=>564,chr(178)=>300,chr(179)=>300,chr(180)=>333,chr(181)=>500,chr(182)=>453,chr(183)=>250,chr(184)=>333,chr(185)=>300,chr(186)=>310,chr(187)=>500,chr(188)=>750,chr(189)=>750,chr(190)=>750,chr(191)=>444,chr(192)=>722,chr(193)=>722,chr(194)=>722,chr(195)=>722,chr(196)=>722,chr(197)=>722,
16
-	chr(198)=>889,chr(199)=>667,chr(200)=>611,chr(201)=>611,chr(202)=>611,chr(203)=>611,chr(204)=>333,chr(205)=>333,chr(206)=>333,chr(207)=>333,chr(208)=>722,chr(209)=>722,chr(210)=>722,chr(211)=>722,chr(212)=>722,chr(213)=>722,chr(214)=>722,chr(215)=>564,chr(216)=>722,chr(217)=>722,chr(218)=>722,chr(219)=>722,
17
-	chr(220)=>722,chr(221)=>722,chr(222)=>556,chr(223)=>500,chr(224)=>444,chr(225)=>444,chr(226)=>444,chr(227)=>444,chr(228)=>444,chr(229)=>444,chr(230)=>667,chr(231)=>444,chr(232)=>444,chr(233)=>444,chr(234)=>444,chr(235)=>444,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>500,chr(241)=>500,
18
-	chr(242)=>500,chr(243)=>500,chr(244)=>500,chr(245)=>500,chr(246)=>500,chr(247)=>564,chr(248)=>500,chr(249)=>500,chr(250)=>500,chr(251)=>500,chr(252)=>500,chr(253)=>500,chr(254)=>500,chr(255)=>500);
7
+    chr(0)=>250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250,
8
+    chr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>333,'"'=>408,'#'=>500,'$'=>500,'%'=>833,'&'=>778,'\''=>180,'('=>333,')'=>333,'*'=>500,'+'=>564,
9
+    ','=>250,'-'=>333,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>278,';'=>278,'<'=>564,'='=>564,'>'=>564,'?'=>444,'@'=>921,'A'=>722,
10
+    'B'=>667,'C'=>667,'D'=>722,'E'=>611,'F'=>556,'G'=>722,'H'=>722,'I'=>333,'J'=>389,'K'=>722,'L'=>611,'M'=>889,'N'=>722,'O'=>722,'P'=>556,'Q'=>722,'R'=>667,'S'=>556,'T'=>611,'U'=>722,'V'=>722,'W'=>944,
11
+    'X'=>722,'Y'=>722,'Z'=>611,'['=>333,'\\'=>278,']'=>333,'^'=>469,'_'=>500,'`'=>333,'a'=>444,'b'=>500,'c'=>444,'d'=>500,'e'=>444,'f'=>333,'g'=>500,'h'=>500,'i'=>278,'j'=>278,'k'=>500,'l'=>278,'m'=>778,
12
+    'n'=>500,'o'=>500,'p'=>500,'q'=>500,'r'=>333,'s'=>389,'t'=>278,'u'=>500,'v'=>500,'w'=>722,'x'=>500,'y'=>500,'z'=>444,'{'=>480,'|'=>200,'}'=>480,'~'=>541,chr(127)=>350,chr(128)=>500,chr(129)=>350,chr(130)=>333,chr(131)=>500,
13
+    chr(132)=>444,chr(133)=>1000,chr(134)=>500,chr(135)=>500,chr(136)=>333,chr(137)=>1000,chr(138)=>556,chr(139)=>333,chr(140)=>889,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>333,chr(146)=>333,chr(147)=>444,chr(148)=>444,chr(149)=>350,chr(150)=>500,chr(151)=>1000,chr(152)=>333,chr(153)=>980,
14
+    chr(154)=>389,chr(155)=>333,chr(156)=>722,chr(157)=>350,chr(158)=>444,chr(159)=>722,chr(160)=>250,chr(161)=>333,chr(162)=>500,chr(163)=>500,chr(164)=>500,chr(165)=>500,chr(166)=>200,chr(167)=>500,chr(168)=>333,chr(169)=>760,chr(170)=>276,chr(171)=>500,chr(172)=>564,chr(173)=>333,chr(174)=>760,chr(175)=>333,
15
+    chr(176)=>400,chr(177)=>564,chr(178)=>300,chr(179)=>300,chr(180)=>333,chr(181)=>500,chr(182)=>453,chr(183)=>250,chr(184)=>333,chr(185)=>300,chr(186)=>310,chr(187)=>500,chr(188)=>750,chr(189)=>750,chr(190)=>750,chr(191)=>444,chr(192)=>722,chr(193)=>722,chr(194)=>722,chr(195)=>722,chr(196)=>722,chr(197)=>722,
16
+    chr(198)=>889,chr(199)=>667,chr(200)=>611,chr(201)=>611,chr(202)=>611,chr(203)=>611,chr(204)=>333,chr(205)=>333,chr(206)=>333,chr(207)=>333,chr(208)=>722,chr(209)=>722,chr(210)=>722,chr(211)=>722,chr(212)=>722,chr(213)=>722,chr(214)=>722,chr(215)=>564,chr(216)=>722,chr(217)=>722,chr(218)=>722,chr(219)=>722,
17
+    chr(220)=>722,chr(221)=>722,chr(222)=>556,chr(223)=>500,chr(224)=>444,chr(225)=>444,chr(226)=>444,chr(227)=>444,chr(228)=>444,chr(229)=>444,chr(230)=>667,chr(231)=>444,chr(232)=>444,chr(233)=>444,chr(234)=>444,chr(235)=>444,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>500,chr(241)=>500,
18
+    chr(242)=>500,chr(243)=>500,chr(244)=>500,chr(245)=>500,chr(246)=>500,chr(247)=>564,chr(248)=>500,chr(249)=>500,chr(250)=>500,chr(251)=>500,chr(252)=>500,chr(253)=>500,chr(254)=>500,chr(255)=>500);
19 19
 ?>
Please login to merge, or discard this patch.
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -4,16 +4,16 @@
 block discarded – undo
4 4
 $up = -100;
5 5
 $ut = 50;
6 6
 $cw = array(
7
-	chr(0)=>250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250,
8
-	chr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>333,'"'=>408,'#'=>500,'$'=>500,'%'=>833,'&'=>778,'\''=>180,'('=>333,')'=>333,'*'=>500,'+'=>564,
9
-	','=>250,'-'=>333,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>278,';'=>278,'<'=>564,'='=>564,'>'=>564,'?'=>444,'@'=>921,'A'=>722,
10
-	'B'=>667,'C'=>667,'D'=>722,'E'=>611,'F'=>556,'G'=>722,'H'=>722,'I'=>333,'J'=>389,'K'=>722,'L'=>611,'M'=>889,'N'=>722,'O'=>722,'P'=>556,'Q'=>722,'R'=>667,'S'=>556,'T'=>611,'U'=>722,'V'=>722,'W'=>944,
11
-	'X'=>722,'Y'=>722,'Z'=>611,'['=>333,'\\'=>278,']'=>333,'^'=>469,'_'=>500,'`'=>333,'a'=>444,'b'=>500,'c'=>444,'d'=>500,'e'=>444,'f'=>333,'g'=>500,'h'=>500,'i'=>278,'j'=>278,'k'=>500,'l'=>278,'m'=>778,
12
-	'n'=>500,'o'=>500,'p'=>500,'q'=>500,'r'=>333,'s'=>389,'t'=>278,'u'=>500,'v'=>500,'w'=>722,'x'=>500,'y'=>500,'z'=>444,'{'=>480,'|'=>200,'}'=>480,'~'=>541,chr(127)=>350,chr(128)=>500,chr(129)=>350,chr(130)=>333,chr(131)=>500,
13
-	chr(132)=>444,chr(133)=>1000,chr(134)=>500,chr(135)=>500,chr(136)=>333,chr(137)=>1000,chr(138)=>556,chr(139)=>333,chr(140)=>889,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>333,chr(146)=>333,chr(147)=>444,chr(148)=>444,chr(149)=>350,chr(150)=>500,chr(151)=>1000,chr(152)=>333,chr(153)=>980,
14
-	chr(154)=>389,chr(155)=>333,chr(156)=>722,chr(157)=>350,chr(158)=>444,chr(159)=>722,chr(160)=>250,chr(161)=>333,chr(162)=>500,chr(163)=>500,chr(164)=>500,chr(165)=>500,chr(166)=>200,chr(167)=>500,chr(168)=>333,chr(169)=>760,chr(170)=>276,chr(171)=>500,chr(172)=>564,chr(173)=>333,chr(174)=>760,chr(175)=>333,
15
-	chr(176)=>400,chr(177)=>564,chr(178)=>300,chr(179)=>300,chr(180)=>333,chr(181)=>500,chr(182)=>453,chr(183)=>250,chr(184)=>333,chr(185)=>300,chr(186)=>310,chr(187)=>500,chr(188)=>750,chr(189)=>750,chr(190)=>750,chr(191)=>444,chr(192)=>722,chr(193)=>722,chr(194)=>722,chr(195)=>722,chr(196)=>722,chr(197)=>722,
16
-	chr(198)=>889,chr(199)=>667,chr(200)=>611,chr(201)=>611,chr(202)=>611,chr(203)=>611,chr(204)=>333,chr(205)=>333,chr(206)=>333,chr(207)=>333,chr(208)=>722,chr(209)=>722,chr(210)=>722,chr(211)=>722,chr(212)=>722,chr(213)=>722,chr(214)=>722,chr(215)=>564,chr(216)=>722,chr(217)=>722,chr(218)=>722,chr(219)=>722,
17
-	chr(220)=>722,chr(221)=>722,chr(222)=>556,chr(223)=>500,chr(224)=>444,chr(225)=>444,chr(226)=>444,chr(227)=>444,chr(228)=>444,chr(229)=>444,chr(230)=>667,chr(231)=>444,chr(232)=>444,chr(233)=>444,chr(234)=>444,chr(235)=>444,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>500,chr(241)=>500,
18
-	chr(242)=>500,chr(243)=>500,chr(244)=>500,chr(245)=>500,chr(246)=>500,chr(247)=>564,chr(248)=>500,chr(249)=>500,chr(250)=>500,chr(251)=>500,chr(252)=>500,chr(253)=>500,chr(254)=>500,chr(255)=>500);
7
+	chr(0)=>250, chr(1)=>250, chr(2)=>250, chr(3)=>250, chr(4)=>250, chr(5)=>250, chr(6)=>250, chr(7)=>250, chr(8)=>250, chr(9)=>250, chr(10)=>250, chr(11)=>250, chr(12)=>250, chr(13)=>250, chr(14)=>250, chr(15)=>250, chr(16)=>250, chr(17)=>250, chr(18)=>250, chr(19)=>250, chr(20)=>250, chr(21)=>250,
8
+	chr(22)=>250, chr(23)=>250, chr(24)=>250, chr(25)=>250, chr(26)=>250, chr(27)=>250, chr(28)=>250, chr(29)=>250, chr(30)=>250, chr(31)=>250, ' '=>250, '!'=>333, '"'=>408, '#'=>500, '$'=>500, '%'=>833, '&'=>778, '\''=>180, '('=>333, ')'=>333, '*'=>500, '+'=>564,
9
+	','=>250, '-'=>333, '.'=>250, '/'=>278, '0'=>500, '1'=>500, '2'=>500, '3'=>500, '4'=>500, '5'=>500, '6'=>500, '7'=>500, '8'=>500, '9'=>500, ':'=>278, ';'=>278, '<'=>564, '='=>564, '>'=>564, '?'=>444, '@'=>921, 'A'=>722,
10
+	'B'=>667, 'C'=>667, 'D'=>722, 'E'=>611, 'F'=>556, 'G'=>722, 'H'=>722, 'I'=>333, 'J'=>389, 'K'=>722, 'L'=>611, 'M'=>889, 'N'=>722, 'O'=>722, 'P'=>556, 'Q'=>722, 'R'=>667, 'S'=>556, 'T'=>611, 'U'=>722, 'V'=>722, 'W'=>944,
11
+	'X'=>722, 'Y'=>722, 'Z'=>611, '['=>333, '\\'=>278, ']'=>333, '^'=>469, '_'=>500, '`'=>333, 'a'=>444, 'b'=>500, 'c'=>444, 'd'=>500, 'e'=>444, 'f'=>333, 'g'=>500, 'h'=>500, 'i'=>278, 'j'=>278, 'k'=>500, 'l'=>278, 'm'=>778,
12
+	'n'=>500, 'o'=>500, 'p'=>500, 'q'=>500, 'r'=>333, 's'=>389, 't'=>278, 'u'=>500, 'v'=>500, 'w'=>722, 'x'=>500, 'y'=>500, 'z'=>444, '{'=>480, '|'=>200, '}'=>480, '~'=>541, chr(127)=>350, chr(128)=>500, chr(129)=>350, chr(130)=>333, chr(131)=>500,
13
+	chr(132)=>444, chr(133)=>1000, chr(134)=>500, chr(135)=>500, chr(136)=>333, chr(137)=>1000, chr(138)=>556, chr(139)=>333, chr(140)=>889, chr(141)=>350, chr(142)=>611, chr(143)=>350, chr(144)=>350, chr(145)=>333, chr(146)=>333, chr(147)=>444, chr(148)=>444, chr(149)=>350, chr(150)=>500, chr(151)=>1000, chr(152)=>333, chr(153)=>980,
14
+	chr(154)=>389, chr(155)=>333, chr(156)=>722, chr(157)=>350, chr(158)=>444, chr(159)=>722, chr(160)=>250, chr(161)=>333, chr(162)=>500, chr(163)=>500, chr(164)=>500, chr(165)=>500, chr(166)=>200, chr(167)=>500, chr(168)=>333, chr(169)=>760, chr(170)=>276, chr(171)=>500, chr(172)=>564, chr(173)=>333, chr(174)=>760, chr(175)=>333,
15
+	chr(176)=>400, chr(177)=>564, chr(178)=>300, chr(179)=>300, chr(180)=>333, chr(181)=>500, chr(182)=>453, chr(183)=>250, chr(184)=>333, chr(185)=>300, chr(186)=>310, chr(187)=>500, chr(188)=>750, chr(189)=>750, chr(190)=>750, chr(191)=>444, chr(192)=>722, chr(193)=>722, chr(194)=>722, chr(195)=>722, chr(196)=>722, chr(197)=>722,
16
+	chr(198)=>889, chr(199)=>667, chr(200)=>611, chr(201)=>611, chr(202)=>611, chr(203)=>611, chr(204)=>333, chr(205)=>333, chr(206)=>333, chr(207)=>333, chr(208)=>722, chr(209)=>722, chr(210)=>722, chr(211)=>722, chr(212)=>722, chr(213)=>722, chr(214)=>722, chr(215)=>564, chr(216)=>722, chr(217)=>722, chr(218)=>722, chr(219)=>722,
17
+	chr(220)=>722, chr(221)=>722, chr(222)=>556, chr(223)=>500, chr(224)=>444, chr(225)=>444, chr(226)=>444, chr(227)=>444, chr(228)=>444, chr(229)=>444, chr(230)=>667, chr(231)=>444, chr(232)=>444, chr(233)=>444, chr(234)=>444, chr(235)=>444, chr(236)=>278, chr(237)=>278, chr(238)=>278, chr(239)=>278, chr(240)=>500, chr(241)=>500,
18
+	chr(242)=>500, chr(243)=>500, chr(244)=>500, chr(245)=>500, chr(246)=>500, chr(247)=>564, chr(248)=>500, chr(249)=>500, chr(250)=>500, chr(251)=>500, chr(252)=>500, chr(253)=>500, chr(254)=>500, chr(255)=>500);
19 19
 ?>
Please login to merge, or discard this patch.
includes/libraries/Pdf/Tfpdf/font/timesbi.php 2 patches
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -4,16 +4,16 @@
 block discarded – undo
4 4
 $up = -100;
5 5
 $ut = 50;
6 6
 $cw = array(
7
-	chr(0)=>250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250,
8
-	chr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>389,'"'=>555,'#'=>500,'$'=>500,'%'=>833,'&'=>778,'\''=>278,'('=>333,')'=>333,'*'=>500,'+'=>570,
9
-	','=>250,'-'=>333,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>333,';'=>333,'<'=>570,'='=>570,'>'=>570,'?'=>500,'@'=>832,'A'=>667,
10
-	'B'=>667,'C'=>667,'D'=>722,'E'=>667,'F'=>667,'G'=>722,'H'=>778,'I'=>389,'J'=>500,'K'=>667,'L'=>611,'M'=>889,'N'=>722,'O'=>722,'P'=>611,'Q'=>722,'R'=>667,'S'=>556,'T'=>611,'U'=>722,'V'=>667,'W'=>889,
11
-	'X'=>667,'Y'=>611,'Z'=>611,'['=>333,'\\'=>278,']'=>333,'^'=>570,'_'=>500,'`'=>333,'a'=>500,'b'=>500,'c'=>444,'d'=>500,'e'=>444,'f'=>333,'g'=>500,'h'=>556,'i'=>278,'j'=>278,'k'=>500,'l'=>278,'m'=>778,
12
-	'n'=>556,'o'=>500,'p'=>500,'q'=>500,'r'=>389,'s'=>389,'t'=>278,'u'=>556,'v'=>444,'w'=>667,'x'=>500,'y'=>444,'z'=>389,'{'=>348,'|'=>220,'}'=>348,'~'=>570,chr(127)=>350,chr(128)=>500,chr(129)=>350,chr(130)=>333,chr(131)=>500,
13
-	chr(132)=>500,chr(133)=>1000,chr(134)=>500,chr(135)=>500,chr(136)=>333,chr(137)=>1000,chr(138)=>556,chr(139)=>333,chr(140)=>944,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>333,chr(146)=>333,chr(147)=>500,chr(148)=>500,chr(149)=>350,chr(150)=>500,chr(151)=>1000,chr(152)=>333,chr(153)=>1000,
14
-	chr(154)=>389,chr(155)=>333,chr(156)=>722,chr(157)=>350,chr(158)=>389,chr(159)=>611,chr(160)=>250,chr(161)=>389,chr(162)=>500,chr(163)=>500,chr(164)=>500,chr(165)=>500,chr(166)=>220,chr(167)=>500,chr(168)=>333,chr(169)=>747,chr(170)=>266,chr(171)=>500,chr(172)=>606,chr(173)=>333,chr(174)=>747,chr(175)=>333,
15
-	chr(176)=>400,chr(177)=>570,chr(178)=>300,chr(179)=>300,chr(180)=>333,chr(181)=>576,chr(182)=>500,chr(183)=>250,chr(184)=>333,chr(185)=>300,chr(186)=>300,chr(187)=>500,chr(188)=>750,chr(189)=>750,chr(190)=>750,chr(191)=>500,chr(192)=>667,chr(193)=>667,chr(194)=>667,chr(195)=>667,chr(196)=>667,chr(197)=>667,
16
-	chr(198)=>944,chr(199)=>667,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>389,chr(205)=>389,chr(206)=>389,chr(207)=>389,chr(208)=>722,chr(209)=>722,chr(210)=>722,chr(211)=>722,chr(212)=>722,chr(213)=>722,chr(214)=>722,chr(215)=>570,chr(216)=>722,chr(217)=>722,chr(218)=>722,chr(219)=>722,
17
-	chr(220)=>722,chr(221)=>611,chr(222)=>611,chr(223)=>500,chr(224)=>500,chr(225)=>500,chr(226)=>500,chr(227)=>500,chr(228)=>500,chr(229)=>500,chr(230)=>722,chr(231)=>444,chr(232)=>444,chr(233)=>444,chr(234)=>444,chr(235)=>444,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>500,chr(241)=>556,
18
-	chr(242)=>500,chr(243)=>500,chr(244)=>500,chr(245)=>500,chr(246)=>500,chr(247)=>570,chr(248)=>500,chr(249)=>556,chr(250)=>556,chr(251)=>556,chr(252)=>556,chr(253)=>444,chr(254)=>500,chr(255)=>444);
7
+    chr(0)=>250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250,
8
+    chr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>389,'"'=>555,'#'=>500,'$'=>500,'%'=>833,'&'=>778,'\''=>278,'('=>333,')'=>333,'*'=>500,'+'=>570,
9
+    ','=>250,'-'=>333,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>333,';'=>333,'<'=>570,'='=>570,'>'=>570,'?'=>500,'@'=>832,'A'=>667,
10
+    'B'=>667,'C'=>667,'D'=>722,'E'=>667,'F'=>667,'G'=>722,'H'=>778,'I'=>389,'J'=>500,'K'=>667,'L'=>611,'M'=>889,'N'=>722,'O'=>722,'P'=>611,'Q'=>722,'R'=>667,'S'=>556,'T'=>611,'U'=>722,'V'=>667,'W'=>889,
11
+    'X'=>667,'Y'=>611,'Z'=>611,'['=>333,'\\'=>278,']'=>333,'^'=>570,'_'=>500,'`'=>333,'a'=>500,'b'=>500,'c'=>444,'d'=>500,'e'=>444,'f'=>333,'g'=>500,'h'=>556,'i'=>278,'j'=>278,'k'=>500,'l'=>278,'m'=>778,
12
+    'n'=>556,'o'=>500,'p'=>500,'q'=>500,'r'=>389,'s'=>389,'t'=>278,'u'=>556,'v'=>444,'w'=>667,'x'=>500,'y'=>444,'z'=>389,'{'=>348,'|'=>220,'}'=>348,'~'=>570,chr(127)=>350,chr(128)=>500,chr(129)=>350,chr(130)=>333,chr(131)=>500,
13
+    chr(132)=>500,chr(133)=>1000,chr(134)=>500,chr(135)=>500,chr(136)=>333,chr(137)=>1000,chr(138)=>556,chr(139)=>333,chr(140)=>944,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>333,chr(146)=>333,chr(147)=>500,chr(148)=>500,chr(149)=>350,chr(150)=>500,chr(151)=>1000,chr(152)=>333,chr(153)=>1000,
14
+    chr(154)=>389,chr(155)=>333,chr(156)=>722,chr(157)=>350,chr(158)=>389,chr(159)=>611,chr(160)=>250,chr(161)=>389,chr(162)=>500,chr(163)=>500,chr(164)=>500,chr(165)=>500,chr(166)=>220,chr(167)=>500,chr(168)=>333,chr(169)=>747,chr(170)=>266,chr(171)=>500,chr(172)=>606,chr(173)=>333,chr(174)=>747,chr(175)=>333,
15
+    chr(176)=>400,chr(177)=>570,chr(178)=>300,chr(179)=>300,chr(180)=>333,chr(181)=>576,chr(182)=>500,chr(183)=>250,chr(184)=>333,chr(185)=>300,chr(186)=>300,chr(187)=>500,chr(188)=>750,chr(189)=>750,chr(190)=>750,chr(191)=>500,chr(192)=>667,chr(193)=>667,chr(194)=>667,chr(195)=>667,chr(196)=>667,chr(197)=>667,
16
+    chr(198)=>944,chr(199)=>667,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>389,chr(205)=>389,chr(206)=>389,chr(207)=>389,chr(208)=>722,chr(209)=>722,chr(210)=>722,chr(211)=>722,chr(212)=>722,chr(213)=>722,chr(214)=>722,chr(215)=>570,chr(216)=>722,chr(217)=>722,chr(218)=>722,chr(219)=>722,
17
+    chr(220)=>722,chr(221)=>611,chr(222)=>611,chr(223)=>500,chr(224)=>500,chr(225)=>500,chr(226)=>500,chr(227)=>500,chr(228)=>500,chr(229)=>500,chr(230)=>722,chr(231)=>444,chr(232)=>444,chr(233)=>444,chr(234)=>444,chr(235)=>444,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>500,chr(241)=>556,
18
+    chr(242)=>500,chr(243)=>500,chr(244)=>500,chr(245)=>500,chr(246)=>500,chr(247)=>570,chr(248)=>500,chr(249)=>556,chr(250)=>556,chr(251)=>556,chr(252)=>556,chr(253)=>444,chr(254)=>500,chr(255)=>444);
19 19
 ?>
Please login to merge, or discard this patch.
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -4,16 +4,16 @@
 block discarded – undo
4 4
 $up = -100;
5 5
 $ut = 50;
6 6
 $cw = array(
7
-	chr(0)=>250,chr(1)=>250,chr(2)=>250,chr(3)=>250,chr(4)=>250,chr(5)=>250,chr(6)=>250,chr(7)=>250,chr(8)=>250,chr(9)=>250,chr(10)=>250,chr(11)=>250,chr(12)=>250,chr(13)=>250,chr(14)=>250,chr(15)=>250,chr(16)=>250,chr(17)=>250,chr(18)=>250,chr(19)=>250,chr(20)=>250,chr(21)=>250,
8
-	chr(22)=>250,chr(23)=>250,chr(24)=>250,chr(25)=>250,chr(26)=>250,chr(27)=>250,chr(28)=>250,chr(29)=>250,chr(30)=>250,chr(31)=>250,' '=>250,'!'=>389,'"'=>555,'#'=>500,'$'=>500,'%'=>833,'&'=>778,'\''=>278,'('=>333,')'=>333,'*'=>500,'+'=>570,
9
-	','=>250,'-'=>333,'.'=>250,'/'=>278,'0'=>500,'1'=>500,'2'=>500,'3'=>500,'4'=>500,'5'=>500,'6'=>500,'7'=>500,'8'=>500,'9'=>500,':'=>333,';'=>333,'<'=>570,'='=>570,'>'=>570,'?'=>500,'@'=>832,'A'=>667,
10
-	'B'=>667,'C'=>667,'D'=>722,'E'=>667,'F'=>667,'G'=>722,'H'=>778,'I'=>389,'J'=>500,'K'=>667,'L'=>611,'M'=>889,'N'=>722,'O'=>722,'P'=>611,'Q'=>722,'R'=>667,'S'=>556,'T'=>611,'U'=>722,'V'=>667,'W'=>889,
11
-	'X'=>667,'Y'=>611,'Z'=>611,'['=>333,'\\'=>278,']'=>333,'^'=>570,'_'=>500,'`'=>333,'a'=>500,'b'=>500,'c'=>444,'d'=>500,'e'=>444,'f'=>333,'g'=>500,'h'=>556,'i'=>278,'j'=>278,'k'=>500,'l'=>278,'m'=>778,
12
-	'n'=>556,'o'=>500,'p'=>500,'q'=>500,'r'=>389,'s'=>389,'t'=>278,'u'=>556,'v'=>444,'w'=>667,'x'=>500,'y'=>444,'z'=>389,'{'=>348,'|'=>220,'}'=>348,'~'=>570,chr(127)=>350,chr(128)=>500,chr(129)=>350,chr(130)=>333,chr(131)=>500,
13
-	chr(132)=>500,chr(133)=>1000,chr(134)=>500,chr(135)=>500,chr(136)=>333,chr(137)=>1000,chr(138)=>556,chr(139)=>333,chr(140)=>944,chr(141)=>350,chr(142)=>611,chr(143)=>350,chr(144)=>350,chr(145)=>333,chr(146)=>333,chr(147)=>500,chr(148)=>500,chr(149)=>350,chr(150)=>500,chr(151)=>1000,chr(152)=>333,chr(153)=>1000,
14
-	chr(154)=>389,chr(155)=>333,chr(156)=>722,chr(157)=>350,chr(158)=>389,chr(159)=>611,chr(160)=>250,chr(161)=>389,chr(162)=>500,chr(163)=>500,chr(164)=>500,chr(165)=>500,chr(166)=>220,chr(167)=>500,chr(168)=>333,chr(169)=>747,chr(170)=>266,chr(171)=>500,chr(172)=>606,chr(173)=>333,chr(174)=>747,chr(175)=>333,
15
-	chr(176)=>400,chr(177)=>570,chr(178)=>300,chr(179)=>300,chr(180)=>333,chr(181)=>576,chr(182)=>500,chr(183)=>250,chr(184)=>333,chr(185)=>300,chr(186)=>300,chr(187)=>500,chr(188)=>750,chr(189)=>750,chr(190)=>750,chr(191)=>500,chr(192)=>667,chr(193)=>667,chr(194)=>667,chr(195)=>667,chr(196)=>667,chr(197)=>667,
16
-	chr(198)=>944,chr(199)=>667,chr(200)=>667,chr(201)=>667,chr(202)=>667,chr(203)=>667,chr(204)=>389,chr(205)=>389,chr(206)=>389,chr(207)=>389,chr(208)=>722,chr(209)=>722,chr(210)=>722,chr(211)=>722,chr(212)=>722,chr(213)=>722,chr(214)=>722,chr(215)=>570,chr(216)=>722,chr(217)=>722,chr(218)=>722,chr(219)=>722,
17
-	chr(220)=>722,chr(221)=>611,chr(222)=>611,chr(223)=>500,chr(224)=>500,chr(225)=>500,chr(226)=>500,chr(227)=>500,chr(228)=>500,chr(229)=>500,chr(230)=>722,chr(231)=>444,chr(232)=>444,chr(233)=>444,chr(234)=>444,chr(235)=>444,chr(236)=>278,chr(237)=>278,chr(238)=>278,chr(239)=>278,chr(240)=>500,chr(241)=>556,
18
-	chr(242)=>500,chr(243)=>500,chr(244)=>500,chr(245)=>500,chr(246)=>500,chr(247)=>570,chr(248)=>500,chr(249)=>556,chr(250)=>556,chr(251)=>556,chr(252)=>556,chr(253)=>444,chr(254)=>500,chr(255)=>444);
7
+	chr(0)=>250, chr(1)=>250, chr(2)=>250, chr(3)=>250, chr(4)=>250, chr(5)=>250, chr(6)=>250, chr(7)=>250, chr(8)=>250, chr(9)=>250, chr(10)=>250, chr(11)=>250, chr(12)=>250, chr(13)=>250, chr(14)=>250, chr(15)=>250, chr(16)=>250, chr(17)=>250, chr(18)=>250, chr(19)=>250, chr(20)=>250, chr(21)=>250,
8
+	chr(22)=>250, chr(23)=>250, chr(24)=>250, chr(25)=>250, chr(26)=>250, chr(27)=>250, chr(28)=>250, chr(29)=>250, chr(30)=>250, chr(31)=>250, ' '=>250, '!'=>389, '"'=>555, '#'=>500, '$'=>500, '%'=>833, '&'=>778, '\''=>278, '('=>333, ')'=>333, '*'=>500, '+'=>570,
9
+	','=>250, '-'=>333, '.'=>250, '/'=>278, '0'=>500, '1'=>500, '2'=>500, '3'=>500, '4'=>500, '5'=>500, '6'=>500, '7'=>500, '8'=>500, '9'=>500, ':'=>333, ';'=>333, '<'=>570, '='=>570, '>'=>570, '?'=>500, '@'=>832, 'A'=>667,
10
+	'B'=>667, 'C'=>667, 'D'=>722, 'E'=>667, 'F'=>667, 'G'=>722, 'H'=>778, 'I'=>389, 'J'=>500, 'K'=>667, 'L'=>611, 'M'=>889, 'N'=>722, 'O'=>722, 'P'=>611, 'Q'=>722, 'R'=>667, 'S'=>556, 'T'=>611, 'U'=>722, 'V'=>667, 'W'=>889,
11
+	'X'=>667, 'Y'=>611, 'Z'=>611, '['=>333, '\\'=>278, ']'=>333, '^'=>570, '_'=>500, '`'=>333, 'a'=>500, 'b'=>500, 'c'=>444, 'd'=>500, 'e'=>444, 'f'=>333, 'g'=>500, 'h'=>556, 'i'=>278, 'j'=>278, 'k'=>500, 'l'=>278, 'm'=>778,
12
+	'n'=>556, 'o'=>500, 'p'=>500, 'q'=>500, 'r'=>389, 's'=>389, 't'=>278, 'u'=>556, 'v'=>444, 'w'=>667, 'x'=>500, 'y'=>444, 'z'=>389, '{'=>348, '|'=>220, '}'=>348, '~'=>570, chr(127)=>350, chr(128)=>500, chr(129)=>350, chr(130)=>333, chr(131)=>500,
13
+	chr(132)=>500, chr(133)=>1000, chr(134)=>500, chr(135)=>500, chr(136)=>333, chr(137)=>1000, chr(138)=>556, chr(139)=>333, chr(140)=>944, chr(141)=>350, chr(142)=>611, chr(143)=>350, chr(144)=>350, chr(145)=>333, chr(146)=>333, chr(147)=>500, chr(148)=>500, chr(149)=>350, chr(150)=>500, chr(151)=>1000, chr(152)=>333, chr(153)=>1000,
14
+	chr(154)=>389, chr(155)=>333, chr(156)=>722, chr(157)=>350, chr(158)=>389, chr(159)=>611, chr(160)=>250, chr(161)=>389, chr(162)=>500, chr(163)=>500, chr(164)=>500, chr(165)=>500, chr(166)=>220, chr(167)=>500, chr(168)=>333, chr(169)=>747, chr(170)=>266, chr(171)=>500, chr(172)=>606, chr(173)=>333, chr(174)=>747, chr(175)=>333,
15
+	chr(176)=>400, chr(177)=>570, chr(178)=>300, chr(179)=>300, chr(180)=>333, chr(181)=>576, chr(182)=>500, chr(183)=>250, chr(184)=>333, chr(185)=>300, chr(186)=>300, chr(187)=>500, chr(188)=>750, chr(189)=>750, chr(190)=>750, chr(191)=>500, chr(192)=>667, chr(193)=>667, chr(194)=>667, chr(195)=>667, chr(196)=>667, chr(197)=>667,
16
+	chr(198)=>944, chr(199)=>667, chr(200)=>667, chr(201)=>667, chr(202)=>667, chr(203)=>667, chr(204)=>389, chr(205)=>389, chr(206)=>389, chr(207)=>389, chr(208)=>722, chr(209)=>722, chr(210)=>722, chr(211)=>722, chr(212)=>722, chr(213)=>722, chr(214)=>722, chr(215)=>570, chr(216)=>722, chr(217)=>722, chr(218)=>722, chr(219)=>722,
17
+	chr(220)=>722, chr(221)=>611, chr(222)=>611, chr(223)=>500, chr(224)=>500, chr(225)=>500, chr(226)=>500, chr(227)=>500, chr(228)=>500, chr(229)=>500, chr(230)=>722, chr(231)=>444, chr(232)=>444, chr(233)=>444, chr(234)=>444, chr(235)=>444, chr(236)=>278, chr(237)=>278, chr(238)=>278, chr(239)=>278, chr(240)=>500, chr(241)=>556,
18
+	chr(242)=>500, chr(243)=>500, chr(244)=>500, chr(245)=>500, chr(246)=>500, chr(247)=>570, chr(248)=>500, chr(249)=>556, chr(250)=>556, chr(251)=>556, chr(252)=>556, chr(253)=>444, chr(254)=>500, chr(255)=>444);
19 19
 ?>
Please login to merge, or discard this patch.
includes/libraries/Email/Phpmailer/class.phpmailer.php 1 patch
Spacing   +167 added lines, -168 removed lines patch added patch discarded remove patch
@@ -655,7 +655,7 @@  discard block
 block discarded – undo
655 655
     public function __construct($exceptions = null)
656 656
     {
657 657
         if ($exceptions !== null) {
658
-            $this->exceptions = (boolean)$exceptions;
658
+            $this->exceptions = (boolean) $exceptions;
659 659
         }
660 660
     }
661 661
 
@@ -734,11 +734,11 @@  discard block
 block discarded – undo
734 734
             default:
735 735
                 //Normalize line breaks
736 736
                 $str = preg_replace('/\r\n?/ms', "\n", $str);
737
-                echo gmdate('Y-m-d H:i:s') . "\t" . str_replace(
737
+                echo gmdate('Y-m-d H:i:s')."\t".str_replace(
738 738
                     "\n",
739 739
                     "\n                   \t                  ",
740 740
                     trim($str)
741
-                ) . "\n";
741
+                )."\n";
742 742
         }
743 743
     }
744 744
 
@@ -870,7 +870,7 @@  discard block
 block discarded – undo
870 870
         $name = trim(preg_replace('/[\r\n]+/', '', $name)); //Strip breaks and trim
871 871
         if (($pos = strrpos($address, '@')) === false) {
872 872
             // At-sign is misssing.
873
-            $error_message = $this->lang('invalid_address') . " (addAnAddress $kind): $address";
873
+            $error_message = $this->lang('invalid_address')." (addAnAddress $kind): $address";
874 874
             $this->setError($error_message);
875 875
             $this->edebug($error_message);
876 876
             if ($this->exceptions) {
@@ -911,7 +911,7 @@  discard block
 block discarded – undo
911 911
     protected function addAnAddress($kind, $address, $name = '')
912 912
     {
913 913
         if (!in_array($kind, array('to', 'cc', 'bcc', 'Reply-To'))) {
914
-            $error_message = $this->lang('Invalid recipient kind: ') . $kind;
914
+            $error_message = $this->lang('Invalid recipient kind: ').$kind;
915 915
             $this->setError($error_message);
916 916
             $this->edebug($error_message);
917 917
             if ($this->exceptions) {
@@ -920,7 +920,7 @@  discard block
 block discarded – undo
920 920
             return false;
921 921
         }
922 922
         if (!$this->validateAddress($address)) {
923
-            $error_message = $this->lang('invalid_address') . " (addAnAddress $kind): $address";
923
+            $error_message = $this->lang('invalid_address')." (addAnAddress $kind): $address";
924 924
             $this->setError($error_message);
925 925
             $this->edebug($error_message);
926 926
             if ($this->exceptions) {
@@ -961,10 +961,10 @@  discard block
 block discarded – undo
961 961
             $list = imap_rfc822_parse_adrlist($addrstr, '');
962 962
             foreach ($list as $address) {
963 963
                 if ($address->host != '.SYNTAX-ERROR.') {
964
-                    if ($this->validateAddress($address->mailbox . '@' . $address->host)) {
964
+                    if ($this->validateAddress($address->mailbox.'@'.$address->host)) {
965 965
                         $addresses[] = array(
966 966
                             'name' => (property_exists($address, 'personal') ? $address->personal : ''),
967
-                            'address' => $address->mailbox . '@' . $address->host
967
+                            'address' => $address->mailbox.'@'.$address->host
968 968
                         );
969 969
                     }
970 970
                 }
@@ -1014,7 +1014,7 @@  discard block
 block discarded – undo
1014 1014
         if (($pos = strrpos($address, '@')) === false or
1015 1015
             (!$this->has8bitChars(substr($address, ++$pos)) or !$this->idnSupported()) and
1016 1016
             !$this->validateAddress($address)) {
1017
-            $error_message = $this->lang('invalid_address') . " (setFrom) $address";
1017
+            $error_message = $this->lang('invalid_address')." (setFrom) $address";
1018 1018
             $this->setError($error_message);
1019 1019
             $this->edebug($error_message);
1020 1020
             if ($this->exceptions) {
@@ -1105,30 +1105,30 @@  discard block
 block discarded – undo
1105 1105
                  * @copyright 2009-2010 Michael Rushton
1106 1106
                  * Feel free to use and redistribute this code. But please keep this copyright notice.
1107 1107
                  */
1108
-                return (boolean)preg_match(
1109
-                    '/^(?!(?>(?1)"?(?>\\\[ -~]|[^"])"?(?1)){255,})(?!(?>(?1)"?(?>\\\[ -~]|[^"])"?(?1)){65,}@)' .
1110
-                    '((?>(?>(?>((?>(?>(?>\x0D\x0A)?[\t ])+|(?>[\t ]*\x0D\x0A)?[\t ]+)?)(\((?>(?2)' .
1111
-                    '(?>[\x01-\x08\x0B\x0C\x0E-\'*-\[\]-\x7F]|\\\[\x00-\x7F]|(?3)))*(?2)\)))+(?2))|(?2))?)' .
1112
-                    '([!#-\'*+\/-9=?^-~-]+|"(?>(?2)(?>[\x01-\x08\x0B\x0C\x0E-!#-\[\]-\x7F]|\\\[\x00-\x7F]))*' .
1113
-                    '(?2)")(?>(?1)\.(?1)(?4))*(?1)@(?!(?1)[a-z0-9-]{64,})(?1)(?>([a-z0-9](?>[a-z0-9-]*[a-z0-9])?)' .
1114
-                    '(?>(?1)\.(?!(?1)[a-z0-9-]{64,})(?1)(?5)){0,126}|\[(?:(?>IPv6:(?>([a-f0-9]{1,4})(?>:(?6)){7}' .
1115
-                    '|(?!(?:.*[a-f0-9][:\]]){8,})((?6)(?>:(?6)){0,6})?::(?7)?))|(?>(?>IPv6:(?>(?6)(?>:(?6)){5}:' .
1116
-                    '|(?!(?:.*[a-f0-9]:){6,})(?8)?::(?>((?6)(?>:(?6)){0,4}):)?))?(25[0-5]|2[0-4][0-9]|1[0-9]{2}' .
1108
+                return (boolean) preg_match(
1109
+                    '/^(?!(?>(?1)"?(?>\\\[ -~]|[^"])"?(?1)){255,})(?!(?>(?1)"?(?>\\\[ -~]|[^"])"?(?1)){65,}@)'.
1110
+                    '((?>(?>(?>((?>(?>(?>\x0D\x0A)?[\t ])+|(?>[\t ]*\x0D\x0A)?[\t ]+)?)(\((?>(?2)'.
1111
+                    '(?>[\x01-\x08\x0B\x0C\x0E-\'*-\[\]-\x7F]|\\\[\x00-\x7F]|(?3)))*(?2)\)))+(?2))|(?2))?)'.
1112
+                    '([!#-\'*+\/-9=?^-~-]+|"(?>(?2)(?>[\x01-\x08\x0B\x0C\x0E-!#-\[\]-\x7F]|\\\[\x00-\x7F]))*'.
1113
+                    '(?2)")(?>(?1)\.(?1)(?4))*(?1)@(?!(?1)[a-z0-9-]{64,})(?1)(?>([a-z0-9](?>[a-z0-9-]*[a-z0-9])?)'.
1114
+                    '(?>(?1)\.(?!(?1)[a-z0-9-]{64,})(?1)(?5)){0,126}|\[(?:(?>IPv6:(?>([a-f0-9]{1,4})(?>:(?6)){7}'.
1115
+                    '|(?!(?:.*[a-f0-9][:\]]){8,})((?6)(?>:(?6)){0,6})?::(?7)?))|(?>(?>IPv6:(?>(?6)(?>:(?6)){5}:'.
1116
+                    '|(?!(?:.*[a-f0-9]:){6,})(?8)?::(?>((?6)(?>:(?6)){0,4}):)?))?(25[0-5]|2[0-4][0-9]|1[0-9]{2}'.
1117 1117
                     '|[1-9]?[0-9])(?>\.(?9)){3}))\])(?1)$/isD',
1118 1118
                     $address
1119 1119
                 );
1120 1120
             case 'pcre':
1121 1121
                 //An older regex that doesn't need a recent PCRE
1122
-                return (boolean)preg_match(
1123
-                    '/^(?!(?>"?(?>\\\[ -~]|[^"])"?){255,})(?!(?>"?(?>\\\[ -~]|[^"])"?){65,}@)(?>' .
1124
-                    '[!#-\'*+\/-9=?^-~-]+|"(?>(?>[\x01-\x08\x0B\x0C\x0E-!#-\[\]-\x7F]|\\\[\x00-\xFF]))*")' .
1125
-                    '(?>\.(?>[!#-\'*+\/-9=?^-~-]+|"(?>(?>[\x01-\x08\x0B\x0C\x0E-!#-\[\]-\x7F]|\\\[\x00-\xFF]))*"))*' .
1126
-                    '@(?>(?![a-z0-9-]{64,})(?>[a-z0-9](?>[a-z0-9-]*[a-z0-9])?)(?>\.(?![a-z0-9-]{64,})' .
1127
-                    '(?>[a-z0-9](?>[a-z0-9-]*[a-z0-9])?)){0,126}|\[(?:(?>IPv6:(?>(?>[a-f0-9]{1,4})(?>:' .
1128
-                    '[a-f0-9]{1,4}){7}|(?!(?:.*[a-f0-9][:\]]){8,})(?>[a-f0-9]{1,4}(?>:[a-f0-9]{1,4}){0,6})?' .
1129
-                    '::(?>[a-f0-9]{1,4}(?>:[a-f0-9]{1,4}){0,6})?))|(?>(?>IPv6:(?>[a-f0-9]{1,4}(?>:' .
1130
-                    '[a-f0-9]{1,4}){5}:|(?!(?:.*[a-f0-9]:){6,})(?>[a-f0-9]{1,4}(?>:[a-f0-9]{1,4}){0,4})?' .
1131
-                    '::(?>(?:[a-f0-9]{1,4}(?>:[a-f0-9]{1,4}){0,4}):)?))?(?>25[0-5]|2[0-4][0-9]|1[0-9]{2}' .
1122
+                return (boolean) preg_match(
1123
+                    '/^(?!(?>"?(?>\\\[ -~]|[^"])"?){255,})(?!(?>"?(?>\\\[ -~]|[^"])"?){65,}@)(?>'.
1124
+                    '[!#-\'*+\/-9=?^-~-]+|"(?>(?>[\x01-\x08\x0B\x0C\x0E-!#-\[\]-\x7F]|\\\[\x00-\xFF]))*")'.
1125
+                    '(?>\.(?>[!#-\'*+\/-9=?^-~-]+|"(?>(?>[\x01-\x08\x0B\x0C\x0E-!#-\[\]-\x7F]|\\\[\x00-\xFF]))*"))*'.
1126
+                    '@(?>(?![a-z0-9-]{64,})(?>[a-z0-9](?>[a-z0-9-]*[a-z0-9])?)(?>\.(?![a-z0-9-]{64,})'.
1127
+                    '(?>[a-z0-9](?>[a-z0-9-]*[a-z0-9])?)){0,126}|\[(?:(?>IPv6:(?>(?>[a-f0-9]{1,4})(?>:'.
1128
+                    '[a-f0-9]{1,4}){7}|(?!(?:.*[a-f0-9][:\]]){8,})(?>[a-f0-9]{1,4}(?>:[a-f0-9]{1,4}){0,6})?'.
1129
+                    '::(?>[a-f0-9]{1,4}(?>:[a-f0-9]{1,4}){0,6})?))|(?>(?>IPv6:(?>[a-f0-9]{1,4}(?>:'.
1130
+                    '[a-f0-9]{1,4}){5}:|(?!(?:.*[a-f0-9]:){6,})(?>[a-f0-9]{1,4}(?>:[a-f0-9]{1,4}){0,4})?'.
1131
+                    '::(?>(?:[a-f0-9]{1,4}(?>:[a-f0-9]{1,4}){0,4}):)?))?(?>25[0-5]|2[0-4][0-9]|1[0-9]{2}'.
1132 1132
                     '|[1-9]?[0-9])(?>\.(?>25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9]?[0-9])){3}))\])$/isD',
1133 1133
                     $address
1134 1134
                 );
@@ -1137,8 +1137,8 @@  discard block
 block discarded – undo
1137 1137
                  * This is the pattern used in the HTML5 spec for validation of 'email' type form input elements.
1138 1138
                  * @link http://www.whatwg.org/specs/web-apps/current-work/#e-mail-state-(type=email)
1139 1139
                  */
1140
-                return (boolean)preg_match(
1141
-                    '/^[a-zA-Z0-9.!#$%&\'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}' .
1140
+                return (boolean) preg_match(
1141
+                    '/^[a-zA-Z0-9.!#$%&\'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}'.
1142 1142
                     '[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/sD',
1143 1143
                     $address
1144 1144
                 );
@@ -1150,7 +1150,7 @@  discard block
 block discarded – undo
1150 1150
                     and strpos($address, '@') != strlen($address) - 1);
1151 1151
             case 'php':
1152 1152
             default:
1153
-                return (boolean)filter_var($address, FILTER_VALIDATE_EMAIL);
1153
+                return (boolean) filter_var($address, FILTER_VALIDATE_EMAIL);
1154 1154
         }
1155 1155
     }
1156 1156
 
@@ -1187,9 +1187,8 @@  discard block
 block discarded – undo
1187 1187
             if ($this->has8bitChars($domain) and @mb_check_encoding($domain, $this->CharSet)) {
1188 1188
                 $domain = mb_convert_encoding($domain, 'UTF-8', $this->CharSet);
1189 1189
                 if (($punycode = defined('INTL_IDNA_VARIANT_UTS46') ?
1190
-                    idn_to_ascii($domain, 0, INTL_IDNA_VARIANT_UTS46) :
1191
-                    idn_to_ascii($domain)) !== false) {
1192
-                    return substr($address, 0, $pos) . $punycode;
1190
+                    idn_to_ascii($domain, 0, INTL_IDNA_VARIANT_UTS46) : idn_to_ascii($domain)) !== false) {
1191
+                    return substr($address, 0, $pos).$punycode;
1193 1192
                 }
1194 1193
             }
1195 1194
         }
@@ -1247,7 +1246,7 @@  discard block
 block discarded – undo
1247 1246
                 }
1248 1247
                 $this->$address_kind = $this->punyencodeAddress($this->$address_kind);
1249 1248
                 if (!$this->validateAddress($this->$address_kind)) {
1250
-                    $error_message = $this->lang('invalid_address') . ' (punyEncode) ' . $this->$address_kind;
1249
+                    $error_message = $this->lang('invalid_address').' (punyEncode) '.$this->$address_kind;
1251 1250
                     $this->setError($error_message);
1252 1251
                     $this->edebug($error_message);
1253 1252
                     if ($this->exceptions) {
@@ -1296,12 +1295,12 @@  discard block
 block discarded – undo
1296 1295
                 && !empty($this->DKIM_selector)
1297 1296
                 && file_exists($this->DKIM_private)) {
1298 1297
                 $header_dkim = $this->DKIM_Add(
1299
-                    $this->MIMEHeader . $this->mailHeader,
1298
+                    $this->MIMEHeader.$this->mailHeader,
1300 1299
                     $this->encodeHeader($this->secureHeader($this->Subject)),
1301 1300
                     $this->MIMEBody
1302 1301
                 );
1303
-                $this->MIMEHeader = rtrim($this->MIMEHeader, "\r\n ") . self::CRLF .
1304
-                    str_replace("\r\n", "\n", $header_dkim) . self::CRLF;
1302
+                $this->MIMEHeader = rtrim($this->MIMEHeader, "\r\n ").self::CRLF.
1303
+                    str_replace("\r\n", "\n", $header_dkim).self::CRLF;
1305 1304
             }
1306 1305
             return true;
1307 1306
         } catch (phpmailerException $exc) {
@@ -1376,9 +1375,9 @@  discard block
 block discarded – undo
1376 1375
         if ($this->SingleTo) {
1377 1376
             foreach ($this->SingleToArray as $toAddr) {
1378 1377
                 if (!@$mail = popen($sendmail, 'w')) {
1379
-                    throw new phpmailerException($this->lang('execute') . $this->Sendmail, self::STOP_CRITICAL);
1378
+                    throw new phpmailerException($this->lang('execute').$this->Sendmail, self::STOP_CRITICAL);
1380 1379
                 }
1381
-                fputs($mail, 'To: ' . $toAddr . "\n");
1380
+                fputs($mail, 'To: '.$toAddr."\n");
1382 1381
                 fputs($mail, $header);
1383 1382
                 fputs($mail, $body);
1384 1383
                 $result = pclose($mail);
@@ -1392,12 +1391,12 @@  discard block
 block discarded – undo
1392 1391
                     $this->From
1393 1392
                 );
1394 1393
                 if ($result != 0) {
1395
-                    throw new phpmailerException($this->lang('execute') . $this->Sendmail, self::STOP_CRITICAL);
1394
+                    throw new phpmailerException($this->lang('execute').$this->Sendmail, self::STOP_CRITICAL);
1396 1395
                 }
1397 1396
             }
1398 1397
         } else {
1399 1398
             if (!@$mail = popen($sendmail, 'w')) {
1400
-                throw new phpmailerException($this->lang('execute') . $this->Sendmail, self::STOP_CRITICAL);
1399
+                throw new phpmailerException($this->lang('execute').$this->Sendmail, self::STOP_CRITICAL);
1401 1400
             }
1402 1401
             fputs($mail, $header);
1403 1402
             fputs($mail, $body);
@@ -1412,7 +1411,7 @@  discard block
 block discarded – undo
1412 1411
                 $this->From
1413 1412
             );
1414 1413
             if ($result != 0) {
1415
-                throw new phpmailerException($this->lang('execute') . $this->Sendmail, self::STOP_CRITICAL);
1414
+                throw new phpmailerException($this->lang('execute').$this->Sendmail, self::STOP_CRITICAL);
1416 1415
             }
1417 1416
         }
1418 1417
         return true;
@@ -1500,7 +1499,7 @@  discard block
 block discarded – undo
1500 1499
             $smtp_from = $this->Sender;
1501 1500
         }
1502 1501
         if (!$this->smtp->mail($smtp_from)) {
1503
-            $this->setError($this->lang('from_failed') . $smtp_from . ' : ' . implode(',', $this->smtp->getError()));
1502
+            $this->setError($this->lang('from_failed').$smtp_from.' : '.implode(',', $this->smtp->getError()));
1504 1503
             throw new phpmailerException($this->ErrorInfo, self::STOP_CRITICAL);
1505 1504
         }
1506 1505
 
@@ -1519,7 +1518,7 @@  discard block
 block discarded – undo
1519 1518
         }
1520 1519
 
1521 1520
         // Only send the DATA command if we have viable recipients
1522
-        if ((count($this->all_recipients) > count($bad_rcpt)) and !$this->smtp->data($header . $body)) {
1521
+        if ((count($this->all_recipients) > count($bad_rcpt)) and !$this->smtp->data($header.$body)) {
1523 1522
             throw new phpmailerException($this->lang('data_not_accepted'), self::STOP_CRITICAL);
1524 1523
         }
1525 1524
         if ($this->SMTPKeepAlive) {
@@ -1532,10 +1531,10 @@  discard block
 block discarded – undo
1532 1531
         if (count($bad_rcpt) > 0) {
1533 1532
             $errstr = '';
1534 1533
             foreach ($bad_rcpt as $bad) {
1535
-                $errstr .= $bad['to'] . ': ' . $bad['error'];
1534
+                $errstr .= $bad['to'].': '.$bad['error'];
1536 1535
             }
1537 1536
             throw new phpmailerException(
1538
-                $this->lang('recipients_failed') . $errstr,
1537
+                $this->lang('recipients_failed').$errstr,
1539 1538
                 self::STOP_CONTINUE
1540 1539
             );
1541 1540
         }
@@ -1607,11 +1606,11 @@  discard block
 block discarded – undo
1607 1606
             }
1608 1607
             $host = $hostinfo[3];
1609 1608
             $port = $this->Port;
1610
-            $tport = (integer)$hostinfo[4];
1609
+            $tport = (integer) $hostinfo[4];
1611 1610
             if ($tport > 0 and $tport < 65536) {
1612 1611
                 $port = $tport;
1613 1612
             }
1614
-            if ($this->smtp->connect($prefix . $host, $port, $this->Timeout, $options)) {
1613
+            if ($this->smtp->connect($prefix.$host, $port, $this->Timeout, $options)) {
1615 1614
                 try {
1616 1615
                     if ($this->Helo) {
1617 1616
                         $hello = $this->Helo;
@@ -1722,14 +1721,14 @@  discard block
 block discarded – undo
1722 1721
         );
1723 1722
         if (empty($lang_path)) {
1724 1723
             // Calculate an absolute path so it can work if CWD is not here
1725
-            $lang_path = dirname(__FILE__). DIRECTORY_SEPARATOR . 'language'. DIRECTORY_SEPARATOR;
1724
+            $lang_path = dirname(__FILE__).DIRECTORY_SEPARATOR.'language'.DIRECTORY_SEPARATOR;
1726 1725
         }
1727 1726
         //Validate $langcode
1728 1727
         if (!preg_match('/^[a-z]{2}(?:_[a-zA-Z]{2})?$/', $langcode)) {
1729 1728
             $langcode = 'en';
1730 1729
         }
1731 1730
         $foundlang = true;
1732
-        $lang_file = $lang_path . 'phpmailer.lang-' . $langcode . '.php';
1731
+        $lang_file = $lang_path.'phpmailer.lang-'.$langcode.'.php';
1733 1732
         // There is no English translation file
1734 1733
         if ($langcode != 'en') {
1735 1734
             // Make sure language file path is readable
@@ -1742,7 +1741,7 @@  discard block
 block discarded – undo
1742 1741
             }
1743 1742
         }
1744 1743
         $this->language = $PHPMAILER_LANG;
1745
-        return (boolean)$foundlang; // Returns false if language not found
1744
+        return (boolean) $foundlang; // Returns false if language not found
1746 1745
     }
1747 1746
 
1748 1747
     /**
@@ -1770,7 +1769,7 @@  discard block
 block discarded – undo
1770 1769
         foreach ($addr as $address) {
1771 1770
             $addresses[] = $this->addrFormat($address);
1772 1771
         }
1773
-        return $type . ': ' . implode(', ', $addresses) . $this->LE;
1772
+        return $type.': '.implode(', ', $addresses).$this->LE;
1774 1773
     }
1775 1774
 
1776 1775
     /**
@@ -1785,9 +1784,9 @@  discard block
 block discarded – undo
1785 1784
         if (empty($addr[1])) { // No name provided
1786 1785
             return $this->secureHeader($addr[0]);
1787 1786
         } else {
1788
-            return $this->encodeHeader($this->secureHeader($addr[1]), 'phrase') . ' <' . $this->secureHeader(
1787
+            return $this->encodeHeader($this->secureHeader($addr[1]), 'phrase').' <'.$this->secureHeader(
1789 1788
                 $addr[0]
1790
-            ) . '>';
1789
+            ).'>';
1791 1790
         }
1792 1791
     }
1793 1792
 
@@ -1844,10 +1843,10 @@  discard block
 block discarded – undo
1844 1843
                             }
1845 1844
                             $part = substr($word, 0, $len);
1846 1845
                             $word = substr($word, $len);
1847
-                            $buf .= ' ' . $part;
1848
-                            $message .= $buf . sprintf('=%s', self::CRLF);
1846
+                            $buf .= ' '.$part;
1847
+                            $message .= $buf.sprintf('=%s', self::CRLF);
1849 1848
                         } else {
1850
-                            $message .= $buf . $soft_break;
1849
+                            $message .= $buf.$soft_break;
1851 1850
                         }
1852 1851
                         $buf = '';
1853 1852
                     }
@@ -1867,7 +1866,7 @@  discard block
 block discarded – undo
1867 1866
                         $word = substr($word, $len);
1868 1867
 
1869 1868
                         if (strlen($word) > 0) {
1870
-                            $message .= $part . sprintf('=%s', self::CRLF);
1869
+                            $message .= $part.sprintf('=%s', self::CRLF);
1871 1870
                         } else {
1872 1871
                             $buf = $part;
1873 1872
                         }
@@ -1880,13 +1879,13 @@  discard block
 block discarded – undo
1880 1879
                     $buf .= $word;
1881 1880
 
1882 1881
                     if (strlen($buf) > $length and $buf_o != '') {
1883
-                        $message .= $buf_o . $soft_break;
1882
+                        $message .= $buf_o.$soft_break;
1884 1883
                         $buf = $word;
1885 1884
                     }
1886 1885
                 }
1887 1886
                 $firstword = false;
1888 1887
             }
1889
-            $message .= $buf . self::CRLF;
1888
+            $message .= $buf.self::CRLF;
1890 1889
         }
1891 1890
 
1892 1891
         return $message;
@@ -2033,7 +2032,7 @@  discard block
 block discarded – undo
2033 2032
         if ($this->XMailer == '') {
2034 2033
             $result .= $this->headerLine(
2035 2034
                 'X-Mailer',
2036
-                'PHPMailer ' . $this->Version . ' (https://github.com/PHPMailer/PHPMailer)'
2035
+                'PHPMailer '.$this->Version.' (https://github.com/PHPMailer/PHPMailer)'
2037 2036
             );
2038 2037
         } else {
2039 2038
             $myXmailer = trim($this->XMailer);
@@ -2043,7 +2042,7 @@  discard block
 block discarded – undo
2043 2042
         }
2044 2043
 
2045 2044
         if ($this->ConfirmReadingTo != '') {
2046
-            $result .= $this->headerLine('Disposition-Notification-To', '<' . $this->ConfirmReadingTo . '>');
2045
+            $result .= $this->headerLine('Disposition-Notification-To', '<'.$this->ConfirmReadingTo.'>');
2047 2046
         }
2048 2047
 
2049 2048
         // Add custom headers
@@ -2073,23 +2072,23 @@  discard block
 block discarded – undo
2073 2072
         switch ($this->message_type) {
2074 2073
             case 'inline':
2075 2074
                 $result .= $this->headerLine('Content-Type', 'multipart/related;');
2076
-                $result .= $this->textLine("\tboundary=\"" . $this->boundary[1] . '"');
2075
+                $result .= $this->textLine("\tboundary=\"".$this->boundary[1].'"');
2077 2076
                 break;
2078 2077
             case 'attach':
2079 2078
             case 'inline_attach':
2080 2079
             case 'alt_attach':
2081 2080
             case 'alt_inline_attach':
2082 2081
                 $result .= $this->headerLine('Content-Type', 'multipart/mixed;');
2083
-                $result .= $this->textLine("\tboundary=\"" . $this->boundary[1] . '"');
2082
+                $result .= $this->textLine("\tboundary=\"".$this->boundary[1].'"');
2084 2083
                 break;
2085 2084
             case 'alt':
2086 2085
             case 'alt_inline':
2087 2086
                 $result .= $this->headerLine('Content-Type', 'multipart/alternative;');
2088
-                $result .= $this->textLine("\tboundary=\"" . $this->boundary[1] . '"');
2087
+                $result .= $this->textLine("\tboundary=\"".$this->boundary[1].'"');
2089 2088
                 break;
2090 2089
             default:
2091 2090
                 // Catches case 'plain': and case '':
2092
-                $result .= $this->textLine('Content-Type: ' . $this->ContentType . '; charset=' . $this->CharSet);
2091
+                $result .= $this->textLine('Content-Type: '.$this->ContentType.'; charset='.$this->CharSet);
2093 2092
                 $ismultipart = false;
2094 2093
                 break;
2095 2094
         }
@@ -2123,7 +2122,7 @@  discard block
 block discarded – undo
2123 2122
      */
2124 2123
     public function getSentMIMEMessage()
2125 2124
     {
2126
-        return rtrim($this->MIMEHeader . $this->mailHeader, "\n\r") . self::CRLF . self::CRLF . $this->MIMEBody;
2125
+        return rtrim($this->MIMEHeader.$this->mailHeader, "\n\r").self::CRLF.self::CRLF.$this->MIMEBody;
2127 2126
     }
2128 2127
 
2129 2128
     /**
@@ -2138,12 +2137,12 @@  discard block
 block discarded – undo
2138 2137
         $body = '';
2139 2138
         //Create unique IDs and preset boundaries
2140 2139
         $this->uniqueid = md5(uniqid(time()));
2141
-        $this->boundary[1] = 'b1_' . $this->uniqueid;
2142
-        $this->boundary[2] = 'b2_' . $this->uniqueid;
2143
-        $this->boundary[3] = 'b3_' . $this->uniqueid;
2140
+        $this->boundary[1] = 'b1_'.$this->uniqueid;
2141
+        $this->boundary[2] = 'b2_'.$this->uniqueid;
2142
+        $this->boundary[3] = 'b3_'.$this->uniqueid;
2144 2143
 
2145 2144
         if ($this->sign_key_file) {
2146
-            $body .= $this->getMailMIME() . $this->LE;
2145
+            $body .= $this->getMailMIME().$this->LE;
2147 2146
         }
2148 2147
 
2149 2148
         $this->setWordWrap();
@@ -2176,31 +2175,31 @@  discard block
 block discarded – undo
2176 2175
             $altBodyEncoding = 'quoted-printable';
2177 2176
         }
2178 2177
         //Use this as a preamble in all multipart message types
2179
-        $mimepre = "This is a multi-part message in MIME format." . $this->LE . $this->LE;
2178
+        $mimepre = "This is a multi-part message in MIME format.".$this->LE.$this->LE;
2180 2179
         switch ($this->message_type) {
2181 2180
             case 'inline':
2182 2181
                 $body .= $mimepre;
2183 2182
                 $body .= $this->getBoundary($this->boundary[1], $bodyCharSet, '', $bodyEncoding);
2184 2183
                 $body .= $this->encodeString($this->Body, $bodyEncoding);
2185
-                $body .= $this->LE . $this->LE;
2184
+                $body .= $this->LE.$this->LE;
2186 2185
                 $body .= $this->attachAll('inline', $this->boundary[1]);
2187 2186
                 break;
2188 2187
             case 'attach':
2189 2188
                 $body .= $mimepre;
2190 2189
                 $body .= $this->getBoundary($this->boundary[1], $bodyCharSet, '', $bodyEncoding);
2191 2190
                 $body .= $this->encodeString($this->Body, $bodyEncoding);
2192
-                $body .= $this->LE . $this->LE;
2191
+                $body .= $this->LE.$this->LE;
2193 2192
                 $body .= $this->attachAll('attachment', $this->boundary[1]);
2194 2193
                 break;
2195 2194
             case 'inline_attach':
2196 2195
                 $body .= $mimepre;
2197
-                $body .= $this->textLine('--' . $this->boundary[1]);
2196
+                $body .= $this->textLine('--'.$this->boundary[1]);
2198 2197
                 $body .= $this->headerLine('Content-Type', 'multipart/related;');
2199
-                $body .= $this->textLine("\tboundary=\"" . $this->boundary[2] . '"');
2198
+                $body .= $this->textLine("\tboundary=\"".$this->boundary[2].'"');
2200 2199
                 $body .= $this->LE;
2201 2200
                 $body .= $this->getBoundary($this->boundary[2], $bodyCharSet, '', $bodyEncoding);
2202 2201
                 $body .= $this->encodeString($this->Body, $bodyEncoding);
2203
-                $body .= $this->LE . $this->LE;
2202
+                $body .= $this->LE.$this->LE;
2204 2203
                 $body .= $this->attachAll('inline', $this->boundary[2]);
2205 2204
                 $body .= $this->LE;
2206 2205
                 $body .= $this->attachAll('attachment', $this->boundary[1]);
@@ -2209,14 +2208,14 @@  discard block
 block discarded – undo
2209 2208
                 $body .= $mimepre;
2210 2209
                 $body .= $this->getBoundary($this->boundary[1], $altBodyCharSet, 'text/plain', $altBodyEncoding);
2211 2210
                 $body .= $this->encodeString($this->AltBody, $altBodyEncoding);
2212
-                $body .= $this->LE . $this->LE;
2211
+                $body .= $this->LE.$this->LE;
2213 2212
                 $body .= $this->getBoundary($this->boundary[1], $bodyCharSet, 'text/html', $bodyEncoding);
2214 2213
                 $body .= $this->encodeString($this->Body, $bodyEncoding);
2215
-                $body .= $this->LE . $this->LE;
2214
+                $body .= $this->LE.$this->LE;
2216 2215
                 if (!empty($this->Ical)) {
2217 2216
                     $body .= $this->getBoundary($this->boundary[1], '', 'text/calendar; method=REQUEST', '');
2218 2217
                     $body .= $this->encodeString($this->Ical, $this->Encoding);
2219
-                    $body .= $this->LE . $this->LE;
2218
+                    $body .= $this->LE.$this->LE;
2220 2219
                 }
2221 2220
                 $body .= $this->endBoundary($this->boundary[1]);
2222 2221
                 break;
@@ -2224,50 +2223,50 @@  discard block
 block discarded – undo
2224 2223
                 $body .= $mimepre;
2225 2224
                 $body .= $this->getBoundary($this->boundary[1], $altBodyCharSet, 'text/plain', $altBodyEncoding);
2226 2225
                 $body .= $this->encodeString($this->AltBody, $altBodyEncoding);
2227
-                $body .= $this->LE . $this->LE;
2228
-                $body .= $this->textLine('--' . $this->boundary[1]);
2226
+                $body .= $this->LE.$this->LE;
2227
+                $body .= $this->textLine('--'.$this->boundary[1]);
2229 2228
                 $body .= $this->headerLine('Content-Type', 'multipart/related;');
2230
-                $body .= $this->textLine("\tboundary=\"" . $this->boundary[2] . '"');
2229
+                $body .= $this->textLine("\tboundary=\"".$this->boundary[2].'"');
2231 2230
                 $body .= $this->LE;
2232 2231
                 $body .= $this->getBoundary($this->boundary[2], $bodyCharSet, 'text/html', $bodyEncoding);
2233 2232
                 $body .= $this->encodeString($this->Body, $bodyEncoding);
2234
-                $body .= $this->LE . $this->LE;
2233
+                $body .= $this->LE.$this->LE;
2235 2234
                 $body .= $this->attachAll('inline', $this->boundary[2]);
2236 2235
                 $body .= $this->LE;
2237 2236
                 $body .= $this->endBoundary($this->boundary[1]);
2238 2237
                 break;
2239 2238
             case 'alt_attach':
2240 2239
                 $body .= $mimepre;
2241
-                $body .= $this->textLine('--' . $this->boundary[1]);
2240
+                $body .= $this->textLine('--'.$this->boundary[1]);
2242 2241
                 $body .= $this->headerLine('Content-Type', 'multipart/alternative;');
2243
-                $body .= $this->textLine("\tboundary=\"" . $this->boundary[2] . '"');
2242
+                $body .= $this->textLine("\tboundary=\"".$this->boundary[2].'"');
2244 2243
                 $body .= $this->LE;
2245 2244
                 $body .= $this->getBoundary($this->boundary[2], $altBodyCharSet, 'text/plain', $altBodyEncoding);
2246 2245
                 $body .= $this->encodeString($this->AltBody, $altBodyEncoding);
2247
-                $body .= $this->LE . $this->LE;
2246
+                $body .= $this->LE.$this->LE;
2248 2247
                 $body .= $this->getBoundary($this->boundary[2], $bodyCharSet, 'text/html', $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->endBoundary($this->boundary[2]);
2252 2251
                 $body .= $this->LE;
2253 2252
                 $body .= $this->attachAll('attachment', $this->boundary[1]);
2254 2253
                 break;
2255 2254
             case 'alt_inline_attach':
2256 2255
                 $body .= $mimepre;
2257
-                $body .= $this->textLine('--' . $this->boundary[1]);
2256
+                $body .= $this->textLine('--'.$this->boundary[1]);
2258 2257
                 $body .= $this->headerLine('Content-Type', 'multipart/alternative;');
2259
-                $body .= $this->textLine("\tboundary=\"" . $this->boundary[2] . '"');
2258
+                $body .= $this->textLine("\tboundary=\"".$this->boundary[2].'"');
2260 2259
                 $body .= $this->LE;
2261 2260
                 $body .= $this->getBoundary($this->boundary[2], $altBodyCharSet, 'text/plain', $altBodyEncoding);
2262 2261
                 $body .= $this->encodeString($this->AltBody, $altBodyEncoding);
2263
-                $body .= $this->LE . $this->LE;
2264
-                $body .= $this->textLine('--' . $this->boundary[2]);
2262
+                $body .= $this->LE.$this->LE;
2263
+                $body .= $this->textLine('--'.$this->boundary[2]);
2265 2264
                 $body .= $this->headerLine('Content-Type', 'multipart/related;');
2266
-                $body .= $this->textLine("\tboundary=\"" . $this->boundary[3] . '"');
2265
+                $body .= $this->textLine("\tboundary=\"".$this->boundary[3].'"');
2267 2266
                 $body .= $this->LE;
2268 2267
                 $body .= $this->getBoundary($this->boundary[3], $bodyCharSet, 'text/html', $bodyEncoding);
2269 2268
                 $body .= $this->encodeString($this->Body, $bodyEncoding);
2270
-                $body .= $this->LE . $this->LE;
2269
+                $body .= $this->LE.$this->LE;
2271 2270
                 $body .= $this->attachAll('inline', $this->boundary[3]);
2272 2271
                 $body .= $this->LE;
2273 2272
                 $body .= $this->endBoundary($this->boundary[2]);
@@ -2287,12 +2286,12 @@  discard block
 block discarded – undo
2287 2286
         } elseif ($this->sign_key_file) {
2288 2287
             try {
2289 2288
                 if (!defined('PKCS7_TEXT')) {
2290
-                    throw new phpmailerException($this->lang('extension_missing') . 'openssl');
2289
+                    throw new phpmailerException($this->lang('extension_missing').'openssl');
2291 2290
                 }
2292 2291
                 // @TODO would be nice to use php://temp streams here, but need to wrap for PHP < 5.1
2293 2292
                 $file = tempnam(sys_get_temp_dir(), 'mail');
2294 2293
                 if (false === file_put_contents($file, $body)) {
2295
-                    throw new phpmailerException($this->lang('signing') . ' Could not write temp file');
2294
+                    throw new phpmailerException($this->lang('signing').' Could not write temp file');
2296 2295
                 }
2297 2296
                 $signed = tempnam(sys_get_temp_dir(), 'signed');
2298 2297
                 //Workaround for PHP bug https://bugs.php.net/bug.php?id=69197
@@ -2300,16 +2299,16 @@  discard block
 block discarded – undo
2300 2299
                     $sign = @openssl_pkcs7_sign(
2301 2300
                         $file,
2302 2301
                         $signed,
2303
-                        'file://' . realpath($this->sign_cert_file),
2304
-                        array('file://' . realpath($this->sign_key_file), $this->sign_key_pass),
2302
+                        'file://'.realpath($this->sign_cert_file),
2303
+                        array('file://'.realpath($this->sign_key_file), $this->sign_key_pass),
2305 2304
                         null
2306 2305
                     );
2307 2306
                 } else {
2308 2307
                     $sign = @openssl_pkcs7_sign(
2309 2308
                         $file,
2310 2309
                         $signed,
2311
-                        'file://' . realpath($this->sign_cert_file),
2312
-                        array('file://' . realpath($this->sign_key_file), $this->sign_key_pass),
2310
+                        'file://'.realpath($this->sign_cert_file),
2311
+                        array('file://'.realpath($this->sign_key_file), $this->sign_key_pass),
2313 2312
                         null,
2314 2313
                         PKCS7_DETACHED,
2315 2314
                         $this->sign_extracerts_file
@@ -2321,12 +2320,12 @@  discard block
 block discarded – undo
2321 2320
                     @unlink($signed);
2322 2321
                     //The message returned by openssl contains both headers and body, so need to split them up
2323 2322
                     $parts = explode("\n\n", $body, 2);
2324
-                    $this->MIMEHeader .= $parts[0] . $this->LE . $this->LE;
2323
+                    $this->MIMEHeader .= $parts[0].$this->LE.$this->LE;
2325 2324
                     $body = $parts[1];
2326 2325
                 } else {
2327 2326
                     @unlink($file);
2328 2327
                     @unlink($signed);
2329
-                    throw new phpmailerException($this->lang('signing') . openssl_error_string());
2328
+                    throw new phpmailerException($this->lang('signing').openssl_error_string());
2330 2329
                 }
2331 2330
             } catch (phpmailerException $exc) {
2332 2331
                 $body = '';
@@ -2359,7 +2358,7 @@  discard block
 block discarded – undo
2359 2358
         if ($encoding == '') {
2360 2359
             $encoding = $this->Encoding;
2361 2360
         }
2362
-        $result .= $this->textLine('--' . $boundary);
2361
+        $result .= $this->textLine('--'.$boundary);
2363 2362
         $result .= sprintf('Content-Type: %s; charset=%s', $contentType, $charSet);
2364 2363
         $result .= $this->LE;
2365 2364
         // RFC1341 part 5 says 7bit is assumed if not specified
@@ -2379,7 +2378,7 @@  discard block
 block discarded – undo
2379 2378
      */
2380 2379
     protected function endBoundary($boundary)
2381 2380
     {
2382
-        return $this->LE . '--' . $boundary . '--' . $this->LE;
2381
+        return $this->LE.'--'.$boundary.'--'.$this->LE;
2383 2382
     }
2384 2383
 
2385 2384
     /**
@@ -2416,7 +2415,7 @@  discard block
 block discarded – undo
2416 2415
      */
2417 2416
     public function headerLine($name, $value)
2418 2417
     {
2419
-        return $name . ': ' . $value . $this->LE;
2418
+        return $name.': '.$value.$this->LE;
2420 2419
     }
2421 2420
 
2422 2421
     /**
@@ -2427,7 +2426,7 @@  discard block
 block discarded – undo
2427 2426
      */
2428 2427
     public function textLine($value)
2429 2428
     {
2430
-        return $value . $this->LE;
2429
+        return $value.$this->LE;
2431 2430
     }
2432 2431
 
2433 2432
     /**
@@ -2445,7 +2444,7 @@  discard block
 block discarded – undo
2445 2444
     {
2446 2445
         try {
2447 2446
             if (!@is_file($path)) {
2448
-                throw new phpmailerException($this->lang('file_access') . $path, self::STOP_CONTINUE);
2447
+                throw new phpmailerException($this->lang('file_access').$path, self::STOP_CONTINUE);
2449 2448
             }
2450 2449
 
2451 2450
             // If a MIME type is not specified, try to work it out from the file name
@@ -2569,7 +2568,7 @@  discard block
 block discarded – undo
2569 2568
                             'Content-Disposition: %s; filename="%s"%s',
2570 2569
                             $disposition,
2571 2570
                             $encoded_name,
2572
-                            $this->LE . $this->LE
2571
+                            $this->LE.$this->LE
2573 2572
                         );
2574 2573
                     } else {
2575 2574
                         if (!empty($encoded_name)) {
@@ -2577,13 +2576,13 @@  discard block
 block discarded – undo
2577 2576
                                 'Content-Disposition: %s; filename=%s%s',
2578 2577
                                 $disposition,
2579 2578
                                 $encoded_name,
2580
-                                $this->LE . $this->LE
2579
+                                $this->LE.$this->LE
2581 2580
                             );
2582 2581
                         } else {
2583 2582
                             $mime[] = sprintf(
2584 2583
                                 'Content-Disposition: %s%s',
2585 2584
                                 $disposition,
2586
-                                $this->LE . $this->LE
2585
+                                $this->LE.$this->LE
2587 2586
                             );
2588 2587
                         }
2589 2588
                     }
@@ -2597,13 +2596,13 @@  discard block
 block discarded – undo
2597 2596
                     if ($this->isError()) {
2598 2597
                         return '';
2599 2598
                     }
2600
-                    $mime[] = $this->LE . $this->LE;
2599
+                    $mime[] = $this->LE.$this->LE;
2601 2600
                 } else {
2602 2601
                     $mime[] = $this->encodeFile($path, $encoding);
2603 2602
                     if ($this->isError()) {
2604 2603
                         return '';
2605 2604
                     }
2606
-                    $mime[] = $this->LE . $this->LE;
2605
+                    $mime[] = $this->LE.$this->LE;
2607 2606
                 }
2608 2607
             }
2609 2608
         }
@@ -2626,7 +2625,7 @@  discard block
 block discarded – undo
2626 2625
     {
2627 2626
         try {
2628 2627
             if (!is_readable($path)) {
2629
-                throw new phpmailerException($this->lang('file_open') . $path, self::STOP_CONTINUE);
2628
+                throw new phpmailerException($this->lang('file_open').$path, self::STOP_CONTINUE);
2630 2629
             }
2631 2630
             $magic_quotes = get_magic_quotes_runtime();
2632 2631
             if ($magic_quotes) {
@@ -2685,7 +2684,7 @@  discard block
 block discarded – undo
2685 2684
                 $encoded = $this->encodeQP($str);
2686 2685
                 break;
2687 2686
             default:
2688
-                $this->setError($this->lang('encoding') . $encoding);
2687
+                $this->setError($this->lang('encoding').$encoding);
2689 2688
                 break;
2690 2689
         }
2691 2690
         return $encoded;
@@ -2748,10 +2747,10 @@  discard block
 block discarded – undo
2748 2747
             $encoding = 'Q';
2749 2748
             $encoded = $this->encodeQ($str, $position);
2750 2749
             $encoded = $this->wrapText($encoded, $maxlen, true);
2751
-            $encoded = str_replace('=' . self::CRLF, "\n", trim($encoded));
2750
+            $encoded = str_replace('='.self::CRLF, "\n", trim($encoded));
2752 2751
         }
2753 2752
 
2754
-        $encoded = preg_replace('/^(.*)$/m', ' =?' . $this->CharSet . "?$encoding?\\1?=", $encoded);
2753
+        $encoded = preg_replace('/^(.*)$/m', ' =?'.$this->CharSet."?$encoding?\\1?=", $encoded);
2755 2754
         $encoded = trim(str_replace("\n", $this->LE, $encoded));
2756 2755
 
2757 2756
         return $encoded;
@@ -2779,7 +2778,7 @@  discard block
 block discarded – undo
2779 2778
      */
2780 2779
     public function has8bitChars($text)
2781 2780
     {
2782
-        return (boolean)preg_match('/[\x80-\xFF]/', $text);
2781
+        return (boolean) preg_match('/[\x80-\xFF]/', $text);
2783 2782
     }
2784 2783
 
2785 2784
     /**
@@ -2794,7 +2793,7 @@  discard block
 block discarded – undo
2794 2793
      */
2795 2794
     public function base64EncodeWrapMB($str, $linebreak = null)
2796 2795
     {
2797
-        $start = '=?' . $this->CharSet . '?B?';
2796
+        $start = '=?'.$this->CharSet.'?B?';
2798 2797
         $end = '?=';
2799 2798
         $encoded = '';
2800 2799
         if ($linebreak === null) {
@@ -2817,7 +2816,7 @@  discard block
 block discarded – undo
2817 2816
                 $chunk = base64_encode($chunk);
2818 2817
                 $lookBack++;
2819 2818
             } while (strlen($chunk) > $length);
2820
-            $encoded .= $chunk . $linebreak;
2819
+            $encoded .= $chunk.$linebreak;
2821 2820
         }
2822 2821
 
2823 2822
         // Chomp the last linefeed
@@ -2846,7 +2845,7 @@  discard block
 block discarded – undo
2846 2845
             array(' ', "\r\n=2E", "\r\n", '='),
2847 2846
             rawurlencode($string)
2848 2847
         );
2849
-        return preg_replace('/[^\r\n]{' . ($line_max - 3) . '}[^=\r\n]{2}/', "$0=\r\n", $string);
2848
+        return preg_replace('/[^\r\n]{'.($line_max - 3).'}[^=\r\n]{2}/', "$0=\r\n", $string);
2850 2849
     }
2851 2850
 
2852 2851
     /**
@@ -2895,7 +2894,7 @@  discard block
 block discarded – undo
2895 2894
             default:
2896 2895
                 // RFC 2047 section 5.1
2897 2896
                 // Replace every high ascii, control, =, ? and _ characters
2898
-                $pattern = '\000-\011\013\014\016-\037\075\077\137\177-\377' . $pattern;
2897
+                $pattern = '\000-\011\013\014\016-\037\075\077\137\177-\377'.$pattern;
2899 2898
                 break;
2900 2899
         }
2901 2900
         $matches = array();
@@ -2908,7 +2907,7 @@  discard block
 block discarded – undo
2908 2907
                 array_unshift($matches[0], '=');
2909 2908
             }
2910 2909
             foreach (array_unique($matches[0]) as $char) {
2911
-                $encoded = str_replace($char, '=' . sprintf('%02X', ord($char)), $encoded);
2910
+                $encoded = str_replace($char, '='.sprintf('%02X', ord($char)), $encoded);
2912 2911
             }
2913 2912
         }
2914 2913
         // Replace every spaces to _ (more readable than =20)
@@ -2969,7 +2968,7 @@  discard block
 block discarded – undo
2969 2968
     public function addEmbeddedImage($path, $cid, $name = '', $encoding = 'base64', $type = '', $disposition = 'inline')
2970 2969
     {
2971 2970
         if (!@is_file($path)) {
2972
-            $this->setError($this->lang('file_access') . $path);
2971
+            $this->setError($this->lang('file_access').$path);
2973 2972
             return false;
2974 2973
         }
2975 2974
 
@@ -3184,15 +3183,15 @@  discard block
 block discarded – undo
3184 3183
         if ($this->Mailer == 'smtp' and !is_null($this->smtp)) {
3185 3184
             $lasterror = $this->smtp->getError();
3186 3185
             if (!empty($lasterror['error'])) {
3187
-                $msg .= $this->lang('smtp_error') . $lasterror['error'];
3186
+                $msg .= $this->lang('smtp_error').$lasterror['error'];
3188 3187
                 if (!empty($lasterror['detail'])) {
3189
-                    $msg .= ' Detail: '. $lasterror['detail'];
3188
+                    $msg .= ' Detail: '.$lasterror['detail'];
3190 3189
                 }
3191 3190
                 if (!empty($lasterror['smtp_code'])) {
3192
-                    $msg .= ' SMTP code: ' . $lasterror['smtp_code'];
3191
+                    $msg .= ' SMTP code: '.$lasterror['smtp_code'];
3193 3192
                 }
3194 3193
                 if (!empty($lasterror['smtp_code_ex'])) {
3195
-                    $msg .= ' Additional SMTP info: ' . $lasterror['smtp_code_ex'];
3194
+                    $msg .= ' Additional SMTP info: '.$lasterror['smtp_code_ex'];
3196 3195
                 }
3197 3196
             }
3198 3197
         }
@@ -3251,7 +3250,7 @@  discard block
 block discarded – undo
3251 3250
                 //Include a link to troubleshooting docs on SMTP connection failure
3252 3251
                 //this is by far the biggest cause of support questions
3253 3252
                 //but it's usually not PHPMailer's fault.
3254
-                return $this->language[$key] . ' https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting';
3253
+                return $this->language[$key].' https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting';
3255 3254
             }
3256 3255
             return $this->language[$key];
3257 3256
         } else {
@@ -3341,11 +3340,11 @@  discard block
 block discarded – undo
3341 3340
                     } else {
3342 3341
                         $data = rawurldecode($data);
3343 3342
                     }
3344
-                    $cid = md5($url) . '@phpmailer.0'; // RFC2392 S 2
3345
-                    if ($this->addStringEmbeddedImage($data, $cid, 'embed' . $imgindex, 'base64', $match[1])) {
3343
+                    $cid = md5($url).'@phpmailer.0'; // RFC2392 S 2
3344
+                    if ($this->addStringEmbeddedImage($data, $cid, 'embed'.$imgindex, 'base64', $match[1])) {
3346 3345
                         $message = str_replace(
3347 3346
                             $images[0][$imgindex],
3348
-                            $images[1][$imgindex] . '="cid:' . $cid . '"',
3347
+                            $images[1][$imgindex].'="cid:'.$cid.'"',
3349 3348
                             $message
3350 3349
                         );
3351 3350
                     }
@@ -3357,7 +3356,7 @@  discard block
 block discarded – undo
3357 3356
                     if ($directory == '.') {
3358 3357
                         $directory = '';
3359 3358
                     }
3360
-                    $cid = md5($url) . '@phpmailer.0'; // RFC2392 S 2
3359
+                    $cid = md5($url).'@phpmailer.0'; // RFC2392 S 2
3361 3360
                     if (strlen($basedir) > 1 && substr($basedir, -1) != '/') {
3362 3361
                         $basedir .= '/';
3363 3362
                     }
@@ -3365,16 +3364,16 @@  discard block
 block discarded – undo
3365 3364
                         $directory .= '/';
3366 3365
                     }
3367 3366
                     if ($this->addEmbeddedImage(
3368
-                        $basedir . $directory . $filename,
3367
+                        $basedir.$directory.$filename,
3369 3368
                         $cid,
3370 3369
                         $filename,
3371 3370
                         'base64',
3372
-                        self::_mime_types((string)self::mb_pathinfo($filename, PATHINFO_EXTENSION))
3371
+                        self::_mime_types((string) self::mb_pathinfo($filename, PATHINFO_EXTENSION))
3373 3372
                     )
3374 3373
                     ) {
3375 3374
                         $message = preg_replace(
3376
-                            '/' . $images[1][$imgindex] . '=["\']' . preg_quote($url, '/') . '["\']/Ui',
3377
-                            $images[1][$imgindex] . '="cid:' . $cid . '"',
3375
+                            '/'.$images[1][$imgindex].'=["\']'.preg_quote($url, '/').'["\']/Ui',
3376
+                            $images[1][$imgindex].'="cid:'.$cid.'"',
3378 3377
                             $message
3379 3378
                         );
3380 3379
                     }
@@ -3386,8 +3385,8 @@  discard block
 block discarded – undo
3386 3385
         $this->Body = $this->normalizeBreaks($message);
3387 3386
         $this->AltBody = $this->normalizeBreaks($this->html2text($message, $advanced));
3388 3387
         if (!$this->alternativeExists()) {
3389
-            $this->AltBody = 'To view this email message, open it in a program that understands HTML!' .
3390
-                self::CRLF . self::CRLF;
3388
+            $this->AltBody = 'To view this email message, open it in a program that understands HTML!'.
3389
+                self::CRLF.self::CRLF;
3391 3390
         }
3392 3391
         return $this->Body;
3393 3392
     }
@@ -3624,7 +3623,7 @@  discard block
 block discarded – undo
3624 3623
             $this->$name = $value;
3625 3624
             return true;
3626 3625
         } else {
3627
-            $this->setError($this->lang('variable_set') . $name);
3626
+            $this->setError($this->lang('variable_set').$name);
3628 3627
             return false;
3629 3628
         }
3630 3629
     }
@@ -3685,7 +3684,7 @@  discard block
 block discarded – undo
3685 3684
             if (((0x21 <= $ord) && ($ord <= 0x3A)) || $ord == 0x3C || ((0x3E <= $ord) && ($ord <= 0x7E))) {
3686 3685
                 $line .= $txt[$i];
3687 3686
             } else {
3688
-                $line .= '=' . sprintf('%02X', $ord);
3687
+                $line .= '='.sprintf('%02X', $ord);
3689 3688
             }
3690 3689
         }
3691 3690
         return $line;
@@ -3702,7 +3701,7 @@  discard block
 block discarded – undo
3702 3701
     {
3703 3702
         if (!defined('PKCS7_TEXT')) {
3704 3703
             if ($this->exceptions) {
3705
-                throw new phpmailerException($this->lang('extension_missing') . 'openssl');
3704
+                throw new phpmailerException($this->lang('extension_missing').'openssl');
3706 3705
             }
3707 3706
             return '';
3708 3707
         }
@@ -3725,9 +3724,9 @@  discard block
 block discarded – undo
3725 3724
             $hash = hash('sha256', $signHeader);
3726 3725
             //'Magic' constant for SHA256 from RFC3447
3727 3726
             //@link https://tools.ietf.org/html/rfc3447#page-43
3728
-            $t = '3031300d060960864801650304020105000420' . $hash;
3727
+            $t = '3031300d060960864801650304020105000420'.$hash;
3729 3728
             $pslen = $pinfo['bits'] / 8 - (strlen($t) / 2 + 3);
3730
-            $eb = pack('H*', '0001' . str_repeat('FF', $pslen) . '00' . $t);
3729
+            $eb = pack('H*', '0001'.str_repeat('FF', $pslen).'00'.$t);
3731 3730
 
3732 3731
             if (openssl_private_encrypt($eb, $signature, $privKey, OPENSSL_NO_PADDING)) {
3733 3732
                 openssl_pkey_free($privKey);
@@ -3752,7 +3751,7 @@  discard block
 block discarded – undo
3752 3751
             list($heading, $value) = explode(':', $line, 2);
3753 3752
             $heading = strtolower($heading);
3754 3753
             $value = preg_replace('/\s{2,}/', ' ', $value); // Compress useless spaces
3755
-            $lines[$key] = $heading . ':' . trim($value); // Don't forget to remove WSP around the value
3754
+            $lines[$key] = $heading.':'.trim($value); // Don't forget to remove WSP around the value
3756 3755
         }
3757 3756
         $signHeader = implode("\r\n", $lines);
3758 3757
         return $signHeader;
@@ -3831,32 +3830,32 @@  discard block
 block discarded – undo
3831 3830
         if ('' == $this->DKIM_identity) {
3832 3831
             $ident = '';
3833 3832
         } else {
3834
-            $ident = ' i=' . $this->DKIM_identity . ';';
3835
-        }
3836
-        $dkimhdrs = 'DKIM-Signature: v=1; a=' .
3837
-            $DKIMsignatureType . '; q=' .
3838
-            $DKIMquery . '; l=' .
3839
-            $DKIMlen . '; s=' .
3840
-            $this->DKIM_selector .
3841
-            ";\r\n" .
3842
-            "\tt=" . $DKIMtime . '; c=' . $DKIMcanonicalization . ";\r\n" .
3843
-            "\th=From:To:Date:Subject;\r\n" .
3844
-            "\td=" . $this->DKIM_domain . ';' . $ident . "\r\n" .
3845
-            "\tz=$from\r\n" .
3846
-            "\t|$to\r\n" .
3847
-            "\t|$date\r\n" .
3848
-            "\t|$subject;\r\n" .
3849
-            "\tbh=" . $DKIMb64 . ";\r\n" .
3833
+            $ident = ' i='.$this->DKIM_identity.';';
3834
+        }
3835
+        $dkimhdrs = 'DKIM-Signature: v=1; a='.
3836
+            $DKIMsignatureType.'; q='.
3837
+            $DKIMquery.'; l='.
3838
+            $DKIMlen.'; s='.
3839
+            $this->DKIM_selector.
3840
+            ";\r\n".
3841
+            "\tt=".$DKIMtime.'; c='.$DKIMcanonicalization.";\r\n".
3842
+            "\th=From:To:Date:Subject;\r\n".
3843
+            "\td=".$this->DKIM_domain.';'.$ident."\r\n".
3844
+            "\tz=$from\r\n".
3845
+            "\t|$to\r\n".
3846
+            "\t|$date\r\n".
3847
+            "\t|$subject;\r\n".
3848
+            "\tbh=".$DKIMb64.";\r\n".
3850 3849
             "\tb=";
3851 3850
         $toSign = $this->DKIM_HeaderC(
3852
-            $from_header . "\r\n" .
3853
-            $to_header . "\r\n" .
3854
-            $date_header . "\r\n" .
3855
-            $subject_header . "\r\n" .
3851
+            $from_header."\r\n".
3852
+            $to_header."\r\n".
3853
+            $date_header."\r\n".
3854
+            $subject_header."\r\n".
3856 3855
             $dkimhdrs
3857 3856
         );
3858 3857
         $signed = $this->DKIM_Sign($toSign);
3859
-        return $dkimhdrs . $signed . "\r\n";
3858
+        return $dkimhdrs.$signed."\r\n";
3860 3859
     }
3861 3860
 
3862 3861
     /**
@@ -3868,7 +3867,7 @@  discard block
 block discarded – undo
3868 3867
     public static function hasLineLongerThanMax($str)
3869 3868
     {
3870 3869
         //+2 to include CRLF line break for a 1000 total
3871
-        return (boolean)preg_match('/^(.{'.(self::MAX_LINE_LENGTH + 2).',})/m', $str);
3870
+        return (boolean) preg_match('/^(.{'.(self::MAX_LINE_LENGTH + 2).',})/m', $str);
3872 3871
     }
3873 3872
 
3874 3873
     /**
@@ -3957,7 +3956,7 @@  discard block
 block discarded – undo
3957 3956
      */
3958 3957
     public function errorMessage()
3959 3958
     {
3960
-        $errorMsg = '<strong>' . $this->getMessage() . "</strong><br />\n";
3959
+        $errorMsg = '<strong>'.$this->getMessage()."</strong><br />\n";
3961 3960
         return $errorMsg;
3962 3961
     }
3963 3962
 }
Please login to merge, or discard this patch.
includes/libraries/Email/Phpmailer/class.smtp.php 1 patch
Spacing   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
             default:
228 228
                 //Normalize line breaks
229 229
                 $str = preg_replace('/(\r\n|\r|\n)/ms', "\n", $str);
230
-                echo gmdate('Y-m-d H:i:s') . "\t" . str_replace(
230
+                echo gmdate('Y-m-d H:i:s')."\t".str_replace(
231 231
                     "\n",
232 232
                     "\n                   \t                  ",
233 233
                     trim($str)
@@ -274,7 +274,7 @@  discard block
 block discarded – undo
274 274
             $socket_context = stream_context_create($options);
275 275
             set_error_handler(array($this, 'errorHandler'));
276 276
             $this->smtp_conn = stream_socket_client(
277
-                $host . ":" . $port,
277
+                $host.":".$port,
278 278
                 $errno,
279 279
                 $errstr,
280 280
                 $timeout,
@@ -306,7 +306,7 @@  discard block
 block discarded – undo
306 306
                 $errstr
307 307
             );
308 308
             $this->edebug(
309
-                'SMTP ERROR: ' . $this->error['error']
309
+                'SMTP ERROR: '.$this->error['error']
310 310
                 . ": $errstr ($errno)",
311 311
                 self::DEBUG_CLIENT
312 312
             );
@@ -325,7 +325,7 @@  discard block
 block discarded – undo
325 325
         }
326 326
         // Get any announcement
327 327
         $announce = $this->get_lines();
328
-        $this->edebug('SERVER -> CLIENT: ' . $announce, self::DEBUG_SERVER);
328
+        $this->edebug('SERVER -> CLIENT: '.$announce, self::DEBUG_SERVER);
329 329
         return true;
330 330
     }
331 331
 
@@ -396,9 +396,9 @@  discard block
 block discarded – undo
396 396
                 return false;
397 397
             }
398 398
 
399
-            self::edebug('Auth method requested: ' . ($authtype ? $authtype : 'UNKNOWN'), self::DEBUG_LOWLEVEL);
399
+            self::edebug('Auth method requested: '.($authtype ? $authtype : 'UNKNOWN'), self::DEBUG_LOWLEVEL);
400 400
             self::edebug(
401
-                'Auth methods available on the server: ' . implode(',', $this->server_caps['AUTH']),
401
+                'Auth methods available on the server: '.implode(',', $this->server_caps['AUTH']),
402 402
                 self::DEBUG_LOWLEVEL
403 403
             );
404 404
 
@@ -432,7 +432,7 @@  discard block
 block discarded – undo
432 432
                 // Send encoded username and password
433 433
                 if (!$this->sendCommand(
434 434
                     'User & Password',
435
-                    base64_encode("\0" . $username . "\0" . $password),
435
+                    base64_encode("\0".$username."\0".$password),
436 436
                     235
437 437
                 )
438 438
                 ) {
@@ -460,7 +460,7 @@  discard block
 block discarded – undo
460 460
                 $oauth = $OAuth->getOauth64();
461 461
 
462 462
                 // Start authentication
463
-                if (!$this->sendCommand('AUTH', 'AUTH XOAUTH2 ' . $oauth, 235)) {
463
+                if (!$this->sendCommand('AUTH', 'AUTH XOAUTH2 '.$oauth, 235)) {
464 464
                     return false;
465 465
                 }
466 466
                 break;
@@ -491,7 +491,7 @@  discard block
 block discarded – undo
491 491
 
492 492
                 if (!$this->sendCommand(
493 493
                     'AUTH NTLM',
494
-                    'AUTH NTLM ' . base64_encode($msg1),
494
+                    'AUTH NTLM '.base64_encode($msg1),
495 495
                     334
496 496
                 )
497 497
                 ) {
@@ -523,7 +523,7 @@  discard block
 block discarded – undo
523 523
                 $challenge = base64_decode(substr($this->last_reply, 4));
524 524
 
525 525
                 // Build the response
526
-                $response = $username . ' ' . $this->hmac($challenge, $password);
526
+                $response = $username.' '.$this->hmac($challenge, $password);
527 527
 
528 528
                 // send encoded credentials
529 529
                 return $this->sendCommand('Username', base64_encode($response), 235);
@@ -567,7 +567,7 @@  discard block
 block discarded – undo
567 567
         $k_ipad = $key ^ $ipad;
568 568
         $k_opad = $key ^ $opad;
569 569
 
570
-        return md5($k_opad . pack('H*', md5($k_ipad . $data)));
570
+        return md5($k_opad.pack('H*', md5($k_ipad.$data)));
571 571
     }
572 572
 
573 573
     /**
@@ -679,7 +679,7 @@  discard block
 block discarded – undo
679 679
                 }
680 680
                 //If processing headers add a LWSP-char to the front of new line RFC822 section 3.1.1
681 681
                 if ($in_headers) {
682
-                    $line = "\t" . $line;
682
+                    $line = "\t".$line;
683 683
                 }
684 684
             }
685 685
             $lines_out[] = $line;
@@ -688,9 +688,9 @@  discard block
 block discarded – undo
688 688
             foreach ($lines_out as $line_out) {
689 689
                 //RFC2821 section 4.5.2
690 690
                 if (!empty($line_out) and $line_out[0] == '.') {
691
-                    $line_out = '.' . $line_out;
691
+                    $line_out = '.'.$line_out;
692 692
                 }
693
-                $this->client_send($line_out . self::CRLF);
693
+                $this->client_send($line_out.self::CRLF);
694 694
             }
695 695
         }
696 696
 
@@ -717,7 +717,7 @@  discard block
 block discarded – undo
717 717
     public function hello($host = '')
718 718
     {
719 719
         //Try extended hello first (RFC 2821)
720
-        return (boolean)($this->sendHello('EHLO', $host) or $this->sendHello('HELO', $host));
720
+        return (boolean) ($this->sendHello('EHLO', $host) or $this->sendHello('HELO', $host));
721 721
     }
722 722
 
723 723
     /**
@@ -731,7 +731,7 @@  discard block
 block discarded – undo
731 731
      */
732 732
     protected function sendHello($hello, $host)
733 733
     {
734
-        $noerror = $this->sendCommand($hello, $hello . ' ' . $host, 250);
734
+        $noerror = $this->sendCommand($hello, $hello.' '.$host, 250);
735 735
         $this->helo_rply = $this->last_reply;
736 736
         if ($noerror) {
737 737
             $this->parseHelloFields($hello);
@@ -799,7 +799,7 @@  discard block
 block discarded – undo
799 799
         $useVerp = ($this->do_verp ? ' XVERP' : '');
800 800
         return $this->sendCommand(
801 801
             'MAIL FROM',
802
-            'MAIL FROM:<' . $from . '>' . $useVerp,
802
+            'MAIL FROM:<'.$from.'>'.$useVerp,
803 803
             250
804 804
         );
805 805
     }
@@ -836,7 +836,7 @@  discard block
 block discarded – undo
836 836
     {
837 837
         return $this->sendCommand(
838 838
             'RCPT TO',
839
-            'RCPT TO:<' . $address . '>',
839
+            'RCPT TO:<'.$address.'>',
840 840
             array(250, 251)
841 841
         );
842 842
     }
@@ -872,7 +872,7 @@  discard block
 block discarded – undo
872 872
             $this->setError("Command '$command' contained line breaks");
873 873
             return false;
874 874
         }
875
-        $this->client_send($commandstring . self::CRLF);
875
+        $this->client_send($commandstring.self::CRLF);
876 876
 
877 877
         $this->last_reply = $this->get_lines();
878 878
         // Fetch SMTP code and possible error code explanation
@@ -893,9 +893,9 @@  discard block
 block discarded – undo
893 893
             $detail = substr($this->last_reply, 4);
894 894
         }
895 895
 
896
-        $this->edebug('SERVER -> CLIENT: ' . $this->last_reply, self::DEBUG_SERVER);
896
+        $this->edebug('SERVER -> CLIENT: '.$this->last_reply, self::DEBUG_SERVER);
897 897
 
898
-        if (!in_array($code, (array)$expect)) {
898
+        if (!in_array($code, (array) $expect)) {
899 899
             $this->setError(
900 900
                 "$command command failed",
901 901
                 $detail,
@@ -903,7 +903,7 @@  discard block
 block discarded – undo
903 903
                 $code_ex
904 904
             );
905 905
             $this->edebug(
906
-                'SMTP ERROR: ' . $this->error['error'] . ': ' . $this->last_reply,
906
+                'SMTP ERROR: '.$this->error['error'].': '.$this->last_reply,
907 907
                 self::DEBUG_CLIENT
908 908
             );
909 909
             return false;
@@ -965,7 +965,7 @@  discard block
 block discarded – undo
965 965
     public function turn()
966 966
     {
967 967
         $this->setError('The SMTP TURN command is not implemented');
968
-        $this->edebug('SMTP NOTICE: ' . $this->error['error'], self::DEBUG_CLIENT);
968
+        $this->edebug('SMTP NOTICE: '.$this->error['error'], self::DEBUG_CLIENT);
969 969
         return false;
970 970
     }
971 971
 
@@ -1086,7 +1086,7 @@  discard block
 block discarded – undo
1086 1086
             $info = stream_get_meta_data($this->smtp_conn);
1087 1087
             if ($info['timed_out']) {
1088 1088
                 $this->edebug(
1089
-                    'SMTP -> get_lines(): timed-out (' . $this->Timeout . ' sec)',
1089
+                    'SMTP -> get_lines(): timed-out ('.$this->Timeout.' sec)',
1090 1090
                     self::DEBUG_LOWLEVEL
1091 1091
                 );
1092 1092
                 break;
@@ -1095,7 +1095,7 @@  discard block
 block discarded – undo
1095 1095
             if ($endtime and time() > $endtime) {
1096 1096
                 $this->edebug(
1097 1097
                     'SMTP -> get_lines(): timelimit reached ('.
1098
-                    $this->Timelimit . ' sec)',
1098
+                    $this->Timelimit.' sec)',
1099 1099
                     self::DEBUG_LOWLEVEL
1100 1100
                 );
1101 1101
                 break;
@@ -1207,7 +1207,7 @@  discard block
 block discarded – undo
1207 1207
             $errmsg
1208 1208
         );
1209 1209
         $this->edebug(
1210
-            $notice . ' Error number ' . $errno . '. "Error notice: ' . $errmsg,
1210
+            $notice.' Error number '.$errno.'. "Error notice: '.$errmsg,
1211 1211
             self::DEBUG_CONNECTION
1212 1212
         );
1213 1213
     }
Please login to merge, or discard this patch.
includes/libraries/Email/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.
includes/libraries/Encryption/GibberishAES/GibberishAES.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
             mcrypt_module_close($cipher);
237 237
 
238 238
             return $encrypted;
239
-	}
239
+    }
240 240
 
241 241
         return false;
242 242
     }
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
             mcrypt_module_close($cipher);
264 264
 
265 265
             return self::remove_pkcs7_pad($decrypted);
266
-	}
266
+    }
267 267
 
268 268
         return false;
269 269
     }
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -51,8 +51,8 @@  discard block
 block discarded – undo
51 51
 
52 52
 class GibberishAES {
53 53
 
54
-    protected static $key_size = 256;            // The default key size in bits
55
-    protected static $valid_key_sizes = array(128, 192, 256);   // Sizes in bits
54
+    protected static $key_size = 256; // The default key size in bits
55
+    protected static $valid_key_sizes = array(128, 192, 256); // Sizes in bits
56 56
 
57 57
     protected static $openssl_random_pseudo_bytes_exists;
58 58
     protected static $openssl_encrypt_exists;
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
         $key = substr($salted, 0, $key_length);
95 95
         $iv = substr($salted, $key_length, $block_length);
96 96
 
97
-        return base64_encode('Salted__' . $salt . self::aes_cbc_encrypt($string, $key, $iv));
97
+        return base64_encode('Salted__'.$salt.self::aes_cbc_encrypt($string, $key, $iv));
98 98
     }
99 99
 
100 100
     /**
@@ -272,7 +272,7 @@  discard block
 block discarded – undo
272 272
 
273 273
     protected static function pkcs7_pad($string) {
274 274
 
275
-        $block_length = 16;    // 128 bits: $block_length = mcrypt_get_block_size(MCRYPT_RIJNDAEL_128, MCRYPT_MODE_CBC);
275
+        $block_length = 16; // 128 bits: $block_length = mcrypt_get_block_size(MCRYPT_RIJNDAEL_128, MCRYPT_MODE_CBC);
276 276
         $pad = $block_length - (strlen($string) % $block_length);
277 277
 
278 278
         return $string.str_repeat(chr($pad), $pad);
@@ -280,7 +280,7 @@  discard block
 block discarded – undo
280 280
 
281 281
     protected static function remove_pkcs7_pad($string) {
282 282
 
283
-        $block_length = 16;    // 128 bits: $block_length = mcrypt_get_block_size(MCRYPT_RIJNDAEL_128, MCRYPT_MODE_CBC);
283
+        $block_length = 16; // 128 bits: $block_length = mcrypt_get_block_size(MCRYPT_RIJNDAEL_128, MCRYPT_MODE_CBC);
284 284
         $len = strlen($string);
285 285
         $pad = ord($string[$len - 1]);
286 286
 
Please login to merge, or discard this patch.
includes/libraries/Encryption/PwGen/pwgen.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -87,10 +87,10 @@  discard block
 block discarded – undo
87 87
             if ($this->pw_length < 5) {
88 88
                 $this->pwgen = 'pwRand';
89 89
             }
90
-            if ($this->pw_length <=  2) {
90
+            if ($this->pw_length <= 2) {
91 91
                 $this->setCapitalize(false);
92 92
             }
93
-            if ($this->pw_length <=  1) {
93
+            if ($this->pw_length <= 1) {
94 94
                 $this->setNumerals(false);
95 95
             }
96 96
         } else {
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
 
197 197
     public function generate()
198 198
     {
199
-        if ($this->pwgen ==  'pwPhonemes') {
199
+        if ($this->pwgen == 'pwPhonemes') {
200 200
             $this->pwPhonemes();
201 201
         } else { // $this->pwgen == 'pwRand'
202 202
             $this->pwRand();
@@ -217,13 +217,13 @@  discard block
 block discarded – undo
217 217
             $first = 1;
218 218
 
219 219
             while ($c < $this->pw_length) {
220
-                $i = self::myRand(0, count(self::$elements)-1);
220
+                $i = self::myRand(0, count(self::$elements) - 1);
221 221
                 $str = self::$elements[$i]->str;
222 222
                 $len = strlen($str);
223 223
                 $flags = self::$elements[$i]->flags;
224 224
 
225 225
                 // Filter on the basic type of the next element
226
-                if (($flags & $should_be) ==  0) {
226
+                if (($flags & $should_be) == 0) {
227 227
                     continue;
228 228
                 }
229 229
                 // Handle the NOT_FIRST flag
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
                     continue;
240 240
                 }
241 241
                 // Don't allow us to overflow the buffer
242
-                if ($len > $this->pw_length-$c) {
242
+                if ($len > $this->pw_length - $c) {
243 243
                     continue;
244 244
                 }
245 245
 
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
                  * let's do it!
256 256
                  */
257 257
                 for ($j = 0; $j < $len; $j++) {
258
-                    $this->password[$c+$j] = $str[$j];
258
+                    $this->password[$c + $j] = $str[$j];
259 259
                 }
260 260
 
261 261
                 // Handle PW_UPPERS
@@ -266,10 +266,10 @@  discard block
 block discarded – undo
266 266
                     }
267 267
                 }
268 268
 
269
-                $c +=  $len;
269
+                $c += $len;
270 270
 
271 271
                 // Time to stop?
272
-                if ($c >=  $this->pw_length) {
272
+                if ($c >= $this->pw_length) {
273 273
                     break;
274 274
                 }
275 275
 
@@ -294,7 +294,7 @@  discard block
 block discarded – undo
294 294
                 if ($this->pwgen_flags & self::PW_SYMBOLS) {
295 295
                     if (!$first && (self::myRand(0, 9) < 2)) {
296 296
                         do {
297
-                            $ch = self::$pw_symbols[self::myRand(0, strlen(self::$pw_symbols)-1)];
297
+                            $ch = self::$pw_symbols[self::myRand(0, strlen(self::$pw_symbols) - 1)];
298 298
                         } while (($this->pwgen_flags & self::PW_AMBIGUOUS) &&
299 299
                             strpos(self::$pw_ambiguous, $ch) !== false);
300 300
                         $this->password[$c++] = $ch;
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
                 }
304 304
 
305 305
                 // OK, figure out what the next element should be
306
-                if ($should_be ==  self::CONSONANT) {
306
+                if ($should_be == self::CONSONANT) {
307 307
                     $should_be = self::VOWEL;
308 308
                 } else { // should_be = =  VOWEL
309 309
                     if (($prev & self::VOWEL) || ($flags & self::DIPHTHONG) || (self::myRand(0, 9) > 3)
@@ -343,7 +343,7 @@  discard block
 block discarded – undo
343 343
             $i = 0;
344 344
 
345 345
             while ($i < $this->pw_length) {
346
-                $ch = $chars[self::myRand(0, $len-1)];
346
+                $ch = $chars[self::myRand(0, $len - 1)];
347 347
                 if (($this->pwgen_flags & self::PW_AMBIGUOUS) &&
348 348
                     strpos(self::$pw_ambiguous, $ch) !== false) {
349 349
                     continue;
Please login to merge, or discard this patch.
includes/libraries/Encryption/Encryption/Core.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -50,25 +50,25 @@  discard block
 block discarded – undo
50 50
     {
51 51
         if (Core::ourStrlen($ctr) !== Core::BLOCK_BYTE_SIZE) {
52 52
             throw new Ex\EnvironmentIsBrokenException(
53
-              'Trying to increment a nonce of the wrong size.'
53
+                'Trying to increment a nonce of the wrong size.'
54 54
             );
55 55
         }
56 56
 
57 57
         if (! \is_int($inc)) {
58 58
             throw new Ex\EnvironmentIsBrokenException(
59
-              'Trying to increment nonce by a non-integer.'
59
+                'Trying to increment nonce by a non-integer.'
60 60
             );
61 61
         }
62 62
 
63 63
         if ($inc < 0) {
64 64
             throw new Ex\EnvironmentIsBrokenException(
65
-              'Trying to increment nonce by a negative amount.'
65
+                'Trying to increment nonce by a negative amount.'
66 66
             );
67 67
         }
68 68
 
69 69
         if ($inc > PHP_INT_MAX - 255) {
70 70
             throw new Ex\EnvironmentIsBrokenException(
71
-              'Integer overflow may occur.'
71
+                'Integer overflow may occur.'
72 72
             );
73 73
         }
74 74
 
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
             /* Detect integer overflow and fail. */
83 83
             if (! \is_int($sum)) {
84 84
                 throw new Ex\EnvironmentIsBrokenException(
85
-                  'Integer overflow in CTR mode nonce increment.'
85
+                    'Integer overflow in CTR mode nonce increment.'
86 86
                 );
87 87
             }
88 88
 
Please login to merge, or discard this patch.
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
             );
55 55
         }
56 56
 
57
-        if (! \is_int($inc)) {
57
+        if (!\is_int($inc)) {
58 58
             throw new Ex\EnvironmentIsBrokenException(
59 59
               'Trying to increment nonce by a non-integer.'
60 60
             );
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
             $sum = \ord($ctr[$i]) + $inc;
81 81
 
82 82
             /* Detect integer overflow and fail. */
83
-            if (! \is_int($sum)) {
83
+            if (!\is_int($sum)) {
84 84
                 throw new Ex\EnvironmentIsBrokenException(
85 85
                   'Integer overflow in CTR mode nonce increment.'
86 86
                 );
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
         $digest_length = Core::ourStrlen(\hash_hmac($hash, '', '', true));
133 133
 
134 134
         // Sanity-check the desired output length.
135
-        if (empty($length) || ! \is_int($length) ||
135
+        if (empty($length) || !\is_int($length) ||
136 136
             $length < 0 || $length > 255 * $digest_length) {
137 137
             throw new Ex\EnvironmentIsBrokenException(
138 138
                 'Bad output length requested of HKDF.'
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
             // T(i) = HMAC-Hash(PRK, T(i-1) | info | 0x??)
164 164
             $last_block = \hash_hmac(
165 165
                 $hash,
166
-                $last_block . $info . \chr($block_index),
166
+                $last_block.$info.\chr($block_index),
167 167
                 $prk,
168 168
                 true
169 169
             );
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
      */
228 228
     public static function ensureConstantExists($name)
229 229
     {
230
-        if (! \defined($name)) {
230
+        if (!\defined($name)) {
231 231
             throw new Ex\EnvironmentIsBrokenException();
232 232
         }
233 233
     }
@@ -244,9 +244,9 @@  discard block
 block discarded – undo
244 244
         // manage specific case of random_bytes
245 245
         if ($name === "random_bytes") {
246 246
             // random_bytes is a PHP7 new function required
247
-            require_once(substr(realpath(dirname(__FILE__)),0, strpos(realpath(dirname(__FILE__)), "Encryption")).'/misc/random_compat/random.php');
247
+            require_once(substr(realpath(dirname(__FILE__)), 0, strpos(realpath(dirname(__FILE__)), "Encryption")).'/misc/random_compat/random.php');
248 248
         }
249
-        if (! \function_exists($name)) {
249
+        if (!\function_exists($name)) {
250 250
             throw new Ex\EnvironmentIsBrokenException();
251 251
         }
252 252
     }
@@ -304,7 +304,7 @@  discard block
 block discarded – undo
304 304
         if ($exists) {
305 305
             // mb_substr($str, 0, NULL, '8bit') returns an empty string on PHP
306 306
             // 5.3, so we have to find the length ourselves.
307
-            if (! isset($length)) {
307
+            if (!isset($length)) {
308 308
                 if ($start >= 0) {
309 309
                     $length = Core::ourStrlen($str) - $start;
310 310
                 } else {
@@ -363,17 +363,17 @@  discard block
 block discarded – undo
363 363
     public static function pbkdf2($algorithm, $password, $salt, $count, $key_length, $raw_output = false)
364 364
     {
365 365
         // Type checks:
366
-        if (! \is_string($algorithm)) {
366
+        if (!\is_string($algorithm)) {
367 367
             throw new \InvalidArgumentException(
368 368
                 'pbkdf2(): algorithm must be a string'
369 369
             );
370 370
         }
371
-        if (! \is_string($password)) {
371
+        if (!\is_string($password)) {
372 372
             throw new \InvalidArgumentException(
373 373
                 'pbkdf2(): password must be a string'
374 374
             );
375 375
         }
376
-        if (! \is_string($salt)) {
376
+        if (!\is_string($salt)) {
377 377
             throw new \InvalidArgumentException(
378 378
                 'pbkdf2(): salt must be a string'
379 379
             );
@@ -383,7 +383,7 @@  discard block
 block discarded – undo
383 383
         $key_length += 0;
384 384
 
385 385
         $algorithm = \strtolower($algorithm);
386
-        if (! \in_array($algorithm, \hash_algos(), true)) {
386
+        if (!\in_array($algorithm, \hash_algos(), true)) {
387 387
             throw new Ex\EnvironmentIsBrokenException(
388 388
                 'Invalid or unsupported hash algorithm.'
389 389
             );
@@ -394,7 +394,7 @@  discard block
 block discarded – undo
394 394
             'sha1', 'sha224', 'sha256', 'sha384', 'sha512',
395 395
             'ripemd160', 'ripemd256', 'ripemd320', 'whirlpool',
396 396
         ];
397
-        if (! \in_array($algorithm, $ok_algorithms, true)) {
397
+        if (!\in_array($algorithm, $ok_algorithms, true)) {
398 398
             throw new Ex\EnvironmentIsBrokenException(
399 399
                 'Algorithm is not a secure cryptographic hash function.'
400 400
             );
@@ -408,7 +408,7 @@  discard block
 block discarded – undo
408 408
 
409 409
         if (\function_exists('hash_pbkdf2')) {
410 410
             // The output length is in NIBBLES (4-bits) if $raw_output is false!
411
-            if (! $raw_output) {
411
+            if (!$raw_output) {
412 412
                 $key_length = $key_length * 2;
413 413
             }
414 414
             return \hash_pbkdf2($algorithm, $password, $salt, $count, $key_length, $raw_output);
@@ -420,7 +420,7 @@  discard block
 block discarded – undo
420 420
         $output = '';
421 421
         for ($i = 1; $i <= $block_count; $i++) {
422 422
             // $i encoded as 4 bytes, big endian.
423
-            $last = $salt . \pack('N', $i);
423
+            $last = $salt.\pack('N', $i);
424 424
             // first iteration
425 425
             $last = $xorsum = \hash_hmac($algorithm, $last, $password, true);
426 426
             // perform the other $count - 1 iterations
Please login to merge, or discard this patch.