Code Duplication    Length = 7-13 lines in 4 locations

classes/PodsData.php 1 location

@@ 3063-3072 (lines=10) @@
3060
     *
3061
     * @since 2.0
3062
     */
3063
    private static function do_hook () {
3064
        $args = func_get_args();
3065
3066
        if ( empty( $args ) )
3067
            return false;
3068
3069
        $name = array_shift( $args );
3070
3071
        return pods_do_hook( 'data', $name, $args );
3072
    }
3073
3074
    /**
3075
     * Get the complete sql

classes/Pods.php 1 location

@@ 3883-3892 (lines=10) @@
3880
	 *
3881
	 * @since 2.0
3882
	 */
3883
	private function do_hook () {
3884
		$args = func_get_args();
3885
3886
		if ( empty( $args ) )
3887
			return false;
3888
3889
		$name = array_shift( $args );
3890
3891
		return pods_do_hook( 'pods', $name, $args, $this );
3892
	}
3893
3894
	/**
3895
	 * Handle variables that have been deprecated and PodsData vars

classes/PodsUI.php 1 location

@@ 4464-4476 (lines=13) @@
4461
    /**
4462
     * @return array|bool|mixed|null
4463
     */
4464
	private function do_hook() {
4465
4466
		$args = func_get_args();
4467
4468
		if ( empty( $args ) ) {
4469
			return false;
4470
		}
4471
4472
		$name = array_shift( $args );
4473
4474
		return pods_do_hook( "ui", $name, $args, $this );
4475
4476
	}
4477
}
4478

classes/PodsAPI.php 1 location

@@ 8555-8561 (lines=7) @@
8552
     *
8553
     * @since 2.0
8554
     */
8555
    private function do_hook () {
8556
        $args = func_get_args();
8557
        if ( empty( $args ) )
8558
            return false;
8559
        $name = array_shift( $args );
8560
        return pods_do_hook( "api", $name, $args, $this );
8561
    }
8562
8563
    /**
8564
     * Handle variables that have been deprecated