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

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

@@ 227-241 (lines=15) @@
224
                }
225
            }
226
227
            if ($filtering->hasOperator()) {
228
                if ('list' == $filtering->getOperator()) {
229
                    $whereCondition = $this->entityAlias.'.'.$fieldName.' '.$operator['meta'].' (:field_'.$fieldName . $salt . ')';
230
                } else if ('field_eq' == $filtering->getOperator()) {
231
                    $whereCondition =
232
                        $this->entityAlias . '.' . $fieldName . ' '.
233
                        $operator['meta'] . '' .
234
                        $this->entityAlias . '.' . $value
235
                        ;
236
                } else {
237
                    $whereCondition = $this->entityAlias.'.'.$fieldName.' '.$operator['meta'].' :field_'.$fieldName . $salt;
238
                }
239
            } else {
240
                $whereCondition = $this->entityAlias.'.'.$fieldName.' = :field_'.$fieldName . $salt;
241
            }
242
243
            $this->qBuilder->andWhere($whereCondition);
244
@@ 329-347 (lines=19) @@
326
                }
327
            }
328
329
            if ($filtering->hasOperator()) {
330
                if ('list' == $filtering->getOperator()) {
331
                    $whereCondition = $this->entityAlias.'.'.$fieldName.' '.$operator['meta'].' (:field_'.$fieldName . $salt . ')';
332
                } else if ('field_eq' == $filtering->getOperator()) {
333
                    $whereCondition =
334
                        $this->entityAlias . '.' . $fieldName . ' '.
335
                        $operator['meta'] . '' .
336
                        $this->entityAlias . '.' . $value
337
                    ;
338
                    //} else {
339
                    //throw new \RuntimeException(
340
                    //'Oops! Eccezzione'
341
                    //);
342
                } else {
343
                    $whereCondition = $this->entityAlias.'.'.$fieldName.' '.$operator['meta'].' :field_'.$fieldName . $salt;
344
                }
345
            } else {
346
                $whereCondition = $this->entityAlias.'.'.$fieldName.' = :field_'.$fieldName . $salt;
347
            }
348
349
            if ($orCondition['orCondition'] != null) {
350
                $orCondition['orCondition'] .= ' OR ' . $whereCondition;