Code Duplication    Length = 7-13 lines in 4 locations

classes/PodsData.php 1 location

@@ 3098-3107 (lines=10) @@
3095
     *
3096
     * @since 2.0
3097
     */
3098
    private static function do_hook () {
3099
        $args = func_get_args();
3100
3101
        if ( empty( $args ) )
3102
            return false;
3103
3104
        $name = array_shift( $args );
3105
3106
        return pods_do_hook( 'data', $name, $args );
3107
    }
3108
3109
    /**
3110
     * Get the complete sql

classes/PodsUI.php 1 location

@@ 4651-4663 (lines=13) @@
4648
    /**
4649
     * @return array|bool|mixed|null
4650
     */
4651
	private function do_hook() {
4652
4653
		$args = func_get_args();
4654
4655
		if ( empty( $args ) ) {
4656
			return false;
4657
		}
4658
4659
		$name = array_shift( $args );
4660
4661
		return pods_do_hook( "ui", $name, $args, $this );
4662
4663
	}
4664
}
4665

classes/Pods.php 1 location

@@ 3926-3935 (lines=10) @@
3923
	 *
3924
	 * @since 2.0
3925
	 */
3926
	private function do_hook () {
3927
		$args = func_get_args();
3928
3929
		if ( empty( $args ) )
3930
			return false;
3931
3932
		$name = array_shift( $args );
3933
3934
		return pods_do_hook( 'pods', $name, $args, $this );
3935
	}
3936
3937
	/**
3938
	 * Handle variables that have been deprecated and PodsData vars

classes/PodsAPI.php 1 location

@@ 8500-8506 (lines=7) @@
8497
     *
8498
     * @since 2.0
8499
     */
8500
    private function do_hook () {
8501
        $args = func_get_args();
8502
        if ( empty( $args ) )
8503
            return false;
8504
        $name = array_shift( $args );
8505
        return pods_do_hook( "api", $name, $args, $this );
8506
    }
8507
8508
    /**
8509
     * Handle variables that have been deprecated