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/PodsAPI.php 1 location

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

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