This repository was archived by the owner on Feb 20, 2025. It is now read-only.
File tree 5 files changed +17
-3
lines changed
5 files changed +17
-3
lines changed Original file line number Diff line number Diff line change 30
30
},
31
31
"require" : {
32
32
"php" : " ^7.3 || ^8.0" ,
33
- "dragon-code/support" : " ^5.7 " ,
33
+ "dragon-code/support" : " ^5.8 " ,
34
34
"symfony/finder" : " ^4.0 || ^5.0 || ^6.0"
35
35
},
36
36
"require-dev" : {
Original file line number Diff line number Diff line change 4
4
5
5
use DragonCode \Support \Concerns \Makeable ;
6
6
use DragonCode \Support \Facades \Helpers \Boolean ;
7
+ use DragonCode \Support \Facades \Helpers \Str ;
7
8
8
9
class Stringify
9
10
{
@@ -16,9 +17,11 @@ public function get($value): string
16
17
return $ this ->fromBool ($ value );
17
18
18
19
case $ this ->isNumeric ($ value ):
19
- case $ this ->isString ($ value ):
20
20
return $ value ;
21
21
22
+ case $ this ->isString ($ value ):
23
+ return $ this ->fromString ($ value );
24
+
22
25
default :
23
26
return '' ;
24
27
}
@@ -43,4 +46,13 @@ public function fromBool(bool $value): string
43
46
{
44
47
return Boolean::convertToString ($ value );
45
48
}
49
+
50
+ public function fromString (string $ value ): string
51
+ {
52
+ if (Str::contains ($ value , [' ' , '# ' ])) {
53
+ return sprintf ('"%s" ' , $ value );
54
+ }
55
+
56
+ return $ value ;
57
+ }
46
58
}
Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ MAIL_LOG_CHANNEL=
57
57
MAIL_MAILER=smtp
58
58
MAIL_PASSWORD=
59
59
MAIL_PORT=587
60
+ MAIL_SENDMAIL_PATH="/usr/sbin/sendmail -t -i"
60
61
MAIL_USERNAME=
61
62
62
63
MEMCACHED_HOST=127.0.0.1
Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ MAIL_LOG_CHANNEL=
57
57
MAIL_MAILER=smtp
58
58
MAIL_PASSWORD=
59
59
MAIL_PORT=587
60
+ MAIL_SENDMAIL_PATH="/usr/sbin/sendmail -t -i"
60
61
MAIL_USERNAME=
61
62
62
63
MEMCACHED_HOST=127.0.0.1
Original file line number Diff line number Diff line change 58
58
59
59
'sendmail ' => [
60
60
'transport ' => 'sendmail ' ,
61
- 'path ' => ' /usr/sbin/sendmail -bs ' ,
61
+ 'path ' => env ( ' MAIL_SENDMAIL_PATH ' , ' /usr/sbin/sendmail -t -i ' ) ,
62
62
],
63
63
64
64
'log ' => [
You can’t perform that action at this time.
0 commit comments