Code Duplication    Length = 10-10 lines in 3 locations

Factory/DriverFactory.php 3 locations

@@ 46-55 (lines=10) @@
43
    /**
44
     * @param string $driver
45
     */
46
    protected function addAnnotationDriver($driver)
47
    {
48
        $this->checkDriver($driver);
49
50
        if (!isset($this->drivers['annotation'])) {
51
            $this->drivers['annotation'] = array();
52
        }
53
54
        $this->drivers['annotation'][] = $driver;
55
    }
56
57
    /**
58
     * @param string $driver
@@ 68-77 (lines=10) @@
65
    /**
66
     * @param string $driver
67
     */
68
    protected function addYamlDriver($driver)
69
    {
70
        $this->checkDriver($driver);
71
72
        if (!isset($this->drivers['yaml'])) {
73
            $this->drivers['yaml'] = array();
74
        }
75
76
        $this->drivers['yaml'][] = $driver;
77
    }
78
79
    /**
80
     * @param string $driver
@@ 90-99 (lines=10) @@
87
    /**
88
     * @param string $driver
89
     */
90
    protected function addXmlDriver($driver)
91
    {
92
        $this->checkDriver($driver);
93
94
        if (!isset($this->drivers['xml'])) {
95
            $this->drivers['xml'] = array();
96
        }
97
98
        $this->drivers['xml'][] = $driver;
99
    }
100
101
    /**
102
     * @param Reader $reader