Code Duplication    Length = 4-4 lines in 2 locations

classes/PodsAPI.php 2 locations

@@ 8455-8458 (lines=4) @@
8452
    public function __get ( $name ) {
8453
        $name = (string) $name;
8454
8455
        if ( !isset( $this->deprecated ) ) {
8456
            require_once( PODS_DIR . 'deprecated/classes/PodsAPI.php' );
8457
            $this->deprecated = new PodsAPI_Deprecated( $this );
8458
        }
8459
8460
        $var = null;
8461
@@ 8481-8484 (lines=4) @@
8478
    public function __call ( $name, $args ) {
8479
        $name = (string) $name;
8480
8481
        if ( !isset( $this->deprecated ) ) {
8482
            require_once( PODS_DIR . 'deprecated/classes/PodsAPI.php' );
8483
            $this->deprecated = new PodsAPI_Deprecated( $this );
8484
        }
8485
8486
        if ( method_exists( $this->deprecated, $name ) )
8487
            return call_user_func_array( array( $this->deprecated, $name ), $args );