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

@@ 239-243 (lines=5) @@
236
        if (in_array($fieldName, $this->fields)) {
237
238
            $salt = '';
239
            foreach ($this->qBuilder->getParameters() as $parameter) {
240
                if ($parameter->getName() == 'field_' . $fieldName) {
241
                    $salt = '_' . rand(111, 999);
242
                }
243
            }
244
245
            // filtering[foo|bar]
246
            // $filterAndOperator[0] = 'foo'
@@ 302-306 (lines=5) @@
299
            $fieldName = $this->parser->camelize($embeddedFields[count($embeddedFields)-1]);
300
301
            $salt = '';
302
            foreach ($this->qBuilder->getParameters() as $parameter) {
303
                if ($parameter->getName() == 'field_' . $fieldName) {
304
                    $salt = '_' . rand(111, 999);
305
                }
306
            }
307
308
            if (isset($filterAndOperator[1]) && 'list' == $filterAndOperator[1]) {
309
                $whereCondition = $relationEntityAlias.'.'.$fieldName.' '.$operator['meta'].' (:field_'.$fieldName . $salt . ')';
@@ 349-353 (lines=5) @@
346
        if (in_array($fieldName, $this->fields)) {
347
348
            $salt = '';
349
            foreach ($this->qBuilder->getParameters() as $parameter) {
350
                if ($parameter->getName() == 'field_' . $fieldName) {
351
                    $salt = '_' . rand(111, 999);
352
                }
353
            }
354
355
            if ($salt == '') {
356
                $salt = '_' . rand(111, 999);
@@ 427-431 (lines=5) @@
424
            $fieldName = $this->parser->camelize($embeddedFields[count($embeddedFields)-1]);
425
426
            $salt = '';
427
            foreach ($this->qBuilder->getParameters() as $parameter) {
428
                if ($parameter->getName() == 'field_' . $fieldName) {
429
                    $salt = '_' . rand(111, 999);
430
                }
431
            }
432
433
            if ($salt == '') {
434
                $salt = '_' . rand(111, 999);