Skip to content

Commit

Permalink
Merge pull request #14296 from eileenmcnaughton/bool
Browse files Browse the repository at this point in the history
[NFC] fix docblock types from boolean to bool
  • Loading branch information
colemanw authored May 23, 2019
2 parents 7371b19 + b67daa7 commit 1f94fbf
Show file tree
Hide file tree
Showing 38 changed files with 69 additions and 65 deletions.
2 changes: 1 addition & 1 deletion CRM/Admin/Page/Options.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class CRM_Admin_Page_Options extends CRM_Core_Page_Basic {
/**
* A boolean determining if you can add options to this group in the GUI.
*
* @var boolean
* @var bool
*/
public static $_isLocked = FALSE;

Expand Down
6 changes: 3 additions & 3 deletions CRM/Case/Form/Search.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,20 +46,20 @@ class CRM_Case_Form_Search extends CRM_Core_Form_Search {
/**
* Are we restricting ourselves to a single contact
*
* @var boolean
* @var bool
*/
protected $_single = FALSE;

/**
* Are we restricting ourselves to a single contact
*
* @var boolean
* @var bool
*/
protected $_limit = NULL;

/**
* Prefix for the controller
* @var sting
* @var string
*/
protected $_prefix = 'case_';

Expand Down
4 changes: 2 additions & 2 deletions CRM/Case/Form/Task/Delete.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@ class CRM_Case_Form_Task_Delete extends CRM_Case_Form_Task {
* Are we operating in "single mode", i.e. deleting one
* specific case?
*
* @var boolean
* @var bool
*/
protected $_single = FALSE;

/**
* Are we moving case to Trash.
*
* @var boolean
* @var bool
*/
public $_moveToTrash = TRUE;

Expand Down
2 changes: 1 addition & 1 deletion CRM/Case/Form/Task/Restore.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class CRM_Case_Form_Task_Restore extends CRM_Case_Form_Task {
* Are we operating in "single mode", i.e. deleting one
* specific case?
*
* @var boolean
* @var bool
*/
protected $_single = FALSE;

Expand Down
4 changes: 2 additions & 2 deletions CRM/Case/Selector/Search.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,14 @@ class CRM_Case_Selector_Search extends CRM_Core_Selector_Base {
/**
* Are we restricting ourselves to a single contact
*
* @var boolean
* @var bool
*/
protected $_single = FALSE;

/**
* Are we restricting ourselves to a single contact
*
* @var boolean
* @var bool
*/
protected $_limit = NULL;

Expand Down
2 changes: 1 addition & 1 deletion CRM/Case/XMLProcessor/Report.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class CRM_Case_XMLProcessor_Report extends CRM_Case_XMLProcessor {
/**
* The default variable defined.
*
* @var boolean
* @var bool
*/
protected $_isRedact;

Expand Down
21 changes: 11 additions & 10 deletions CRM/Contact/BAO/Query.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,28 +213,28 @@ class CRM_Contact_BAO_Query {
/**
* Are we in search mode.
*
* @var boolean
* @var bool
*/
public $_search = TRUE;

/**
* Should we skip permission checking.
*
* @var boolean
* @var bool
*/
public $_skipPermission = FALSE;

/**
* Should we skip adding of delete clause.
*
* @var boolean
* @var bool
*/
public $_skipDeleteClause = FALSE;

/**
* Are we in strict mode (use equality over LIKE)
*
* @var boolean
* @var bool
*/
public $_strict = FALSE;

Expand All @@ -250,21 +250,21 @@ class CRM_Contact_BAO_Query {
/**
* Should we only search on primary location.
*
* @var boolean
* @var bool
*/
public $_primaryLocation = TRUE;

/**
* Are contact ids part of the query.
*
* @var boolean
* @var bool
*/
public $_includeContactIds = FALSE;

/**
* Should we use the smart group cache.
*
* @var boolean
* @var bool
*/
public $_smartGroupCache = TRUE;

Expand All @@ -286,7 +286,7 @@ class CRM_Contact_BAO_Query {
* Should we enable the distinct clause, used if we are including
* more than one group
*
* @var boolean
* @var bool
*/
public $_useDistinct = FALSE;

Expand Down Expand Up @@ -402,8 +402,9 @@ class CRM_Contact_BAO_Query {
*/
protected $_rangeCache = [];
/**
* Set to true when $this->relationship is run to avoid adding twice
* @var Boolean
* Set to true when $this->relationship is run to avoid adding twice.
*
* @var bool
*/
protected $_relationshipValuesAdded = FALSE;

Expand Down
2 changes: 1 addition & 1 deletion CRM/Contribute/Form/AbstractEditPayment.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ class CRM_Contribute_Form_AbstractEditPayment extends CRM_Contact_Form_Task {
* Is this contribution associated with an online
* financial transaction
*
* @var boolean
* @var bool
*/
public $_online = FALSE;

Expand Down
2 changes: 1 addition & 1 deletion CRM/Contribute/Form/Contribution.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class CRM_Contribute_Form_Contribution extends CRM_Contribute_Form_AbstractEditP
* Is this contribution associated with an online.
* financial transaction
*
* @var boolean
* @var bool
*/
public $_online = FALSE;

Expand Down
2 changes: 1 addition & 1 deletion CRM/Contribute/Form/ContributionBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ class CRM_Contribute_Form_ContributionBase extends CRM_Core_Form {

/**
* Contribution page supports memberships
* @var boolean
* @var bool
*/
public $_useForMember;

Expand Down
4 changes: 2 additions & 2 deletions CRM/Contribute/Form/Search.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ class CRM_Contribute_Form_Search extends CRM_Core_Form_Search {
/**
* Are we restricting ourselves to a single contact.
*
* @var boolean
* @var bool
*/
protected $_single = FALSE;

/**
* Are we restricting ourselves to a single contact.
*
* @var boolean
* @var bool
*/
protected $_limit = NULL;

Expand Down
2 changes: 1 addition & 1 deletion CRM/Contribute/Form/Task.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class CRM_Contribute_Form_Task extends CRM_Core_Form_Task {
/**
* The flag to tell if there are soft credits included.
*
* @var boolean
* @var bool
*/
public $_includesSoftCredits = FALSE;

Expand Down
2 changes: 1 addition & 1 deletion CRM/Contribute/Form/Task/Delete.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class CRM_Contribute_Form_Task_Delete extends CRM_Contribute_Form_Task {
* Are we operating in "single mode", i.e. deleting one
* specific contribution?
*
* @var boolean
* @var bool
*/
protected $_single = FALSE;

Expand Down
2 changes: 1 addition & 1 deletion CRM/Contribute/Form/Task/Email.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class CRM_Contribute_Form_Task_Email extends CRM_Contribute_Form_Task {
* Are we operating in "single mode", i.e. sending email to one
* specific contact?
*
* @var boolean
* @var bool
*/
public $_single = FALSE;

Expand Down
2 changes: 1 addition & 1 deletion CRM/Contribute/Form/Task/Invoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class CRM_Contribute_Form_Task_Invoice extends CRM_Contribute_Form_Task {
* Are we operating in "single mode", i.e. updating the task of only
* one specific contribution?
*
* @var boolean
* @var bool
*/
public $_single = FALSE;

Expand Down
2 changes: 1 addition & 1 deletion CRM/Contribute/Form/Task/PDF.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class CRM_Contribute_Form_Task_PDF extends CRM_Contribute_Form_Task {
* Are we operating in "single mode", i.e. updating the task of only
* one specific contribution?
*
* @var boolean
* @var bool
*/
public $_single = FALSE;

Expand Down
2 changes: 1 addition & 1 deletion CRM/Contribute/Form/Task/Status.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class CRM_Contribute_Form_Task_Status extends CRM_Contribute_Form_Task {
* Are we operating in "single mode", i.e. updating the task of only
* one specific contribution?
*
* @var boolean
* @var bool
*/
public $_single = FALSE;

Expand Down
5 changes: 3 additions & 2 deletions CRM/Contribute/Import/Field.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,9 @@ class CRM_Contribute_Import_Field {
public $_type;

/**
* Is this field required
* @var boolean
* Is this field required.
*
* @var bool
*/
public $_required;

Expand Down
2 changes: 1 addition & 1 deletion CRM/Contribute/Import/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ abstract class CRM_Contribute_Import_Parser extends CRM_Import_Parser {
/**
* Whether the file has a column header or not
*
* @var boolean
* @var bool
*/
protected $_haveColumnHeader;

Expand Down
4 changes: 2 additions & 2 deletions CRM/Contribute/Selector/Search.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,14 @@ class CRM_Contribute_Selector_Search extends CRM_Core_Selector_Base implements C
/**
* Are we restricting ourselves to a single contact
*
* @var boolean
* @var bool
*/
protected $_single = FALSE;

/**
* Are we restricting ourselves to a single contact
*
* @var boolean
* @var bool
*/
protected $_limit = NULL;

Expand Down
2 changes: 1 addition & 1 deletion CRM/Core/Form/Search.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class CRM_Core_Form_Search extends CRM_Core_Form {
/**
* Have we already done this search
*
* @var boolean
* @var bool
*/
protected $_done;

Expand Down
4 changes: 2 additions & 2 deletions CRM/Core/Page.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,15 @@ class CRM_Core_Page {
* so the display routine needs to not do any work. (The
* parent object takes care of the display)
*
* @var boolean
* @var bool
*/
protected $_embedded = FALSE;

/**
* Are we in print mode? if so we need to modify the display
* functionality to do a minimal display :)
*
* @var boolean
* @var bool
*/
protected $_print = FALSE;

Expand Down
5 changes: 3 additions & 2 deletions CRM/Core/Permission/Backdrop.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,15 @@ class CRM_Core_Permission_Backdrop extends CRM_Core_Permission_DrupalBase {
/**
* Is this user someone with access for the entire system.
*
* @var boolean
* @var bool
*/
protected $_viewAdminUser = FALSE;
protected $_editAdminUser = FALSE;

/**
* Am in in view permission or edit permission?
* @var boolean
*
* @var bool
*/
protected $_viewPermission = FALSE;
protected $_editPermission = FALSE;
Expand Down
4 changes: 2 additions & 2 deletions CRM/Core/Permission/Drupal.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ class CRM_Core_Permission_Drupal extends CRM_Core_Permission_DrupalBase {
/**
* Is this user someone with access for the entire system.
*
* @var boolean
* @var bool
*/
protected $_viewAdminUser = FALSE;
protected $_editAdminUser = FALSE;

/**
* Am in in view permission or edit permission?
* @var boolean
* @var bool
*/
protected $_viewPermission = FALSE;
protected $_editPermission = FALSE;
Expand Down
4 changes: 2 additions & 2 deletions CRM/Core/Permission/Drupal6.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ class CRM_Core_Permission_Drupal6 extends CRM_Core_Permission_DrupalBase {
/**
* Is this user someone with access for the entire system.
*
* @var boolean
* @var bool
*/
protected $_viewAdminUser = FALSE;
protected $_editAdminUser = FALSE;

/**
* Am in in view permission or edit permission?
* @var boolean
* @var bool
*/
protected $_viewPermission = FALSE;
protected $_editPermission = FALSE;
Expand Down
5 changes: 3 additions & 2 deletions CRM/Core/Permission/DrupalBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,15 @@ class CRM_Core_Permission_DrupalBase extends CRM_Core_Permission_Base {
/**
* Is this user someone with access for the entire system.
*
* @var boolean
* @var bool
*/
protected $_viewAdminUser = FALSE;
protected $_editAdminUser = FALSE;

/**
* Am in in view permission or edit permission?
* @var boolean
*
* @var bool
*/
protected $_viewPermission = FALSE;
protected $_editPermission = FALSE;
Expand Down
Loading

0 comments on commit 1f94fbf

Please sign in to comment.