| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | function authResoruce($uri, $controller) |
||
| 27 | { |
||
| 28 | $this->app->post($uri.'/register', $controller.'@register'); |
||
| 29 | $this->app->post($uri.'/login', $controller.'@login'); |
||
| 30 | $this->app->post($uri.'/logout', $controller.'@logout'); |
||
| 31 | $this->app->post($uri.'/refresh', $controller.'@refresh'); |
||
| 32 | $this->app->post($uri.'/me', $controller.'@me'); |
||
| 33 | |||
| 37 |
Adding explicit visibility (
private,protected, orpublic) is generally recommend to communicate to other developers how, and from where this method is intended to be used.