Code Duplication    Length = 9-9 lines in 2 locations

src/PlaygroundCore/Validator/Blacklist.php 1 location

@@ 48-56 (lines=9) @@
45
     * @return Blacklist Provides a fluent interface
46
     * @throws Exception\InvalidArgumentException When file is not found
47
     */
48
    public function setFile($file)
49
    {
50
        if (empty($file) || false === stream_resolve_include_path($file)) {
51
            throw new Exception\InvalidArgumentException('Invalid options to validator provided');
52
        }
53
54
        $this->options['file'] = $file;
55
        return $this;
56
    }
57
 
58
    public function isValid($value)
59
    {

src/PlaygroundCore/Validator/MailDomain.php 1 location

@@ 48-56 (lines=9) @@
45
     * @return MailDomain Provides a fluent interface
46
     * @throws Exception\InvalidArgumentException When file is not found
47
     */
48
    public function setFile($file)
49
    {
50
        if (empty($file) || false === stream_resolve_include_path($file)) {
51
            throw new Exception\InvalidArgumentException('Invalid options to validator provided');
52
        }
53
54
        $this->options['file'] = $file;
55
        return $this;
56
    }
57
 
58
    public function isValid($value)
59
    {