Code Duplication    Length = 7-13 lines in 4 locations

classes/Pods.php 1 location

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

classes/PodsUI.php 1 location

@@ 4634-4646 (lines=13) @@
4631
    /**
4632
     * @return array|bool|mixed|null
4633
     */
4634
	private function do_hook() {
4635
4636
		$args = func_get_args();
4637
4638
		if ( empty( $args ) ) {
4639
			return false;
4640
		}
4641
4642
		$name = array_shift( $args );
4643
4644
		return pods_do_hook( "ui", $name, $args, $this );
4645
4646
	}
4647
}
4648

classes/PodsData.php 1 location

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

classes/PodsAPI.php 1 location

@@ 8351-8357 (lines=7) @@
8348
     *
8349
     * @since 2.0
8350
     */
8351
    private function do_hook () {
8352
        $args = func_get_args();
8353
        if ( empty( $args ) )
8354
            return false;
8355
        $name = array_shift( $args );
8356
        return pods_do_hook( "api", $name, $args, $this );
8357
    }
8358
8359
    /**
8360
     * Handle variables that have been deprecated