Code Duplication    Length = 9-9 lines in 2 locations

src/CImage/CImage.php 2 locations

@@ 862-870 (lines=9) @@
859
        );
860
861
        // Convert crop settings from string to array
862
        if (isset($args['crop']) && !is_array($args['crop'])) {
863
            $pices = explode(',', $args['crop']);
864
            $args['crop'] = array(
865
                'width'   => $pices[0],
866
                'height'  => $pices[1],
867
                'start_x' => $pices[2],
868
                'start_y' => $pices[3],
869
            );
870
        }
871
872
        // Convert area settings from string to array
873
        if (isset($args['area']) && !is_array($args['area'])) {
@@ 873-881 (lines=9) @@
870
        }
871
872
        // Convert area settings from string to array
873
        if (isset($args['area']) && !is_array($args['area'])) {
874
                $pices = explode(',', $args['area']);
875
                $args['area'] = array(
876
                    'top'    => $pices[0],
877
                    'right'  => $pices[1],
878
                    'bottom' => $pices[2],
879
                    'left'   => $pices[3],
880
                );
881
        }
882
883
        // Convert filter settings from array of string to array of array
884
        if (isset($args['filters']) && is_array($args['filters'])) {