Code Duplication    Length = 13-13 lines in 17 locations

src/cli/Database/Base/ChannelQuery.php 2 locations

@@ 317-329 (lines=13) @@
314
     *
315
     * @return $this|ChildChannelQuery The current query, for fluid interface
316
     */
317
    public function filterByInstanceName($instanceName = null, $comparison = null)
318
    {
319
        if (null === $comparison) {
320
            if (is_array($instanceName)) {
321
                $comparison = Criteria::IN;
322
            } elseif (preg_match('/[\%\*]/', $instanceName)) {
323
                $instanceName = str_replace('*', '%', $instanceName);
324
                $comparison = Criteria::LIKE;
325
            }
326
        }
327
328
        return $this->addUsingAlias(ChannelTableMap::COL_INSTANCE_NAME, $instanceName, $comparison);
329
    }
330
331
    /**
332
     * Filter the query on the name column
@@ 346-358 (lines=13) @@
343
     *
344
     * @return $this|ChildChannelQuery The current query, for fluid interface
345
     */
346
    public function filterByName($name = null, $comparison = null)
347
    {
348
        if (null === $comparison) {
349
            if (is_array($name)) {
350
                $comparison = Criteria::IN;
351
            } elseif (preg_match('/[\%\*]/', $name)) {
352
                $name = str_replace('*', '%', $name);
353
                $comparison = Criteria::LIKE;
354
            }
355
        }
356
357
        return $this->addUsingAlias(ChannelTableMap::COL_NAME, $name, $comparison);
358
    }
359
360
    /**
361
     * Filter the query by a related \Jalle19\StatusManager\Database\Instance object

src/cli/Database/Base/ConnectionQuery.php 3 locations

@@ 332-344 (lines=13) @@
329
     *
330
     * @return $this|ChildConnectionQuery The current query, for fluid interface
331
     */
332
    public function filterByInstanceName($instanceName = null, $comparison = null)
333
    {
334
        if (null === $comparison) {
335
            if (is_array($instanceName)) {
336
                $comparison = Criteria::IN;
337
            } elseif (preg_match('/[\%\*]/', $instanceName)) {
338
                $instanceName = str_replace('*', '%', $instanceName);
339
                $comparison = Criteria::LIKE;
340
            }
341
        }
342
343
        return $this->addUsingAlias(ConnectionTableMap::COL_INSTANCE_NAME, $instanceName, $comparison);
344
    }
345
346
    /**
347
     * Filter the query on the user_id column
@@ 404-416 (lines=13) @@
401
     *
402
     * @return $this|ChildConnectionQuery The current query, for fluid interface
403
     */
404
    public function filterByPeer($peer = null, $comparison = null)
405
    {
406
        if (null === $comparison) {
407
            if (is_array($peer)) {
408
                $comparison = Criteria::IN;
409
            } elseif (preg_match('/[\%\*]/', $peer)) {
410
                $peer = str_replace('*', '%', $peer);
411
                $comparison = Criteria::LIKE;
412
            }
413
        }
414
415
        return $this->addUsingAlias(ConnectionTableMap::COL_PEER, $peer, $comparison);
416
    }
417
418
    /**
419
     * Filter the query on the started column
@@ 476-488 (lines=13) @@
473
     *
474
     * @return $this|ChildConnectionQuery The current query, for fluid interface
475
     */
476
    public function filterByType($type = null, $comparison = null)
477
    {
478
        if (null === $comparison) {
479
            if (is_array($type)) {
480
                $comparison = Criteria::IN;
481
            } elseif (preg_match('/[\%\*]/', $type)) {
482
                $type = str_replace('*', '%', $type);
483
                $comparison = Criteria::LIKE;
484
            }
485
        }
486
487
        return $this->addUsingAlias(ConnectionTableMap::COL_TYPE, $type, $comparison);
488
    }
489
490
    /**
491
     * Filter the query by a related \Jalle19\StatusManager\Database\Instance object

src/cli/Database/Base/UserQuery.php 2 locations

@@ 327-339 (lines=13) @@
324
     *
325
     * @return $this|ChildUserQuery The current query, for fluid interface
326
     */
327
    public function filterByInstanceName($instanceName = null, $comparison = null)
