We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| 1 | <?php |
||
| 24 | class Controller extends ModuleEngine |
||
| 25 | { |
||
| 26 | /** |
||
| 27 | * @var AccountRepository |
||
| 28 | */ |
||
| 29 | private $accounts; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @var RoleRepository |
||
| 33 | */ |
||
| 34 | private $roles; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * This is the dashboard controller, this should be used |
||
| 38 | * whenever any class is going to show the dashboard to |
||
| 39 | * the user. |
||
| 40 | * |
||
| 41 | * DashboardController constructor. |
||
| 42 | * @param AccountRepository $accounts |
||
| 43 | * @param RoleRepository $roles |
||
| 44 | */ |
||
| 45 | public function __construct(AccountRepository $accounts, RoleRepository $roles) |
||
| 51 | |||
| 52 | /** |
||
| 53 | * Return all the accounts viable. |
||
| 54 | */ |
||
| 55 | public function index() |
||
| 59 | |||
| 60 | /** |
||
| 61 | * Form to create a new account. |
||
| 62 | * |
||
| 63 | * @param RoleRepository $roleRepository |
||
| 64 | * @return Controller|View |
||
| 65 | */ |
||
| 66 | public function create(RoleRepository $roleRepository) |
||
| 70 | |||
| 71 | /** |
||
| 72 | * Store a new account to the database. |
||
| 73 | * |
||
| 74 | * @param Request $request |
||
| 75 | * @param Account $account |
||
| 76 | * @return \Illuminate\Http\RedirectResponse |
||
| 77 | */ |
||
| 78 | public function store(Request $request, Account $account) |
||
| 90 | } |
||
| 91 |
Overly long lines are hard to read on any screen. Most code styles therefor impose a maximum limit on the number of characters in a line.