| @@ 35-49 (lines=15) @@ | ||
| 32 | } |
|
| 33 | } |
|
| 34 | ||
| 35 | if (isset($transformations['query'])) { |
|
| 36 | foreach ($transformations['query'] as $key => $enumClass) { |
|
| 37 | if (! $this->query->has($key)) { |
|
| 38 | continue; |
|
| 39 | } |
|
| 40 | ||
| 41 | $this->query->set( |
|
| 42 | $key, |
|
| 43 | forward_static_call( |
|
| 44 | $enumClass.'::make', |
|
| 45 | $this->query->get($key) |
|
| 46 | ) |
|
| 47 | ); |
|
| 48 | } |
|
| 49 | } |
|
| 50 | ||
| 51 | if (isset($transformations['request'])) { |
|
| 52 | foreach ($transformations['request'] as $key => $enumClass) { |
|
| @@ 51-65 (lines=15) @@ | ||
| 48 | } |
|
| 49 | } |
|
| 50 | ||
| 51 | if (isset($transformations['request'])) { |
|
| 52 | foreach ($transformations['request'] as $key => $enumClass) { |
|
| 53 | if (! $this->request->has($key)) { |
|
| 54 | continue; |
|
| 55 | } |
|
| 56 | ||
| 57 | $this->request->set( |
|
| 58 | $key, |
|
| 59 | forward_static_call( |
|
| 60 | $enumClass.'::make', |
|
| 61 | $this->request->get($key) |
|
| 62 | ) |
|
| 63 | ); |
|
| 64 | } |
|
| 65 | } |
|
| 66 | }; |
|
| 67 | } |
|
| 68 | } |
|