Removed __clone

This commit is contained in:
Tobias Reich 2016-01-24 22:17:47 +01:00
parent 84c4a5b267
commit 2f70bfac41
2 changed files with 0 additions and 12 deletions

View File

@ -68,12 +68,6 @@ final class Database extends Module {
} }
private function __clone() {
# Magic method clone is empty to prevent duplication of connection
}
public static function connect($host = 'localhost', $user, $password) { public static function connect($host = 'localhost', $user, $password) {
# Open a new connection to the MySQL server # Open a new connection to the MySQL server

View File

@ -45,12 +45,6 @@ final class Plugins implements \SplSubject {
} }
private function __clone() {
# Magic method clone is empty to prevent duplication of plugins
}
public function attach(\SplObserver $observer) { public function attach(\SplObserver $observer) {
if (!isset($observer)) return false; if (!isset($observer)) return false;