Code Duplication    Length = 7-7 lines in 3 locations

DataCollector/DoctrineDataCollector.php 3 locations

@@ 115-121 (lines=7) @@
112
            $caches['counts']['hits'] += $cacheLoggerStats->getHitCount();
113
            $caches['counts']['misses'] += $cacheLoggerStats->getMissCount();
114
115
            foreach ($cacheLoggerStats->getRegionsPut() as $key => $value) {
116
                if (!isset($caches['regions']['puts'][$key])) {
117
                    $caches['regions']['puts'][$key] = 0;
118
                }
119
120
                $caches['regions']['puts'][$key] += $value;
121
            }
122
123
            foreach ($cacheLoggerStats->getRegionsHit() as $key => $value) {
124
                if (!isset($caches['regions']['hits'][$key])) {
@@ 123-129 (lines=7) @@
120
                $caches['regions']['puts'][$key] += $value;
121
            }
122
123
            foreach ($cacheLoggerStats->getRegionsHit() as $key => $value) {
124
                if (!isset($caches['regions']['hits'][$key])) {
125
                    $caches['regions']['hits'][$key] = 0;
126
                }
127
128
                $caches['regions']['hits'][$key] += $value;
129
            }
130
131
            foreach ($cacheLoggerStats->getRegionsMiss() as $key => $value) {
132
                if (!isset($caches['regions']['misses'][$key])) {
@@ 131-137 (lines=7) @@
128
                $caches['regions']['hits'][$key] += $value;
129
            }
130
131
            foreach ($cacheLoggerStats->getRegionsMiss() as $key => $value) {
132
                if (!isset($caches['regions']['misses'][$key])) {
133
                    $caches['regions']['misses'][$key] = 0;
134
                }
135
136
                $caches['regions']['misses'][$key] += $value;
137
            }
138
        }
139
140
        // HttpKernel < 3.2 compatibility layer