Code Duplication    Length = 12-12 lines in 20 locations

classes/PodsMeta.php 20 locations

@@ 2149-2160 (lines=12) @@
2146
     *
2147
     * @return mixed
2148
     */
2149
    public function get_post_meta () {
2150
        $args = func_get_args();
2151
2152
        array_unshift( $args, 'post_type' );
2153
2154
        $_null = apply_filters( 'pods_meta_get_post_meta', null, $args );
2155
2156
        if ( null !== $_null )
2157
            return $_null;
2158
2159
        return call_user_func_array( array( $this, 'get_meta' ), $args );
2160
    }
2161
2162
    /**
2163
     * @return mixed
@@ 2165-2176 (lines=12) @@
2162
    /**
2163
     * @return mixed
2164
     */
2165
    public function get_user_meta () {
2166
        $args = func_get_args();
2167
2168
        array_unshift( $args, 'user' );
2169
2170
        $_null = apply_filters( 'pods_meta_get_user_meta', null, $args );
2171
2172
        if ( null !== $_null )
2173
            return $_null;
2174
2175
        return call_user_func_array( array( $this, 'get_meta' ), $args );
2176
    }
2177
2178
    /**
2179
     * @return mixed
@@ 2181-2192 (lines=12) @@
2178
    /**
2179
     * @return mixed
2180
     */
2181
    public function get_comment_meta () {
2182
        $args = func_get_args();
2183
2184
        array_unshift( $args, 'comment' );
2185
2186
        $_null = apply_filters( 'pods_meta_get_comment_meta', null, $args );
2187
2188
        if ( null !== $_null )
2189
            return $_null;
2190
2191
        return call_user_func_array( array( $this, 'get_meta' ), $args );
2192
    }
2193
2194
    /**
2195
     * @return mixed
@@ 2197-2208 (lines=12) @@
2194
    /**
2195
     * @return mixed
2196
     */
2197
    public function get_term_meta () {
2198
        $args = func_get_args();
2199
2200
        array_unshift( $args, 'term' );
2201
2202
        $_null = apply_filters( 'pods_meta_get_term_meta', null, $args );
2203
2204
        if ( null !== $_null )
2205
            return $_null;
2206
2207
        return call_user_func_array( array( $this, 'get_meta' ), $args );
2208
    }
2209
2210
    /**
2211
     * All *_*_meta filter handler aliases
@@ 2215-2226 (lines=12) @@
2212
     *
2213
     * @return mixed
2214
     */
2215
    public function get_option () {
2216
        $args = func_get_args();
2217
2218
        array_unshift( $args, 'settings' );
2219
2220
        $_null = apply_filters( 'pods_meta_get_option', null, $args );
2221
2222
        if ( null !== $_null )
2223
            return $_null;
2224
2225
        return call_user_func_array( array( $this, 'get_meta' ), $args );
2226
    }
2227
2228
    /**
2229
     * @return mixed
@@ 2231-2242 (lines=12) @@
2228
    /**
2229
     * @return mixed
2230
     */
2231
    public function add_post_meta () {
2232
        $args = func_get_args();
2233
2234
        array_unshift( $args, 'post_type' );
2235
2236
        $_null = apply_filters( 'pods_meta_add_post_meta', null, $args );
2237
2238
        if ( null !== $_null )
2239
            return $_null;
2240
2241
        return call_user_func_array( array( $this, 'add_meta' ), $args );
2242
    }
2243
2244
    /**
2245
     * @return mixed
@@ 2247-2258 (lines=12) @@
2244
    /**
2245
     * @return mixed
2246
     */
2247
    public function add_user_meta () {
2248
        $args = func_get_args();
2249
2250
        array_unshift( $args, 'user' );
2251
2252
        $_null = apply_filters( 'pods_meta_add_user_meta', null, $args );
2253
2254
        if ( null !== $_null )
2255
            return $_null;
2256
2257
        return call_user_func_array( array( $this, 'add_meta' ), $args );
2258
    }
2259
2260
    /**
2261
     * @return mixed
@@ 2263-2274 (lines=12) @@
2260
    /**
2261
     * @return mixed
2262
     */
2263
    public function add_comment_meta () {
2264
        $args = func_get_args();
2265
2266
        array_unshift( $args, 'comment' );
2267
2268
        $_null = apply_filters( 'pods_meta_add_comment_meta', null, $args );
2269
2270
        if ( null !== $_null )
2271
            return $_null;
2272
2273
        return call_user_func_array( array( $this, 'add_meta' ), $args );
2274
    }
2275
2276
    /**
2277
     * @return mixed
@@ 2279-2290 (lines=12) @@
2276
    /**
2277
     * @return mixed
2278
     */
2279
    public function add_term_meta () {
2280
        $args = func_get_args();
2281
2282
        array_unshift( $args, 'term' );
2283
2284
        $_null = apply_filters( 'pods_meta_add_term_meta', null, $args );
2285
2286
        if ( null !== $_null )
2287
            return $_null;
2288
2289
        return call_user_func_array( array( $this, 'add_meta' ), $args );
2290
    }
2291
2292
    /**
2293
     * @return mixed
@@ 2295-2306 (lines=12) @@
2292
    /**
2293
     * @return mixed
2294
     */
2295
    public function add_option () {
2296
        $args = func_get_args();
2297
2298
        array_unshift( $args, 'settings' );
2299
2300
        $_null = apply_filters( 'pods_meta_add_option', null, $args );
2301
2302
        if ( null !== $_null )
2303
            return $_null;
2304
2305
        return call_user_func_array( array( $this, 'add_meta' ), $args );
2306
    }
