Code Duplication    Length = 3-3 lines in 2 locations

src/CImage/CImage.php 2 locations

@@ 1803-1805 (lines=3) @@
1800
                    $cropX = round(($this->width/2) - ($this->newWidth/2));
1801
                }
1802
1803
                if ($this->newHeight > $this->height) {
1804
                    $posY = round(($this->newHeight - $this->height) / 2);
1805
                }
1806
                if ($this->newHeight < $this->height) {
1807
                    $cropY = round(($this->height/2) - ($this->newHeight/2));
1808
                }
@@ 1806-1808 (lines=3) @@
1803
                if ($this->newHeight > $this->height) {
1804
                    $posY = round(($this->newHeight - $this->height) / 2);
1805
                }
1806
                if ($this->newHeight < $this->height) {
1807
                    $cropY = round(($this->height/2) - ($this->newHeight/2));
1808
                }
1809
                $this->log(" cwidth: $this->cropWidth");
1810
                $this->log(" cheight: $this->cropHeight");
1811
                $this->log(" nwidth: $this->newWidth");