phpcs correctly found these
Eileens-MacBook-Pro:civicrm eileenmcnaughton$ phpcs --standard=DrupalPractice CRM/ACL
FILE: /Users/eileenmcnaughton/buildkit/build/dmaster/sites/all/modules/civicrm/CRM/ACL/Form/WordPress/Permissions.php
---------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------
197 | WARNING | Unused global variable .
---------------------------------------------------------------------------------------------------------------------
FILE: /Users/eileenmcnaughton/buildkit/build/dmaster/sites/all/modules/civicrm/CRM/ACL/Form/ACL.php
---------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------
97 | WARNING | Unused variable .
---------------------------------------------------------------------------------------------------
FILE: /Users/eileenmcnaughton/buildkit/build/dmaster/sites/all/modules/civicrm/CRM/ACL/BAO/ACL.php
--------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
--------------------------------------------------------------------------------------------------
171 | WARNING | Unused variable .
172 | WARNING | Unused variable .
296 | WARNING | Unused variable .
--------------------------------------------------------------------------------------------------
$acl = self::getTableName();
$contact = CRM_Contact_BAO_Contact::getTableName();
- $c2g = CRM_Contact_BAO_GroupContact::getTableName();
- $group = CRM_Contact_BAO_Group::getTableName();
$query = " SELECT acl.*
FROM $acl acl";
$aclER = CRM_ACL_DAO_EntityRole::getTableName();
$c2g = CRM_Contact_BAO_GroupContact::getTableName();
- $group = CRM_Contact_BAO_Group::getTableName();
$query = " SELECT acl.*
FROM $acl acl
return;
}
- $attributes = CRM_Core_DAO::getAttribute('CRM_ACL_DAO_ACL');
-
$this->add('text', 'name', ts('Description'), CRM_Core_DAO::getAttribute('CRM_ACL_DAO_ACL', 'name'), TRUE);
$operations = ['' => ts('- select -')] + CRM_ACL_BAO_ACL::operation();
* civicrm permissions
*/
public static function getPermissionArray($descriptions = FALSE) {
- global $civicrm_root;
$permissions = CRM_Core_Permission::basicPermissions(FALSE, $descriptions);