| Conditions | 5 |
| Paths | 10 |
| Total Lines | 18 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 40 | public function getScope() |
||
| 41 | { |
||
| 42 | $scope = $this->request->request->get('scope', false); |
||
| 43 | |||
| 44 | if (!$scope) { |
||
| 45 | $scope = $this->request->query->get('scope', false); |
||
| 46 | } |
||
| 47 | |||
| 48 | if (!$scope) { |
||
| 49 | if (!$this->form) { |
||
| 50 | return null; |
||
| 51 | } |
||
| 52 | $form = $this->form->getName(); |
||
| 53 | $scope = $this->request->request->get("{$form}[scope]", false, true); |
||
| 54 | } |
||
| 55 | |||
| 56 | return !is_array($scope) ? explode(' ', $scope) : $scope; |
||
| 57 | } |
||
| 58 | } |
||
| 59 |