Code Duplication    Length = 14-14 lines in 2 locations

src/Cache/BrowscapCache.php 2 locations

@@ 94-107 (lines=14) @@
91
     *
92
     * @return int
93
     */
94
    public function getVersion()
95
    {
96
        if ($this->version === null) {
97
            $success = true;
98
99
            $version = $this->getItem('browscap.version', false, $success);
100
101
            if ($version !== null && $success) {
102
                $this->version = (int) $version;
103
            }
104
        }
105
106
        return $this->version;
107
    }
108
109
    /**
110
     * Gets the release date of the Browscap data
@@ 134-147 (lines=14) @@
131
     *
132
     * @return string
133
     */
134
    public function getType()
135
    {
136
        if ($this->type === null) {
137
            $success = true;
138
    
139
            $type = $this->getItem('browscap.type', false, $success);
140
    
141
            if ($type !== null && $success) {
142
                $this->type = $type;
143
            }
144
        }
145
    
146
        return $this->type;
147
    }
148
149
    /**
150
     * Get an item.