Restyled by php-cs-fixer
This commit is contained in:
parent
ba9fa0f12a
commit
711ac93cb9
17 changed files with 74 additions and 47 deletions
|
|
@ -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()
|
||||
]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue