Code Duplication    Length = 5-5 lines in 2 locations

src/Models/Infra/Ci/Build.php 2 locations

@@ 239-243 (lines=5) @@
236
            $yamlParser  = new YamlParser();
237
            $buildConfig = $yamlParser->parse($buildConfig);
238
239
            if ($buildConfig && is_array($buildConfig)) {
240
                $builder->logDebug('Config before repository clone (DB): ' . json_encode($buildConfig));
241
242
                $builder->setConfig($buildConfig);
243
            }
244
        }
245
246
        return true;
@@ 313-317 (lines=5) @@
310
            $builder->logDebug('Build config from project (DB)');
311
        }
312
313
        if ($buildConfig && is_array($buildConfig)) {
314
            $builder->logDebug('Final config: ' . json_encode($buildConfig));
315
316
            $builder->setConfig($buildConfig);
317
        }
318
319
        return true;
320
    }