We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0b5c75 commit d113ff8Copy full SHA for d113ff8
src/IsoCodesValidationServiceProvider.php
@@ -37,14 +37,15 @@ public function boot()
37
* Return translation key for correspondent method name
38
*
39
* @param string $name
40
- * @return string
+ * @return string | boolean
41
*/
42
private function getTranslationKeyFromMethodName($name)
43
{
44
- if (stripos($name, 'validate') !== false) {
45
- return Str::snake(substr($name, 8));
+ if (stripos($name, 'validate') === false) {
+ return false;
46
}
47
48
+ return Str::snake(substr($name, 8));
49
50
51
/**
0 commit comments