Code Duplication    Length = 4-4 lines in 2 locations

classes/PodsAPI.php 2 locations

@@ 8357-8360 (lines=4) @@
8354
    public function __get ( $name ) {
8355
        $name = (string) $name;
8356
8357
        if ( !isset( $this->deprecated ) ) {
8358
            require_once( PODS_DIR . 'deprecated/classes/PodsAPI.php' );
8359
            $this->deprecated = new PodsAPI_Deprecated( $this );
8360
        }
8361
8362
        $var = null;
8363
@@ 8383-8386 (lines=4) @@
8380
    public function __call ( $name, $args ) {
8381
        $name = (string) $name;
8382
8383
        if ( !isset( $this->deprecated ) ) {
8384
            require_once( PODS_DIR . 'deprecated/classes/PodsAPI.php' );
8385
            $this->deprecated = new PodsAPI_Deprecated( $this );
8386
        }
8387
8388
        if ( method_exists( $this->deprecated, $name ) )
8389
            return call_user_func_array( array( $this->deprecated, $name ), $args );