2307
2308
    /**
2309
     * @return mixed
@@ 2311-2322 (lines=12) @@
2308
    /**
2309
     * @return mixed
2310
     */
2311
    public function update_post_meta () {
2312
        $args = func_get_args();
2313
2314
        array_unshift( $args, 'post_type' );
2315
2316
        $_null = apply_filters( 'pods_meta_update_post_meta', null, $args );
2317
2318
        if ( null !== $_null )
2319
            return $_null;
2320
2321
        return call_user_func_array( array( $this, 'update_meta' ), $args );
2322
    }
2323
2324
    /**
2325
     * @return mixed
@@ 2327-2338 (lines=12) @@
2324
    /**
2325
     * @return mixed
2326
     */
2327
    public function update_user_meta () {
2328
        $args = func_get_args();
2329
2330
        array_unshift( $args, 'user' );
2331
2332
        $_null = apply_filters( 'pods_meta_update_user_meta', null, $args );
2333
2334
        if ( null !== $_null )
2335
            return $_null;
2336
2337
        return call_user_func_array( array( $this, 'update_meta' ), $args );
2338
    }
2339
2340
    /**
2341
     * @return mixed
@@ 2343-2354 (lines=12) @@
2340
    /**
2341
     * @return mixed
2342
     */
2343
    public function update_comment_meta () {
2344
        $args = func_get_args();
2345
2346
        array_unshift( $args, 'comment' );
2347
2348
        $_null = apply_filters( 'pods_meta_update_comment_meta', null, $args );
2349
2350
        if ( null !== $_null )
2351
            return $_null;
2352
2353
        return call_user_func_array( array( $this, 'update_meta' ), $args );
2354
    }
2355
2356
    /**
2357
     * @return mixed
@@ 2359-2370 (lines=12) @@
2356
    /**
2357
     * @return mixed
2358
     */
2359
    public function update_term_meta () {
2360
        $args = func_get_args();
2361
2362
        array_unshift( $args, 'term' );
2363
2364
        $_null = apply_filters( 'pods_meta_update_term_meta', null, $args );
2365
2366
        if ( null !== $_null )
2367
            return $_null;
2368
2369
        return call_user_func_array( array( $this, 'update_meta' ), $args );
2370
    }
2371
2372
    /**
2373
     * @return mixed
@@ 2375-2386 (lines=12) @@
2372
    /**
2373
     * @return mixed
2374
     */
2375
    public function update_option () {
2376
        $args = func_get_args();
2377
2378
        array_unshift( $args, 'settings' );
2379
2380
        $_null = apply_filters( 'pods_meta_update_option', null, $args );
2381
2382
        if ( null !== $_null )
2383
            return $_null;
2384
2385
        return call_user_func_array( array( $this, 'update_meta' ), $args );
2386
    }
2387
2388
    /**
2389
     * @return mixed
@@ 2391-2402 (lines=12) @@
2388
    /**
2389
     * @return mixed
2390
     */
2391
    public function delete_post_meta () {
2392
        $args = func_get_args();
2393
2394
        array_unshift( $args, 'post_type' );
2395
2396
        $_null = apply_filters( 'pods_meta_delete_post_meta', null, $args );
2397
2398
        if ( null !== $_null )
2399
            return $_null;
2400
2401
        return call_user_func_array( array( $this, 'delete_meta' ), $args );
2402
    }
2403
2404
    /**
2405
     * @return mixed
@@ 2407-2418 (lines=12) @@
2404
    /**
2405
     * @return mixed
2406
     */
2407
    public function delete_user_meta () {
2408
        $args = func_get_args();
2409
2410
        array_unshift( $args, 'user' );
2411
2412
        $_null = apply_filters( 'pods_meta_delete_user_meta', null, $args );
2413
2414
        if ( null !== $_null )
2415
            return $_null;
2416
2417
        return call_user_func_array( array( $this, 'delete_meta' ), $args );
2418
    }
2419
2420
    /**
2421
     * @return mixed
@@ 2423-2434 (lines=12) @@
2420
    /**
2421
     * @return mixed
2422
     */
2423
    public function delete_comment_meta () {
2424
        $args = func_get_args();
2425
2426
        array_unshift( $args, 'comment' );
2427
2428
        $_null = apply_filters( 'pods_meta_delete_comment_meta', null, $args );
2429
2430
        if ( null !== $_null )
2431
            return $_null;
2432
2433
        return call_user_func_array( array( $this, 'delete_meta' ), $args );
2434
    }
2435
2436
    /**
2437
     * @return mixed
@@ 2439-2450 (lines=12) @@
2436
    /**
2437
     * @return mixed
2438
     */
2439
    public function delete_term_meta () {
2440
        $args = func_get_args();
2441
2442
        array_unshift( $args, 'term' );
2443
2444
        $_null = apply_filters( 'pods_meta_delete_term_meta', null, $args );
2445
2446
        if ( null !== $_null )
2447
            return $_null;
2448
2449
        return call_user_func_array( array( $this, 'delete_meta' ), $args );
2450
    }
2451
2452
    /**
2453
     * @return mixed
@@ 2455-2466 (lines=12) @@
2452
    /**
2453
     * @return mixed
2454
     */
2455
    public function delete_option () {
2456
        $args = func_get_args();
2457
2458
        array_unshift( $args, 'settings' );
2459
2460
        $_null = apply_filters( 'pods_meta_delete_option', null, $args );
2461
2462
        if ( null !== $_null )
2463
            return $_null;
2464
2465
        return call_user_func_array( array( $this, 'delete_meta' ), $args );
2466
    }
2467
2468
    /*
2469
     * The real meta functions