Code Duplication    Length = 10-10 lines in 2 locations

Tests/Schema/ProcessorTest.php 2 locations

@@ 148-157 (lines=10) @@
145
                                'code'      => new StringType(),
146
                            ]
147
                        ]),
148
                        'resolve' => function ($value, $args) {
149
                            $data = ['firstName' => 'John', 'code' => '007'];
150
                            if (!empty($args['upper'])) {
151
                                foreach ($data as $key => $value) {
152
                                    $data[$key] = strtoupper($value);
153
                                }
154
                            }
155
156
                            return $data;
157
                        },
158
                        'args'    => [
159
                            'upper' => [
160
                                'type'    => new BooleanType(),
@@ 484-493 (lines=10) @@
481
                                      ]
482
                                  ]
483
                              ),
484
                              'resolve' => function ($value, $args) {
485
                                $data = ['firstName' => 'John', 'code' => '007'];
486
                                if (!empty($args['upper'])) {
487
                                  foreach ($data as $key => $value) {
488
                                    $data[$key] = strtoupper($value);
489
                                  }
490
                                }
491
492
                                return $data;
493
                              },
494
                              'args'    => [
495
                                  'upper' => [
496
                                      'type'    => new BooleanType(),