From 1a6630be6d0934a8349b9e93802a700e0c0e438a Mon Sep 17 00:00:00 2001 From: Herb vd Dool Date: Mon, 16 Oct 2017 17:27:57 -0400 Subject: [PATCH] CRM-21272: add visibility to methods --- CRM/Utils/System/Backdrop.php | 2 +- CRM/Utils/System/Base.php | 2 +- CRM/Utils/System/Drupal8.php | 2 +- CRM/Utils/System/DrupalBase.php | 3 ++- CRM/Utils/System/Joomla.php | 2 +- CRM/Utils/System/WordPress.php | 2 +- 6 files changed, 7 insertions(+), 6 deletions(-) diff --git a/CRM/Utils/System/Backdrop.php b/CRM/Utils/System/Backdrop.php index 42eaf58ae3..3b96bfbd02 100644 --- a/CRM/Utils/System/Backdrop.php +++ b/CRM/Utils/System/Backdrop.php @@ -425,7 +425,7 @@ AND u.status = 1 /** * @inheritDoc */ - function isPasswordUserGenerated() { + public function isPasswordUserGenerated() { if (config_get('system.core', 'user_email_verification') == TRUE) { return FALSE; } diff --git a/CRM/Utils/System/Base.php b/CRM/Utils/System/Base.php index 3bc5758c3a..d3f8f060d0 100644 --- a/CRM/Utils/System/Base.php +++ b/CRM/Utils/System/Base.php @@ -409,7 +409,7 @@ abstract class CRM_Utils_System_Base { * * @return bool */ - function isPasswordUserGenerated() { + public function isPasswordUserGenerated() { return FALSE; } diff --git a/CRM/Utils/System/Drupal8.php b/CRM/Utils/System/Drupal8.php index 6e0f7ac43a..b4b725ef3e 100644 --- a/CRM/Utils/System/Drupal8.php +++ b/CRM/Utils/System/Drupal8.php @@ -539,7 +539,7 @@ class CRM_Utils_System_Drupal8 extends CRM_Utils_System_DrupalBase { /** * @inheritDoc */ - function isPasswordUserGenerated() { + public function isPasswordUserGenerated() { if (\Drupal::config('user.settings')->get('verify_mail') == TRUE) { return FALSE; } diff --git a/CRM/Utils/System/DrupalBase.php b/CRM/Utils/System/DrupalBase.php index 2a191db72b..b54b6761ab 100644 --- a/CRM/Utils/System/DrupalBase.php +++ b/CRM/Utils/System/DrupalBase.php @@ -427,7 +427,7 @@ abstract class CRM_Utils_System_DrupalBase extends CRM_Utils_System_Base { /** * @inheritDoc */ - function isPasswordUserGenerated() { + public function isPasswordUserGenerated() { if (variable_get('user_email_verification', TRUE)) { return FALSE; } @@ -663,4 +663,5 @@ abstract class CRM_Utils_System_DrupalBase extends CRM_Utils_System_Base { } } } + } diff --git a/CRM/Utils/System/Joomla.php b/CRM/Utils/System/Joomla.php index 29b1b0e02a..d468748414 100644 --- a/CRM/Utils/System/Joomla.php +++ b/CRM/Utils/System/Joomla.php @@ -592,7 +592,7 @@ class CRM_Utils_System_Joomla extends CRM_Utils_System_Base { /** * @inheritDoc */ - function isPasswordUserGenerated() { + public function isPasswordUserGenerated() { return TRUE; } diff --git a/CRM/Utils/System/WordPress.php b/CRM/Utils/System/WordPress.php index 8bfd797e9c..c347c8c61a 100644 --- a/CRM/Utils/System/WordPress.php +++ b/CRM/Utils/System/WordPress.php @@ -622,7 +622,7 @@ class CRM_Utils_System_WordPress extends CRM_Utils_System_Base { /** * @inheritDoc */ - function isPasswordUserGenerated() { + public function isPasswordUserGenerated() { return TRUE; } -- 2.25.1