Code Duplication    Length = 7-13 lines in 4 locations

classes/PodsData.php 1 location

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

classes/PodsUI.php 1 location

@@ 4453-4465 (lines=13) @@
4450
    /**
4451
     * @return array|bool|mixed|null
4452
     */
4453
	private function do_hook() {
4454
4455
		$args = func_get_args();
4456
4457
		if ( empty( $args ) ) {
4458
			return false;
4459
		}
4460
4461
		$name = array_shift( $args );
4462
4463
		return pods_do_hook( "ui", $name, $args, $this );
4464
4465
	}
4466
}
4467

classes/Pods.php 1 location

@@ 3868-3877 (lines=10) @@
3865
	 *
3866
	 * @since 2.0
3867
	 */
3868
	private function do_hook () {
3869
		$args = func_get_args();
3870
3871
		if ( empty( $args ) )
3872
			return false;
3873
3874
		$name = array_shift( $args );
3875
3876
		return pods_do_hook( 'pods', $name, $args, $this );
3877
	}
3878
3879
	/**
3880
	 * Handle variables that have been deprecated and PodsData vars

classes/PodsAPI.php 1 location

@@ 8342-8348 (lines=7) @@
8339
     *
8340
     * @since 2.0
8341
     */
8342
    private function do_hook () {
8343
        $args = func_get_args();
8344
        if ( empty( $args ) )
8345
            return false;
8346
        $name = array_shift( $args );
8347
        return pods_do_hook( "api", $name, $args, $this );
8348
    }
8349
8350
    /**
8351
     * Handle variables that have been deprecated