Code Duplication    Length = 5-5 lines in 2 locations

sample/Application.php 2 locations

@@ 73-77 (lines=5) @@
70
71
        // let's try validation with valid input
72
        $input = null;
73
        if ($validator->validate($input) === true) {
74
            $this->console("Validation OK for `null`." . PHP_EOL);
75
        } else {
76
            assert(false, 'We should not be here.');
77
        }
78
        // another one
79
        $input = 'Hello';
80
        if ($validator->validate($input) === true) {
@@ 80-84 (lines=5) @@
77
        }
78
        // another one
79
        $input = 'Hello';
80
        if ($validator->validate($input) === true) {
81
            $this->console("Validation OK for `$input`." . PHP_EOL);
82
        } else {
83
            assert(false, 'We should not be here.');
84
        }
85
        // this one should not pass the validation
86
        $input = 'This string is too long.';
87
        if ($validator->validate($input) === false) {