328
    {
329
        if (null === $comparison) {
330
            if (is_array($instanceName)) {
331
                $comparison = Criteria::IN;
332
            } elseif (preg_match('/[\%\*]/', $instanceName)) {
333
                $instanceName = str_replace('*', '%', $instanceName);
334
                $comparison = Criteria::LIKE;
335
            }
336
        }
337
338
        return $this->addUsingAlias(UserTableMap::COL_INSTANCE_NAME, $instanceName, $comparison);
339
    }
340
341
    /**
342
     * Filter the query on the name column
@@ 356-368 (lines=13) @@
353
     *
354
     * @return $this|ChildUserQuery The current query, for fluid interface
355
     */
356
    public function filterByName($name = null, $comparison = null)
357
    {
358
        if (null === $comparison) {
359
            if (is_array($name)) {
360
                $comparison = Criteria::IN;
361
            } elseif (preg_match('/[\%\*]/', $name)) {
362
                $name = str_replace('*', '%', $name);
363
                $comparison = Criteria::LIKE;
364
            }
365
        }
366
367
        return $this->addUsingAlias(UserTableMap::COL_NAME, $name, $comparison);
368
    }
369
370
    /**
371
     * Filter the query by a related \Jalle19\StatusManager\Database\Instance object

src/cli/Database/Base/InputQuery.php 5 locations

@@ 296-308 (lines=13) @@
293
     *
294
     * @return $this|ChildInputQuery The current query, for fluid interface
295
     */
296
    public function filterByUuid($uuid = null, $comparison = null)
297
    {
298
        if (null === $comparison) {
299
            if (is_array($uuid)) {
300
                $comparison = Criteria::IN;
301
            } elseif (preg_match('/[\%\*]/', $uuid)) {
302
                $uuid = str_replace('*', '%', $uuid);
303
                $comparison = Criteria::LIKE;
304
            }
305
        }
306
307
        return $this->addUsingAlias(InputTableMap::COL_UUID, $uuid, $comparison);
308
    }
309
310
    /**
311
     * Filter the query on the instance_name column
@@ 325-337 (lines=13) @@
322
     *
323
     * @return $this|ChildInputQuery The current query, for fluid interface
324
     */
325
    public function filterByInstanceName($instanceName = null, $comparison = null)
326
    {
327
        if (null === $comparison) {
328
            if (is_array($instanceName)) {
329
                $comparison = Criteria::IN;
330
            } elseif (preg_match('/[\%\*]/', $instanceName)) {
331
                $instanceName = str_replace('*', '%', $instanceName);
332
                $comparison = Criteria::LIKE;
333
            }
334
        }
335
336
        return $this->addUsingAlias(InputTableMap::COL_INSTANCE_NAME, $instanceName, $comparison);
337
    }
338
339
    /**
340
     * Filter the query on the started column
@@ 397-409 (lines=13) @@
394
     *
395
     * @return $this|ChildInputQuery The current query, for fluid interface
396
     */
397
    public function filterByInput($input = null, $comparison = null)
398
    {
399
        if (null === $comparison) {
400
            if (is_array($input)) {
401
                $comparison = Criteria::IN;
402
            } elseif (preg_match('/[\%\*]/', $input)) {
403
                $input = str_replace('*', '%', $input);
404
                $comparison = Criteria::LIKE;
405
            }
406
        }
407
408
        return $this->addUsingAlias(InputTableMap::COL_INPUT, $input, $comparison);
409
    }
410
411
    /**
412
     * Filter the query on the network column
@@ 426-438 (lines=13) @@
423
     *
424
     * @return $this|ChildInputQuery The current query, for fluid interface
425
     */
426
    public function filterByNetwork($network = null, $comparison = null)
427
    {
428
        if (null === $comparison) {
429
            if (is_array($network)) {
430
                $comparison = Criteria::IN;
431
            } elseif (preg_match('/[\%\*]/', $network)) {
432
                $network = str_replace('*', '%', $network);
433
                $comparison = Criteria::LIKE;
434
            }
435
        }
436
437
        return $this->addUsingAlias(InputTableMap::COL_NETWORK, $network, $comparison);
438
    }
439
440
    /**
441
     * Filter the query on the mux column
@@ 455-467 (lines=13) @@
452
     *
453
     * @return $this|ChildInputQuery The current query, for fluid interface
454
     */
455
    public function filterByMux($mux = null, $comparison = null)
