Code Duplication    Length = 2-2 lines in 2 locations

classes/PodsComponents.php 2 locations

@@ 491-492 (lines=2) @@
488
            if ( method_exists( $this->components[ $component ][ 'object' ], 'admin' ) )
489
                $this->components[ $component ][ 'object' ]->admin( $this->settings[ 'components' ][ $component ], $component );
490
            // Built-in Admin Handler
491
            elseif ( method_exists( $this->components[ $component ][ 'object' ], 'options' ) )
492
                $this->admin( $this->components[ $component ][ 'object' ]->options( $this->settings[ 'components' ][ $component ] ), $this->settings[ 'components' ][ $component ], $component );
493
        }
494
    }
495
@@ 675-676 (lines=2) @@
672
        $output = false;
673
674
        // Component init
675
        if ( isset( $this->components[ $component ][ 'object' ] ) && method_exists( $this->components[ $component ][ 'object' ], 'init' ) )
676
            $this->components[ $component ][ 'object' ]->init( $this->settings[ 'components' ][ $component ], $component );
677
678
        // Handle internal methods
679
        if ( isset( $this->components[ $component ][ 'object' ] ) && !method_exists( $this->components[ $component ][ 'object' ], 'ajax_' . $method ) && method_exists( $this, 'admin_ajax_' . $method ) )