File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -7,16 +7,16 @@ class VisitsException extends FrameworkException implements ExceptionInterface
77{
88 public static function forNoTrackingMethod ()
99 {
10- return new static (" No tracking method selected. " );
10+ return new static (lang ( ' Visits.noTrackingMethod ' ) );
1111 }
1212
1313 public static function forInvalidResetMinutes ()
1414 {
15- return new static (" Minutes-to-reset must be a positive integer or zero. " );
15+ return new static (lang ( ' Visits.invalidResetMinutes ' ) );
1616 }
1717
1818 public static function forMissingDatabaseTable (string $ table )
1919 {
20- return new static (" Table ` { $ table} ` missing for visit storage " );
20+ return new static (lang ( ' Visits.missingDatabaseTable ' , [ $ table]) );
2121 }
2222}
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ return [
4+ 'noTrackingMethod ' => 'No tracking method selected. ' ,
5+ 'invalidResetMinutes ' => 'Minutes-to-reset must be a positive integer or zero. ' ,
6+ 'missingDatabaseTable ' => 'Table "{0}" missing for visit storage. ' ,
7+ ];
You can’t perform that action at this time.
0 commit comments