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 = 19-19 lines in 2 locations

src/Mado/QueryBundle/Queries/QueryBuilderFactory.php 2 locations

@@ 247-265 (lines=19) @@
244
            // filtering[foo|bar]
245
            // $filterAndOperator[0] = 'foo'
246
            // $filterAndOperator[1] = 'bar'
247
            if (isset($filterAndOperator[1])) {
248
                if ('list' == $filterAndOperator[1]) {
249
                    $whereCondition = $this->entityAlias.'.'.$fieldName.' '.$operator['meta'].' (:field_'.$fieldName . $salt . ')';
250
                } else if ('field_eq' == $filterAndOperator[1]) {
251
                    $whereCondition =
252
                        $this->entityAlias . '.' . $fieldName . ' '.
253
                        $operator['meta'] . '' .
254
                        $this->entityAlias . '.' . $value
255
                        ;
256
                    //} else {
257
                    //throw new \RuntimeException(
258
                    //'Oops! Eccezzione'
259
                    //);
260
                } else {
261
                    $whereCondition = $this->entityAlias.'.'.$fieldName.' '.$operator['meta'].' :field_'.$fieldName . $salt;
262
                }
263
            } else {
264
                $whereCondition = $this->entityAlias.'.'.$fieldName.' = :field_'.$fieldName . $salt;
265
            }
266
267
            $this->qBuilder->andWhere($whereCondition);
268
@@ 361-379 (lines=19) @@
358
            // filtering[foo|bar]
359
            // $filterAndOperator[0] = 'foo'
360
            // $filterAndOperator[1] = 'bar'
361
            if (isset($filterAndOperator[1])) {
362
                if ('list' == $filterAndOperator[1]) {
363
                    $whereCondition = $this->entityAlias.'.'.$fieldName.' '.$operator['meta'].' (:field_'.$fieldName . $salt . ')';
364
                } else if ('field_eq' == $filterAndOperator[1]) {
365
                    $whereCondition =
366
                        $this->entityAlias . '.' . $fieldName . ' '.
367
                        $operator['meta'] . '' .
368
                        $this->entityAlias . '.' . $value
369
                    ;
370
                    //} else {
371
                    //throw new \RuntimeException(
372
                    //'Oops! Eccezzione'
373
                    //);
374
                } else {
375
                    $whereCondition = $this->entityAlias.'.'.$fieldName.' '.$operator['meta'].' :field_'.$fieldName . $salt;
376
                }
377
            } else {
378
                $whereCondition = $this->entityAlias.'.'.$fieldName.' = :field_'.$fieldName . $salt;
379
            }
380
381
            if ($orCondition['orCondition'] != null) {
382
                $orCondition['orCondition'] .= ' OR ' . $whereCondition;