| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | 11 | protected function handleRequestStack() |
|
| 32 | { |
||
| 33 | 11 | $currentRequest = $this->requestStack->getCurrentRequest(); |
|
| 34 | |||
| 35 | 11 | if ($currentRequest) { |
|
| 36 | $requestData = array( |
||
| 37 | 11 | 'locale' => $currentRequest->getLocale(), |
|
| 38 | 11 | ); |
|
| 39 | |||
| 40 | 11 | $this->set('request', $requestData); |
|
| 41 | 11 | } |
|
| 42 | 11 | } |
|
| 43 | |||
| 56 |