From f0d5eee561a9182734ab75712395d17ff95caeb0 Mon Sep 17 00:00:00 2001 From: Mark van den Broek Date: Mon, 29 Oct 2018 16:06:12 +0100 Subject: [PATCH] Updates doc blocks. --- src/GtinValidationServiceProvider.php | 10 +++------- src/Validator.php | 3 +-- src/ValidatorExtension.php | 2 ++ 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/src/GtinValidationServiceProvider.php b/src/GtinValidationServiceProvider.php index c53fcc6..259e85d 100644 --- a/src/GtinValidationServiceProvider.php +++ b/src/GtinValidationServiceProvider.php @@ -29,10 +29,9 @@ public function boot() * Return the matching error message for the key. * * @param \Illuminate\Contracts\Translation\Translator $translator - * @param array $rules - * @param array $messages - * @param string $key - * + * @param array $rules + * @param array $messages + * @param string $key * @return string */ private function getErrorMessage($translator, $rules, $messages, $key) @@ -52,7 +51,6 @@ private function getErrorMessage($translator, $rules, $messages, $key) * Get the default error message for a given key. * * @param string $rule - * * @return string */ private function getPackageDefaultErrorMessage($rule) @@ -64,7 +62,6 @@ private function getPackageDefaultErrorMessage($rule) * Get the validation error message for a given key. * * @param string $rule - * * @return string|null */ private function getValidationErrorMessage($rule) @@ -79,7 +76,6 @@ private function getValidationErrorMessage($rule) * * @param string $attribute * @param string $rule - * * @return string|null */ private function getCustomErrorMessage($attribute, $rule) diff --git a/src/Validator.php b/src/Validator.php index d8a969f..173a1c3 100644 --- a/src/Validator.php +++ b/src/Validator.php @@ -8,8 +8,7 @@ class Validator * Checks whether the given value is a valid * Global Trade Item Number (GTIN). * - * @param string|int $value The value to be checked - * + * @param string|int $value * @return bool */ public static function isGtin($value) diff --git a/src/ValidatorExtension.php b/src/ValidatorExtension.php index 6a82842..3527dfd 100644 --- a/src/ValidatorExtension.php +++ b/src/ValidatorExtension.php @@ -7,6 +7,8 @@ class ValidatorExtension extends \Illuminate\Validation\Validator /** * Proved 'gtin' validation rule for Laravel. * + * @param string $attribute + * @param mixed $value * @return bool */ public function validateGtin($attribute, $value, $parameters)