@@ -72,7 +72,7 @@  | 
                                                    ||
| 72 | 72 | } while (next($this->validationStack));  | 
                                                        
| 73 | 73 | |
| 74 | 74 | return $value;  | 
                                                        
| 75 | -        }catch (ValidationException $validationException) { | 
                                                        |
| 75 | +        } catch (ValidationException $validationException) { | 
                                                        |
| 76 | 76 |              if ($this->toBool) { | 
                                                        
| 77 | 77 | return false;  | 
                                                        
| 78 | 78 | }  | 
                                                        
@@ -23,7 +23,7 @@  | 
                                                    ||
| 23 | 23 | |
| 24 | 24 |          try { | 
                                                        
| 25 | 25 | $url = $parser->parseUrl($value);  | 
                                                        
| 26 | -        }catch (\InvalidArgumentException $e) { | 
                                                        |
| 26 | +        } catch (\InvalidArgumentException $e) { | 
                                                        |
| 27 | 27 | return false;  | 
                                                        
| 28 | 28 | }  | 
                                                        
| 29 | 29 | |
@@ -65,7 +65,7 @@  | 
                                                    ||
| 65 | 65 |          return $this->add(function($value, $nameKey) { | 
                                                        
| 66 | 66 |              try { | 
                                                        
| 67 | 67 |                  new \DateTime('@' . $value); | 
                                                        
| 68 | -            }catch (\Exception $e) { | 
                                                        |
| 68 | +            } catch (\Exception $e) { | 
                                                        |
| 69 | 69 |                  return $this->createError('date.timestamp', $value, $nameKey); | 
                                                        
| 70 | 70 | }  | 
                                                        
| 71 | 71 | });  | 
                                                        
@@ -2,7 +2,6 @@  | 
                                                    ||
| 2 | 2 | namespace Comfort\Validator;  | 
                                                        
| 3 | 3 | |
| 4 | 4 | use Comfort\Comfort;  | 
                                                        
| 5 | -use Comfort\Error;  | 
                                                        |
| 6 | 5 | use Comfort\Exception\ValidationException;  | 
                                                        
| 7 | 6 | use Comfort\ValidationError;  | 
                                                        
| 8 | 7 | |
@@ -21,9 +21,9 @@  | 
                                                    ||
| 21 | 21 | public function min($min)  | 
                                                        
| 22 | 22 |      { | 
                                                        
| 23 | 23 |          return $this->add(function($value, $nameKey) use ($min) { | 
                                                        
| 24 | -           if ($value < $min) { | 
                                                        |
| 25 | -               return $this->createError('number.min', $value, $nameKey); | 
                                                        |
| 26 | - }  | 
                                                        |
| 24 | +            if ($value < $min) { | 
                                                        |
| 25 | +                return $this->createError('number.min', $value, $nameKey); | 
                                                        |
| 26 | + }  | 
                                                        |
| 27 | 27 | });  | 
                                                        
| 28 | 28 | }  | 
                                                        
| 29 | 29 | |