Code Duplication    Length = 4-4 lines in 2 locations

classes/PodsAPI.php 2 locations

@@ 8244-8247 (lines=4) @@
8241
    public function __get ( $name ) {
8242
        $name = (string) $name;
8243
8244
        if ( !isset( $this->deprecated ) ) {
8245
            require_once( PODS_DIR . 'deprecated/classes/PodsAPI.php' );
8246
            $this->deprecated = new PodsAPI_Deprecated( $this );
8247
        }
8248
8249
        $var = null;
8250
@@ 8270-8273 (lines=4) @@
8267
    public function __call ( $name, $args ) {
8268
        $name = (string) $name;
8269
8270
        if ( !isset( $this->deprecated ) ) {
8271
            require_once( PODS_DIR . 'deprecated/classes/PodsAPI.php' );
8272
            $this->deprecated = new PodsAPI_Deprecated( $this );
8273
        }
8274
8275
        if ( method_exists( $this->deprecated, $name ) )
8276
            return call_user_func_array( array( $this->deprecated, $name ), $args );