Skip to content

Commit

Permalink
Updates doc blocks.
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdnbrk committed Oct 29, 2018
1 parent af5e755 commit f0d5eee
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
10 changes: 3 additions & 7 deletions src/GtinValidationServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand All @@ -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)
Expand All @@ -79,7 +76,6 @@ private function getValidationErrorMessage($rule)
*
* @param string $attribute
* @param string $rule
*
* @return string|null
*/
private function getCustomErrorMessage($attribute, $rule)
Expand Down
3 changes: 1 addition & 2 deletions src/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions src/ValidatorExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f0d5eee

Please sign in to comment.