GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Code Duplication    Length = 21-21 lines in 2 locations

src/DB/impls.php 2 locations

@@ 226-246 (lines=21) @@
223
        $context->appendParams($args);
224
225
    }
226
    public function setArgs(Context $context, $values){
227
        $set = [];
228
        $params = [];
229
        foreach ($values as $k=>$v){
230
            $k = DB::wrap($k);
231
            if(is_a($v, Raw::class)){//直接拼接sql,不需要转义
232
                $set[]= "$k=".$v->get();
233
            }else{
234
                $set[]= "$k=?";
235
                $params[]=$v;
236
            }
237
        }
238
        if($this->first){
239
            $this->first = false;
240
            $context->appendSql('SET '.implode(',', $set));
241
            $context->appendParams($params);
242
        }else{
243
            $context->appendSql(','.implode(',', $set),false);
244
            $context->appendParams($params);
245
        }
246
    }
247
    private $first=true;
248
}
249
class OrderByImpl
@@ 610-630 (lines=21) @@
607
        $context->appendParams($args);
608
609
    }
610
    public function setArgs($context, $values){
611
        $set = [];
612
        $params = [];
613
        foreach ($values as $k=>$v){
614
            $k = DB::wrap($k);
615
            if(is_a($v, Raw::class)){//直接拼接sql,不需要转义
616
                $set[]= "$k=".$v->get();
617
            }else{
618
                $set[]= "$k=?";
619
                $params[]=$v;
620
            }
621
        }
622
        if($this->first){
623
            $this->first = false;
624
            $context->appendSql('ON DUPLICATE KEY UPDATE '.implode(',', $set));
625
            $context->appendParams($params);
626
        }else{
627
            $context->appendSql(','.implode(',', $set),false);
628
            $context->appendParams($params);
629
        }
630
    }
631
    private $first=true;
632
}
633