Code Duplication    Length = 12-12 lines in 20 locations

classes/PodsMeta.php 20 locations

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