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

@@ 232-236 (lines=5) @@
229
        if (in_array($fieldName, $this->fields)) {
230
231
            $salt = '';
232
            foreach ($this->qBuilder->getParameters() as $parameter) {
233
                if ($parameter->getName() == 'field_' . $fieldName) {
234
                    $salt = '_' . rand(111, 999);
235
                }
236
            }
237
238
            // filtering[foo|bar]
239
            // $filterAndOperator[0] = 'foo'
@@ 295-299 (lines=5) @@
292
            $fieldName = $this->parser->camelize($embeddedFields[count($embeddedFields)-1]);
293
294
            $salt = '';
295
            foreach ($this->qBuilder->getParameters() as $parameter) {
296
                if ($parameter->getName() == 'field_' . $fieldName) {
297
                    $salt = '_' . rand(111, 999);
298
                }
299
            }
300
301
            if (isset($filterAndOperator[1]) && 'list' == $filterAndOperator[1]) {
302
                $whereCondition = $relationEntityAlias.'.'.$fieldName.' '.$operator['meta'].' (:field_'.$fieldName . $salt . ')';
@@ 342-346 (lines=5) @@
339
        if (in_array($fieldName, $this->fields)) {
340
341
            $salt = '';
342
            foreach ($this->qBuilder->getParameters() as $parameter) {
343
                if ($parameter->getName() == 'field_' . $fieldName) {
344
                    $salt = '_' . rand(111, 999);
345
                }
346
            }
347
348
            if ($salt == '') {
349
                $salt = '_' . rand(111, 999);
@@ 420-424 (lines=5) @@
417
            $fieldName = $this->parser->camelize($embeddedFields[count($embeddedFields)-1]);
418
419
            $salt = '';
420
            foreach ($this->qBuilder->getParameters() as $parameter) {
421
                if ($parameter->getName() == 'field_' . $fieldName) {
422
                    $salt = '_' . rand(111, 999);
423
                }
424
            }
425
426
            if ($salt == '') {
427
                $salt = '_' . rand(111, 999);