Code Duplication    Length = 11-11 lines in 2 locations

src/AppBundle/Admin/PerformanceEventAdmin.php 2 locations

@@ 285-295 (lines=11) @@
282
    public function getRows(Venue $venue, $strRows, VenueSector $venueSector, $strPlaces = null)
283
    {
284
        $dataRows = explode(',', $strRows);
285
        foreach ($dataRows as $rows) {
286
            if (substr_count($rows, '-') === 1) {
287
                list($begin, $end) = explode('-', $rows);
288
                for ($row = $begin; $row <= $end; $row++) {
289
                    self::getPlaces($venue, $row, $venueSector, $strPlaces);
290
                }
291
            }
292
            if (substr_count($rows, '-') === 0) {
293
                self::getPlaces($venue, $rows, $venueSector, $strPlaces);
294
            }
295
        }
296
        return true;
297
    }
298
@@ 314-324 (lines=11) @@
311
            return;
312
        }
313
        $dataPlaces = explode(',', $strPlaces);
314
        foreach ($dataPlaces as $places) {
315
            if (substr_count($places, '-') === 1) {
316
                list($begin, $end) = explode('-', $places);
317
                for ($place = $begin; $place <= $end; $place++) {
318
                    self::getSeat($venue, $row, $venueSector, $place);
319
                }
320
            }
321
            if (substr_count($places, '-') === 0) {
322
                self::getSeat($venue, $row, $venueSector, $places);
323
            }
324
        }
325
    }
326
327
    /**