Code Duplication    Length = 9-10 lines in 3 locations

vendor/cakephp/cakephp/src/ORM/Query.php 3 locations

@@ 463-471 (lines=9) @@
460
     * that can be used to add custom conditions or selecting some fields
461
     * @return $this
462
     */
463
    public function leftJoinWith($assoc, callable $builder = null)
464
    {
465
        $this->eagerLoader()->matching($assoc, $builder, [
466
            'joinType' => 'LEFT',
467
            'fields' => false
468
        ]);
469
        $this->_dirty();
470
        return $this;
471
    }
472
473
    /**
474
     * Creates an INNER JOIN with the passed association table while preserving
@@ 508-516 (lines=9) @@
505
     * @return $this
506
     * @see \Cake\ORM\Query::matching()
507
     */
508
    public function innerJoinWith($assoc, callable $builder = null)
509
    {
510
        $this->eagerLoader()->matching($assoc, $builder, [
511
            'joinType' => 'INNER',
512
            'fields' => false
513
        ]);
514
        $this->_dirty();
515
        return $this;
516
    }
517
518
    /**
519
     * Adds filtering conditions to this query to only bring rows that have no match
@@ 568-577 (lines=10) @@
565
     * that can be used to add custom conditions or selecting some fields
566
     * @return $this
567
     */
568
    public function notMatching($assoc, callable $builder = null)
569
    {
570
        $this->eagerLoader()->matching($assoc, $builder, [
571
            'joinType' => 'LEFT',
572
            'fields' => false,
573
            'negateMatch' => true
574
        ]);
575
        $this->_dirty();
576
        return $this;
577
    }
578
579
    /**
580
     * {@inheritDoc}