Commit 5d797086 authored by Christian Wach's avatar Christian Wach

Add editor config file

parent ccb7ccdc
# EditorConfig is awesome: https://editorconfig.org
# top-most EditorConfig file
root = true
# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
# Tab indentation
[*.php]
indent_style = tab
......@@ -194,8 +194,8 @@ class CiviCRM_Permissions_Sync {
*/
public function capabilities_anon() {
// Fetch roles object.
$wp_roles = wp_roles();
// Fetch roles object.
$wp_roles = wp_roles();
// Bail if the anonymous_user role does not exist.
if ( ! $wp_roles->is_role( 'anonymous_user' ) ) {
......@@ -281,8 +281,8 @@ class CiviCRM_Permissions_Sync {
*/
public function role_get() {
// Fetch roles object.
$wp_roles = wp_roles();
// Fetch roles object.
$wp_roles = wp_roles();
// If the custom role already exists.
if ( $wp_roles->is_role( $this->custom_role_name ) ) {
......@@ -310,7 +310,7 @@ class CiviCRM_Permissions_Sync {
}
// If void then log something.
if ( empty( $custom_role ) ) {
if ( empty( $custom_role ) ) {
// Construct a message.
$message = sprintf(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment