1
1
<?php
2
2
3
+ declare (strict_types=1 );
4
+
3
5
namespace Stackkit \LaravelDatabaseEmails ;
4
6
5
7
class Config
@@ -9,7 +11,7 @@ class Config
9
11
*
10
12
* @return int
11
13
*/
12
- public static function maxAttemptCount ()
14
+ public static function maxAttemptCount (): int
13
15
{
14
16
return max (config ('laravel-database-emails.attempts ' , 1 ), 3 );
15
17
}
@@ -19,7 +21,7 @@ public static function maxAttemptCount()
19
21
*
20
22
* @return bool
21
23
*/
22
- public static function encryptEmails ()
24
+ public static function encryptEmails (): bool
23
25
{
24
26
return config ('laravel-database-emails.encrypt ' , false );
25
27
}
@@ -29,7 +31,7 @@ public static function encryptEmails()
29
31
*
30
32
* @return bool
31
33
*/
32
- public static function testing ()
34
+ public static function testing (): bool
33
35
{
34
36
return (bool ) config ('laravel-database-emails.testing.enabled ' , false );
35
37
}
@@ -39,7 +41,7 @@ public static function testing()
39
41
*
40
42
* @return string
41
43
*/
42
- public static function testEmailAddress ()
44
+ public static function testEmailAddress (): string
43
45
{
44
46
return config ('laravel-database-emails.testing.email ' );
45
47
}
@@ -49,7 +51,7 @@ public static function testEmailAddress()
49
51
*
50
52
* @return int
51
53
*/
52
- public static function cronjobEmailLimit ()
54
+ public static function cronjobEmailLimit (): int
53
55
{
54
56
return config ('laravel-database-emails.limit ' , 20 );
55
57
}
@@ -59,7 +61,7 @@ public static function cronjobEmailLimit()
59
61
*
60
62
* @return bool
61
63
*/
62
- public static function sendImmediately ()
64
+ public static function sendImmediately (): bool
63
65
{
64
66
return (bool ) config ('laravel-database-emails.immediately ' , false );
65
67
}
0 commit comments