Code Duplication    Length = 7-13 lines in 4 locations

classes/PodsData.php 1 location

@@ 3119-3128 (lines=10) @@
3116
     *
3117
     * @since 2.0
3118
     */
3119
    private static function do_hook () {
3120
        $args = func_get_args();
3121
3122
        if ( empty( $args ) )
3123
            return false;
3124
3125
        $name = array_shift( $args );
3126
3127
        return pods_do_hook( 'data', $name, $args );
3128
    }
3129
3130
    /**
3131
     * Get the complete sql

classes/Pods.php 1 location

@@ 4000-4009 (lines=10) @@
3997
	 *
3998
	 * @since 2.0
3999
	 */
4000
	private function do_hook () {
4001
		$args = func_get_args();
4002
4003
		if ( empty( $args ) )
4004
			return false;
4005
4006
		$name = array_shift( $args );
4007
4008
		return pods_do_hook( 'pods', $name, $args, $this );
4009
	}
4010
4011
	/**
4012
	 * Handle variables that have been deprecated and PodsData vars

classes/PodsAPI.php 1 location

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

classes/PodsUI.php 1 location

@@ 5270-5282 (lines=13) @@
5267
	/**
5268
	 * @return array|bool|mixed|null
5269
	 */
5270
	private function do_hook() {
5271
5272
		$args = func_get_args();
5273
5274
		if ( empty( $args ) ) {
5275
			return false;
5276
		}
5277
5278
		$name = array_shift( $args );
5279
5280
		return pods_do_hook( 'ui', $name, $args, $this );
5281
5282
	}
5283
}
5284