Restyled by php-cs-fixer

This commit is contained in:
Restyled.io 2024-06-11 17:00:30 +00:00
commit 711ac93cb9
17 changed files with 74 additions and 47 deletions

View file

@ -11,7 +11,7 @@ class HomeController extends Controller
* Returns age based on birthday date and current date (GMT)
* @return int
*/
function returnAge(): int
public function returnAge(): int
{
date_default_timezone_set('Europe/London');
$birthday = new DateTime("2005-06-07");
@ -24,7 +24,8 @@ function returnAge(): int
* Shows home page
* @return View
*/
public function show() : View {
public function show(): View
{
return view('home', [
'age' => $this->returnAge()
]);