Code Duplication    Length = 3-3 lines in 2 locations

src/Bible.php 2 locations

@@ 28-30 (lines=3) @@
25
        if (! file_exists(__DIR__.'/../bibles/'.$lang)) {
26
            throw new \Exception("The language [$lang] doesn't exist");
27
        }
28
        if (! file_exists(__DIR__.'/../bibles/'.$lang.'/Books.json')) {
29
            throw new \Exception("Index of available books not found for [$lang]");
30
        }
31
        $this->lang = $lang;
32
    }
33
@@ 36-38 (lines=3) @@
33
34
    public function version($version)
35
    {
36
        if (! file_exists(__DIR__.'/../bibles/'.$this->lang.'/'.$version)) {
37
            throw new \Exception("The bible version [$version] for language [$this->lang] doesn't exist");
38
        }
39
        $this->version = $version;
40
    }
41