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

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