456
    {
457
        if (null === $comparison) {
458
            if (is_array($mux)) {
459
                $comparison = Criteria::IN;
460
            } elseif (preg_match('/[\%\*]/', $mux)) {
461
                $mux = str_replace('*', '%', $mux);
462
                $comparison = Criteria::LIKE;
463
            }
464
        }
465
466
        return $this->addUsingAlias(InputTableMap::COL_MUX, $mux, $comparison);
467
    }
468
469
    /**
470
     * Filter the query on the weight column

src/cli/Database/Base/InstanceQuery.php 1 location

@@ 296-308 (lines=13) @@
293
     *
294
     * @return $this|ChildInstanceQuery The current query, for fluid interface
295
     */
296
    public function filterByName($name = null, $comparison = null)
297
    {
298
        if (null === $comparison) {
299
            if (is_array($name)) {
300
                $comparison = Criteria::IN;
301
            } elseif (preg_match('/[\%\*]/', $name)) {
302
                $name = str_replace('*', '%', $name);
303
                $comparison = Criteria::LIKE;
304
            }
305
        }
306
307
        return $this->addUsingAlias(InstanceTableMap::COL_NAME, $name, $comparison);
308
    }
309
310
    /**
311
     * Filter the query by a related \Jalle19\StatusManager\Database\User object

src/cli/Database/Base/SubscriptionQuery.php 4 locations

@@ 372-384 (lines=13) @@
369
     *
370
     * @return $this|ChildSubscriptionQuery The current query, for fluid interface
371
     */
372
    public function filterByInstanceName($instanceName = null, $comparison = null)
373
    {
374
        if (null === $comparison) {
375
            if (is_array($instanceName)) {
376
                $comparison = Criteria::IN;
377
            } elseif (preg_match('/[\%\*]/', $instanceName)) {
378
                $instanceName = str_replace('*', '%', $instanceName);
379
                $comparison = Criteria::LIKE;
380
            }
381
        }
382
383
        return $this->addUsingAlias(SubscriptionTableMap::COL_INSTANCE_NAME, $instanceName, $comparison);
384
    }
385
386
    /**
387
     * Filter the query on the input_uuid column
@@ 401-413 (lines=13) @@
398
     *
399
     * @return $this|ChildSubscriptionQuery The current query, for fluid interface
400
     */
401
    public function filterByInputUuid($inputUuid = null, $comparison = null)
402
    {
403
        if (null === $comparison) {
404
            if (is_array($inputUuid)) {
405
                $comparison = Criteria::IN;
406
            } elseif (preg_match('/[\%\*]/', $inputUuid)) {
407
                $inputUuid = str_replace('*', '%', $inputUuid);
408
                $comparison = Criteria::LIKE;
409
            }
410
        }
411
412
        return $this->addUsingAlias(SubscriptionTableMap::COL_INPUT_UUID, $inputUuid, $comparison);
413
    }
414
415
    /**
416
     * Filter the query on the user_id column
@@ 643-655 (lines=13) @@
640
     *
641
     * @return $this|ChildSubscriptionQuery The current query, for fluid interface
642
     */
643
    public function filterByTitle($title = null, $comparison = null)
644
    {
645
        if (null === $comparison) {
646
            if (is_array($title)) {
647
                $comparison = Criteria::IN;
648
            } elseif (preg_match('/[\%\*]/', $title)) {
649
                $title = str_replace('*', '%', $title);
650
                $comparison = Criteria::LIKE;
651
            }
652
        }
653
654
        return $this->addUsingAlias(SubscriptionTableMap::COL_TITLE, $title, $comparison);
655
    }
656
657
    /**
658
     * Filter the query on the service column
@@ 672-684 (lines=13) @@
669
     *
670
     * @return $this|ChildSubscriptionQuery The current query, for fluid interface
671
     */
672
    public function filterByService($service = null, $comparison = null)
673
    {
674
        if (null === $comparison) {
675
            if (is_array($service)) {
676
                $comparison = Criteria::IN;
677
            } elseif (preg_match('/[\%\*]/', $service)) {
678
                $service = str_replace('*', '%', $service);
679
                $comparison = Criteria::LIKE;
680
            }
681
        }
682
683
        return $this->addUsingAlias(SubscriptionTableMap::COL_SERVICE, $service, $comparison);
684
    }
685
686
    /**
687
     * Filter the query by a related \Jalle19\StatusManager\Database\Instance object