src/Parser/Helper/GetData.php 1 location
|
@@ 115-119 (lines=5) @@
|
112 |
|
$subkey = SubKey::getIniPartCacheSubKey($patternhash); |
113 |
|
|
114 |
|
try { |
115 |
|
if (! $this->cache->hasItem('browscap.iniparts.' . $subkey, true)) { |
116 |
|
$this->logger->debug('cache key "browscap.iniparts.' . $subkey . '" not found'); |
117 |
|
|
118 |
|
return []; |
119 |
|
} |
120 |
|
} catch (InvalidArgumentException $e) { |
121 |
|
$this->logger->error(new \InvalidArgumentException('an error occured while checking a inipart in the cache', 0, $e)); |
122 |
|
return []; |
src/Parser/Helper/GetPattern.php 1 location
|
@@ 66-70 (lines=5) @@
|
63 |
|
$tmpSubkey = SubKey::getPatternCacheSubkey($tmpStart); |
64 |
|
|
65 |
|
try { |
66 |
|
if (! $this->cache->hasItem('browscap.patterns.' . $tmpSubkey, true)) { |
67 |
|
$this->logger->debug('cache key "browscap.patterns.' . $tmpSubkey . '" not found'); |
68 |
|
|
69 |
|
continue; |
70 |
|
} |
71 |
|
} catch (InvalidArgumentException $e) { |
72 |
|
$this->logger->error(new \InvalidArgumentException('an error occured while checking a pattern in the cache', 0, $e)); |
73 |
|
continue; |