| Conditions | 3 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | public function __invoke() |
||
| 25 | { |
||
| 26 | if ($this->hasAuthenticatedUser() && $this->getAcl()->isUserAllowed($this->getAuthenticatedUser(), 'City', 'edit')) { |
||
| 27 | $this->doActions(); |
||
| 28 | $this->addNotices(); |
||
| 29 | $view = $this->viewFactory->forgeView('edit-cities', [ |
||
| 30 | 'cities' => $this->getQueriedCities(), |
||
| 31 | 'pagination.total' => $this->getPagesTotal(), |
||
| 32 | 'pagination.current' => $this->getCurrentPage(), |
||
| 33 | ]); |
||
| 34 | } else { |
||
| 35 | $view = $this->viewFactory->forgeView('error-403'); |
||
| 36 | } |
||
| 37 | $view(); |
||
| 38 | } |
||
| 60 |