11<?php
22
3+ declare (strict_types=1 );
4+
35namespace Stackkit \LaravelDatabaseEmails ;
46
57class Config
@@ -9,7 +11,7 @@ class Config
911 *
1012 * @return int
1113 */
12- public static function maxAttemptCount ()
14+ public static function maxAttemptCount (): int
1315 {
1416 return max (config ('laravel-database-emails.attempts ' , 1 ), 3 );
1517 }
@@ -19,7 +21,7 @@ public static function maxAttemptCount()
1921 *
2022 * @return bool
2123 */
22- public static function encryptEmails ()
24+ public static function encryptEmails (): bool
2325 {
2426 return config ('laravel-database-emails.encrypt ' , false );
2527 }
@@ -29,7 +31,7 @@ public static function encryptEmails()
2931 *
3032 * @return bool
3133 */
32- public static function testing ()
34+ public static function testing (): bool
3335 {
3436 return (bool ) config ('laravel-database-emails.testing.enabled ' , false );
3537 }
@@ -39,7 +41,7 @@ public static function testing()
3941 *
4042 * @return string
4143 */
42- public static function testEmailAddress ()
44+ public static function testEmailAddress (): string
4345 {
4446 return config ('laravel-database-emails.testing.email ' );
4547 }
@@ -49,7 +51,7 @@ public static function testEmailAddress()
4951 *
5052 * @return int
5153 */
52- public static function cronjobEmailLimit ()
54+ public static function cronjobEmailLimit (): int
5355 {
5456 return config ('laravel-database-emails.limit ' , 20 );
5557 }
@@ -59,7 +61,7 @@ public static function cronjobEmailLimit()
5961 *
6062 * @return bool
6163 */
62- public static function sendImmediately ()
64+ public static function sendImmediately (): bool
6365 {
6466 return (bool ) config ('laravel-database-emails.immediately ' , false );
6567 }
0 commit comments