Code Duplication    Length = 7-13 lines in 4 locations

classes/Pods.php 1 location

@@ 3858-3867 (lines=10) @@
3855
	 *
3856
	 * @since 2.0
3857
	 */
3858
	private function do_hook () {
3859
		$args = func_get_args();
3860
3861
		if ( empty( $args ) )
3862
			return false;
3863
3864
		$name = array_shift( $args );
3865
3866
		return pods_do_hook( 'pods', $name, $args, $this );
3867
	}
3868
3869
	/**
3870
	 * Handle variables that have been deprecated and PodsData vars

classes/PodsData.php 1 location

@@ 3062-3071 (lines=10) @@
3059
     *
3060
     * @since 2.0
3061
     */
3062
    private static function do_hook () {
3063
        $args = func_get_args();
3064
3065
        if ( empty( $args ) )
3066
            return false;
3067
3068
        $name = array_shift( $args );
3069
3070
        return pods_do_hook( 'data', $name, $args );
3071
    }
3072
3073
    /**
3074
     * 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/PodsAPI.php 1 location

@@ 8123-8129 (lines=7) @@
8120
     *
8121
     * @since 2.0
8122
     */
8123
    private function do_hook () {
8124
        $args = func_get_args();
8125
        if ( empty( $args ) )
8126
            return false;
8127
        $name = array_shift( $args );
8128
        return pods_do_hook( "api", $name, $args, $this );
8129
    }
8130
8131
    /**
8132
     * Handle variables that have been deprecated