Code Duplication    Length = 4-4 lines in 2 locations

classes/PodsAPI.php 2 locations

@@ 8139-8142 (lines=4) @@
8136
    public function __get ( $name ) {
8137
        $name = (string) $name;
8138
8139
        if ( !isset( $this->deprecated ) ) {
8140
            require_once( PODS_DIR . 'deprecated/classes/PodsAPI.php' );
8141
            $this->deprecated = new PodsAPI_Deprecated( $this );
8142
        }
8143
8144
        $var = null;
8145
@@ 8165-8168 (lines=4) @@
8162
    public function __call ( $name, $args ) {
8163
        $name = (string) $name;
8164
8165
        if ( !isset( $this->deprecated ) ) {
8166
            require_once( PODS_DIR . 'deprecated/classes/PodsAPI.php' );
8167
            $this->deprecated = new PodsAPI_Deprecated( $this );
8168
        }
8169
8170
        if ( method_exists( $this->deprecated, $name ) )
8171
            return call_user_func_array( array( $this->deprecated, $name ), $args );