diff --git a/src/Illuminate/Validation/Validator.php b/src/Illuminate/Validation/Validator.php index faf773ecd631..006ccaa0d4ae 100755 --- a/src/Illuminate/Validation/Validator.php +++ b/src/Illuminate/Validation/Validator.php @@ -7,7 +7,6 @@ use Countable; use Exception; use DateTimeZone; -use Carbon\Carbon; use RuntimeException; use Illuminate\Support\Arr; use Illuminate\Support\Str; @@ -1766,7 +1765,7 @@ protected function validateBefore($attribute, $value, $parameters) return $this->validateBeforeWithFormat($format, $value, $parameters); } - if(! $date = $this->getDateTimestamp($parameters[0])) { + if (! $date = $this->getDateTimestamp($parameters[0])) { $date = $this->getDateTimestamp($this->getValue($parameters[0])); } @@ -1808,7 +1807,7 @@ protected function validateAfter($attribute, $value, $parameters) return $this->validateAfterWithFormat($format, $value, $parameters); } - if(! $date = $this->getDateTimestamp($parameters[0])) { + if (! $date = $this->getDateTimestamp($parameters[0])) { $date = $this->getDateTimestamp($this->getValue($parameters[0])); } @@ -1901,7 +1900,7 @@ protected function getDateFormat($attribute) } /** - * Get the date timestamp + * Get the date timestamp. * * @param $value * @return mixed