Skip to content

Commit 4a49b97

Browse files
committed
fix: Apply suggestions
1 parent dfd7350 commit 4a49b97

File tree

8 files changed

+10
-21
lines changed

8 files changed

+10
-21
lines changed

system/Honeypot/Exceptions/HoneypotException.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,6 @@ public static function forNoNameField()
3737
return new static(lang('Honeypot.noNameField'));
3838
}
3939

40-
/**
41-
* Thrown when the hidden value of config is false.
42-
*
43-
* @return static
44-
*/
45-
public static function forNoHiddenValue()
46-
{
47-
return new static(lang('Honeypot.noHiddenValue'));
48-
}
49-
5040
/**
5141
* Thrown when there are no data in the request of honeypot field.
5242
*

system/I18n/Exceptions/I18nException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public static function forInvalidOverDay(string $lastDay, string $day)
7272
*/
7373
public static function forInvalidHour(string $hour)
7474
{
75-
return new static(lang('Time.invalidHour', [$hour]));
75+
return new static(lang('Time.invalidHours', [$hour]));
7676
}
7777

7878
/**

system/Language/en/Honeypot.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,5 @@
1515
return [
1616
'noTemplate' => 'The HTML template for the Honeypot is not configured.',
1717
'noNameField' => 'The name of the Honeypot field has not been set.',
18-
'noHiddenValue' => 'The Honeypot should be invisible to humans.',
1918
'theClientIsABot' => 'The Honeypot client may be a bot.',
2019
];

system/Language/en/Router.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
// Router language settings
1515
return [
16-
'invalidParameterType' => 'A parameter does not match the expected type.',
16+
'invalidParameter' => 'A parameter does not match the expected type.',
1717
'missingDefaultRoute' => 'Unable to determine what should be displayed. A default route has not been specified in the routing file.',
1818
'invalidDynamicController' => 'A dynamic controller is not allowed for security reasons. Route handler: "{0}"',
1919
'invalidControllerName' => 'The namespace delimiter is a backslash (\\), not a slash (/). Route handler: "{0}"',

system/Language/en/Security.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,5 @@
1717
'insecureCookie' => 'Attempted to send a secure cookie over a non-secure connection.',
1818

1919
// @deprecated
20-
'invalidSameSite' => 'The SameSite value must be None, Lax, Strict, or a blank string. Given: "{0}"',
21-
'invalidSameSiteSetting' => 'The SameSite setting must be None, Lax, Strict, or a blank string. Given: {0}',
20+
'invalidSameSite' => 'The SameSite value must be None, Lax, Strict, or a blank string. Given: "{0}"',
2221
];

system/Language/en/Time.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,4 @@
3232
'yesterday' => 'Yesterday',
3333
'tomorrow' => 'Tomorrow',
3434
'now' => 'Just now',
35-
'invalidHour' => 'The supplied hour "{0}" is outside the range of allowed hours (1-24).',
3635
];

system/Router/Exceptions/RouterException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class RouterException extends FrameworkException implements ExceptionInterface
2828
*/
2929
public static function forInvalidParameterType()
3030
{
31-
return new static(lang('Router.invalidParameterType'));
31+
return new static(lang('Router.invalidParameter'));
3232
}
3333

3434
/**

user_guide_src/source/changelogs/v4.6.4.rst

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,19 @@ BREAKING
1818
Message Changes
1919
***************
2020

21-
- Added ``Honeypot.noTemplate``, ``Honeypot.noNameField``, ``Honeypot.noHiddenValue``, ``Honeypot.theClientIsABot``.
22-
- Added ``Time.invalidHour``.
23-
- Changed ``Router.invalidParameter`` to ``Router.invalidParameterType``.
24-
- Added deprecated ``Security.invalidSameSiteSetting``.
21+
- Added ``Honeypot.noTemplate``, ``Honeypot.noNameField``, ``Honeypot.theClientIsABot``.
2522

2623
*******
2724
Changes
2825
*******
2926

3027
- **Config:** Added the ``synchronous`` key for ``Config\Database::$tests``. For SQLite3 driver only.
3128

29+
Exceptions
30+
==========
31+
32+
- The unused ``CodeIgniter\Honeypot\Exceptions\HoneypotException::forNoHiddenValue()`` method has been removed.
33+
3234
************
3335
Deprecations
3436
************

0 commit comments

Comments
 (0)