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 = 5-5 lines in 4 locations

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

@@ 278-282 (lines=5) @@
275
            $fieldName = $this->parser->camelize($embeddedFields[count($embeddedFields)-1]);
276
277
            $salt = '';
278
            foreach ($this->qBuilder->getParameters() as $parameter) {
279
                if ($parameter->getName() == 'field_' . $fieldName) {
280
                    $salt = '_' . rand(111, 999);
281
                }
282
            }
283
284
            if ($filtering->hasOperator() && 'list' == $filtering->getOperator()) {
285
                $whereCondition = $relationEntityAlias . '.' . $fieldName . ' ' .
@@ 217-221 (lines=5) @@
214
        if (in_array($fieldName, $this->fields)) {
215
216
            $salt = '';
217
            foreach ($this->qBuilder->getParameters() as $parameter) {
218
                if ($parameter->getName() == 'field_' . $fieldName) {
219
                    $salt = '_' . rand(111, 999);
220
                }
221
            }
222
223
            if ($filtering->hasOperator()) {
224
                if ('list' == $filtering->getOperator()) {
@@ 328-332 (lines=5) @@
325
        if (in_array($fieldName, $this->fields)) {
326
327
            $salt = '';
328
            foreach ($this->qBuilder->getParameters() as $parameter) {
329
                if ($parameter->getName() == 'field_' . $fieldName) {
330
                    $salt = '_' . rand(111, 999);
331
                }
332
            }
333
334
            if ($filtering->hasOperator()) {
335
                if ('list' == $filtering->getOperator()) {
@@ 399-403 (lines=5) @@
396
            $fieldName = $this->parser->camelize($embeddedFields[count($embeddedFields)-1]);
397
398
            $salt = '';
399
            foreach ($this->qBuilder->getParameters() as $parameter) {
400
                if ($parameter->getName() == 'field_' . $fieldName) {
401
                    $salt = '_' . rand(111, 999);
402
                }
403
            }
404
405
            if ($filtering->hasOperator() && 'list' == $filtering->getOperator()) {
406
                $whereCondition = $relationEntityAlias.'.'.$fieldName.' '.$operator['meta'].' (:field_'.$fieldName . $salt . ')';