Code Duplication    Length = 9-9 lines in 6 locations

app/DoctrineMigrations/Version20170321184028.php 6 locations

@@ 160-168 (lines=9) @@
157
                'content' => 'Parterre',
158
            ]
159
        );
160
        for ($i = 1; $i <= 23; $i++) {
161
            $this->connection->insert(
162
                'rows_for_sale',
163
                [
164
                    'row' => $i,
165
                    'venueSector_id' => $venue_sector_id,
166
                ]
167
            );
168
        }
169
        $this->connection->insert(
170
            'venue_sector',
171
            [
@@ 187-195 (lines=9) @@
184
                'content' => 'Balcony',
185
            ]
186
        );
187
        for ($i = 1; $i <= 5; $i++) {
188
            $this->connection->insert(
189
                'rows_for_sale',
190
                [
191
                    'row' => $i,
192
                    'venueSector_id' => $venue_sector_id,
193
                ]
194
            );
195
        }
196
        $this->connection->insert(
197
            'venue_sector',
198
            [
@@ 296-304 (lines=9) @@
293
                'content' => 'Parterre',
294
            ]
295
        );
296
        for ($i = 1; $i <= 17; $i++) {
297
            $this->connection->insert(
298
                'rows_for_sale',
299
                [
300
                    'row' => $i,
301
                    'venueSector_id' => $venue_sector_id,
302
                ]
303
            );
304
        }
305
306
        // --------- Cherkasy Theatre --------------//
307
        $this->connection->insert(
@@ 435-443 (lines=9) @@
432
                'content' => 'Parterre',
433
            ]
434
        );
435
        for ($i = 1; $i <= 17; $i++) {
436
            $this->connection->insert(
437
                'rows_for_sale',
438
                [
439
                    'row' => $i,
440
                    'venueSector_id' => $venue_sector_id,
441
                ]
442
            );
443
        }
444
445
        // --------- Center for Children and Youth --------------//
446
        $this->connection->insert(
@@ 556-564 (lines=9) @@
553
                'content' => 'Parterre',
554
            ]
555
        );
556
        for ($i = 1; $i <= 21; $i++) {
557
            $this->connection->insert(
558
                'rows_for_sale',
559
                [
560
                    'row' => $i,
561
                    'venueSector_id' => $venue_sector_id,
562
                ]
563
            );
564
        }
565
        $this->connection->insert(
566
            'venue_sector',
567
            [
@@ 583-591 (lines=9) @@
580
                'content' => 'Balcony',
581
            ]
582
        );
583
        for ($i = 1; $i <= 11; $i++) {
584
            $this->connection->insert(
585
                'rows_for_sale',
586
                [
587
                    'row' => $i,
588
                    'venueSector_id' => $venue_sector_id,
589
                ]
590
            );
591
        }
592
    }
593
594
    private function setVenueIdForPerformanceShedule():void