Code Duplication    Length = 7-7 lines in 2 locations

src/Helper/Converter.php 2 locations

@@ 160-166 (lines=7) @@
157
158
        $this->logger->info('start creating patterns from the ini data');
159
160
        foreach ($iniParser->createPatterns($iniString) as $patternsHashList) {
161
            foreach ($patternsHashList as $subkey => $content) {
162
                if (!$this->cache->setItem('browscap.patterns.' . $subkey, $content, true)) {
163
                    $this->logger->error('could not write pattern data "' . $subkey . '" to the cache');
164
                }
165
            }
166
        }
167
168
        $this->logger->info('finished creating patterns from the ini data');
169
@@ 172-178 (lines=7) @@
169
170
        $this->logger->info('start creating data from the ini data');
171
172
        foreach ($iniParser->createIniParts($iniString) as $patternsContentList) {
173
            foreach ($patternsContentList as $subkey => $content) {
174
                if (!$this->cache->setItem('browscap.iniparts.' . $subkey, $content, true)) {
175
                    $this->logger->error('could not write property data "' . $subkey . '" to the cache');
176
                }
177
            }
178
        }
179
180
        $this->cache->setItem('browscap.releaseDate', $this->getIniReleaseDate($iniString), false);
181