Code Duplication    Length = 17-17 lines in 3 locations

DependencyInjection/Configuration.php 3 locations

@@ 192-208 (lines=17) @@
189
                        ->example('[apache, foo]')
190
                        ->beforeNormalization()
191
                            ->always()
192
                            ->then(function ($value) {
193
                                if (is_array($value)) {
194
                                    foreach ($value as $key => $process) {
195
                                        if (is_scalar($process)) {
196
                                            $value[$key] = [
197
                                                'name' => $process,
198
                                            ];
199
                                        }
200
                                    }
201
                                } else {
202
                                    $value = [
203
                                        ['name' => $value],
204
                                    ];
205
                                }
206
207
                                return $value;
208
                            })
209
                        ->end()
210
                        ->validate()
211
                            ->always()
@@ 353-369 (lines=17) @@
350
                        ->example('[default, crm]')
351
                        ->beforeNormalization()
352
                            ->always()
353
                            ->then(function ($value) {
354
                                if (is_array($value)) {
355
                                    foreach ($value as $key => $connection) {
356
                                        if (is_scalar($connection)) {
357
                                            $value[$key] = [
358
                                                'name' => $connection,
359
                                            ];
360
                                        }
361
                                    }
362
                                } else {
363
                                    $value = [
364
                                        ['name' => $value],
365
                                    ];
366
                                }
367
368
                                return $value;
369
                            })
370
                        ->end()
371
                        ->validate()
372
                            ->ifArray()
@@ 390-406 (lines=17) @@
387
                        ->example('[default, crm]')
388
                        ->beforeNormalization()
389
                            ->always()
390
                            ->then(function ($value) {
391
                                if (is_array($value)) {
392
                                    foreach ($value as $key => $connection) {
393
                                        if (is_scalar($connection)) {
394
                                            $value[$key] = [
395
                                                'name' => $connection,
396
                                            ];
397
                                        }
398
                                    }
399
                                } else {
400
                                    $value = [
401
                                        ['name' => $value],
402
                                    ];
403
                                }
404
405
                                return $value;
406
                            })
407
                        ->end()
408
                        ->validate()
409
                            ->ifArray()