Skip to content

Commit 31a83ed

Browse files
committed
Dev: Define the comment of exception.
1 parent 39d09d9 commit 31a83ed

1 file changed

Lines changed: 24 additions & 4 deletions

File tree

system/Honeypot/Exceptions/HoneypotException.php

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,42 @@
1616

1717
class HoneypotException extends ConfigException implements ExceptionInterface
1818
{
19-
public static function forNoTemplate(): self
19+
/**
20+
* Thrown when the template value of config is empty.
21+
*
22+
* @return self
23+
*/
24+
public static function forNoTemplate()
2025
{
2126
return new static(lang('Honeypot.noTemplate'));
2227
}
2328

24-
public static function forNoNameField(): self
29+
/**
30+
* Thrown when the name value of config is empty.
31+
*
32+
* @return self
33+
*/
34+
public static function forNoNameField()
2535
{
2636
return new static(lang('Honeypot.noNameField'));
2737
}
2838

29-
public static function forNoHiddenValue(): self
39+
/**
40+
* Thrown when the hidden value of config is false.
41+
*
42+
* @return self
43+
*/
44+
public static function forNoHiddenValue()
3045
{
3146
return new static(lang('Honeypot.noHiddenValue'));
3247
}
3348

34-
public static function isBot(): self
49+
/**
50+
* Thrown when there are no data in the request of honeypot field.
51+
*
52+
* @return self
53+
*/
54+
public static function isBot()
3555
{
3656
return new static(lang('Honeypot.theClientIsABot'));
3757
}

0 commit comments

Comments
 (0)