Code Duplication    Length = 4-4 lines in 3 locations

classes/PodsAPI.php 3 locations

@@ 6253-6256 (lines=4) @@
6250
        if ( !isset( $params->pod_id ) || empty( $params->pod_id ) )
6251
            $params->pod_id = 0;
6252
6253
        if ( !isset( $params->name ) || empty( $params->name ) )
6254
            $params->name = array();
6255
        else
6256
            $params->name = (array) $params->name;
6257
6258
        if ( !isset( $params->id ) || empty( $params->id ) )
6259
            $params->id = array();
@@ 6268-6271 (lines=4) @@
6265
            }
6266
        }
6267
6268
        if ( !isset( $params->type ) || empty( $params->type ) )
6269
            $params->type = array();
6270
        else
6271
            $params->type = (array) $params->type;
6272
6273
        $fields = array();
6274
@@ 6627-6630 (lines=4) @@
6624
            return false;
6625
6626
        $params = (object) $params;
6627
        if ( !isset( $params->name ) && isset( $params->uri ) ) {
6628
            $params->name = $params->uri;
6629
            unset( $params->uri );
6630
        }
6631
        $params->type = 'page';
6632
        return $this->load_object( $params );
6633
    }