Code Duplication    Length = 10-10 lines in 2 locations

src/Histogram/Histogram3D.php 1 location

@@ 158-167 (lines=10) @@
155
                        $ignoreList[] = $k;
156
                    }
157
                }
158
                if ($this->_type == self::HISTOGRAM_CUMMULATIVE) {
159
                    if ($freq > 0) {
160
                        $bin['count'] = $freq + $cumm - 1;
161
                    } else {
162
                        $bin['count'] = 0;
163
                    }
164
                } else {
165
                    $bin['count'] = $freq;
166
                }
167
                $bin['xbin']   = $i;
168
                $bin['ybin']   = $j;
169
                $this->_bins[] = $bin;
170
            }

src/Histogram/Histogram4D.php 1 location

@@ 169-178 (lines=10) @@
166
                            $ignoreList[] = $k;
167
                        }
168
                    }
169
                    if ($this->_type == self::HISTOGRAM_CUMMULATIVE) {
170
                        if ($freq > 0) {
171
                            $bin['count'] = $freq + $cumm - 1;
172
                        } else {
173
                            $bin['count'] = 0;
174
                        }
175
                    } else {
176
                        $bin['count'] = $freq;
177
                    }
178
                    $bin['xbin']   = $i;
179
                    $bin['ybin']   = $j;
180
                    $bin['zbin']   = $m;
181
                    $this->_bins[] = $bin;