From 36b1b403259b00d3e4d81ffbbac89b5d3107b773 Mon Sep 17 00:00:00 2001 From: Tobias Reich Date: Sun, 24 Jan 2016 17:10:54 +0100 Subject: [PATCH] Added 'final' to access classes --- php/access/Admin.php | 2 +- php/access/Guest.php | 2 +- php/access/Installation.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/php/access/Admin.php b/php/access/Admin.php index 251328e..8d02c74 100644 --- a/php/access/Admin.php +++ b/php/access/Admin.php @@ -8,7 +8,7 @@ if (!defined('LYCHEE')) exit('Error: Direct access is not allowed!'); if (!defined('LYCHEE_ACCESS_ADMIN')) exit('Error: You are not allowed to access this area!'); -class Admin extends Access { +final class Admin extends Access { public function check($fn) { diff --git a/php/access/Guest.php b/php/access/Guest.php index 2cfab14..94d9e31 100644 --- a/php/access/Guest.php +++ b/php/access/Guest.php @@ -8,7 +8,7 @@ if (!defined('LYCHEE')) exit('Error: Direct access is not allowed!'); if (!defined('LYCHEE_ACCESS_GUEST')) exit('Error: You are not allowed to access this area!'); -class Guest extends Access { +final class Guest extends Access { public function check($fn) { diff --git a/php/access/Installation.php b/php/access/Installation.php index ef1b21f..67c8811 100644 --- a/php/access/Installation.php +++ b/php/access/Installation.php @@ -8,7 +8,7 @@ if (!defined('LYCHEE')) exit('Error: Direct access is not allowed!'); if (!defined('LYCHEE_ACCESS_INSTALLATION')) exit('Error: You are not allowed to access this area!'); -class Installation extends Access { +final class Installation extends Access { public function check($fn) {