Code Duplication    Length = 3-3 lines in 2 locations

src/Crops/Entropy.php 2 locations

@@ 190-192 (lines=3) @@
187
        for ($i = $start; $i < $end; ++$i) {
188
            foreach ($safeZoneList as $safeZone) {
189
                if (($position === 'top') || ($position === 'bottom')) {
190
                    if (($safeZone['top'] <= $i) && ($safeZone['bottom'] >= $i)) {
191
                        $safeRatio = max($safeRatio, ($safeZone['right'] - $safeZone['left']));
192
                    }
193
                } elseif (($safeZone['left'] <= $i) && ($safeZone['right'] >= $i)) {
194
                    $safeRatio = max($safeRatio, ($safeZone['bottom'] - $safeZone['top']));
195
                }
@@ 193-195 (lines=3) @@
190
                    if (($safeZone['top'] <= $i) && ($safeZone['bottom'] >= $i)) {
191
                        $safeRatio = max($safeRatio, ($safeZone['right'] - $safeZone['left']));
192
                    }
193
                } elseif (($safeZone['left'] <= $i) && ($safeZone['right'] >= $i)) {
194
                    $safeRatio = max($safeRatio, ($safeZone['bottom'] - $safeZone['top']));
195
                }
196
            }
197
        }
198