@@ 202-212 (lines=11) @@ | ||
199 | private function getRows(Venue $venue, $strRows, VenueSector $venueSector, $strPlaces) |
|
200 | { |
|
201 | $dataRows = explode(',', $strRows); |
|
202 | foreach ($dataRows as $rows) { |
|
203 | if (substr_count($rows, '-') === 1) { |
|
204 | list($begin, $end) = explode('-', $rows); |
|
205 | for ($row = $begin; $row <= $end; $row++) { |
|
206 | self::getPlaces($venue, $row, $venueSector, $strPlaces); |
|
207 | } |
|
208 | } |
|
209 | if (substr_count($rows, '-') === 0) { |
|
210 | self::getPlaces($venue, $rows, $venueSector, $strPlaces); |
|
211 | } |
|
212 | } |
|
213 | } |
|
214 | ||
215 | /** |
|
@@ 230-240 (lines=11) @@ | ||
227 | return; |
|
228 | } |
|
229 | $dataPlaces = explode(',', $strPlaces); |
|
230 | foreach ($dataPlaces as $places) { |
|
231 | if (substr_count($places, '-') === 1) { |
|
232 | list($begin, $end) = explode('-', $places); |
|
233 | for ($place = $begin; $place <= $end; $place++) { |
|
234 | self::getSeat($venue, $row, $venueSector, $place); |
|
235 | } |
|
236 | } |
|
237 | if (substr_count($places, '-') === 0) { |
|
238 | self::getSeat($venue, $row, $venueSector, $places); |
|
239 | } |
|
240 | } |
|
241 | } |
|
242 | ||
243 | /** |