INFRA-132 Function comment short description must end with a full stop
[civicrm-core.git] / CRM / ACL / Form / WordPress / Permissions.php
index 230d215e0827f05750c63ab7c02194ae357c16b0..1523533f44c2cb6acc655405ec113ecfc5110ebb 100644 (file)
@@ -1,5 +1,4 @@
 <?php
-
 /*
   +--------------------------------------------------------------------+
   | CiviCRM version 4.6                                                |
@@ -24,7 +23,7 @@
   | GNU Affero General Public License or the licensing of CiviCRM,     |
   | see the CiviCRM license FAQ at http://civicrm.org/licensing        |
   +--------------------------------------------------------------------+
-*/
+ */
 
 /**
  *
@@ -40,7 +39,7 @@
 class CRM_ACL_Form_WordPress_Permissions extends CRM_Core_Form {
 
   /**
-   * Build the form object
+   * Build the form object.
    *
    * @return void
    */
@@ -88,17 +87,18 @@ class CRM_ACL_Form_WordPress_Permissions extends CRM_Core_Form {
     $this->addButtons(
       array(
         array(
-          'type'      => 'next',
-          'name'      => ts('Save'),
-          'spacing'   => '',
-          'isDefault' => FALSE  ),
+          'type' => 'next',
+          'name' => ts('Save'),
+          'spacing' => '',
+          'isDefault' => FALSE,
+        ),
       )
     );
 
   }
 
   /**
-   * Process the form submission
+   * Process the form submission.
    *
    * @return void
    */
@@ -141,7 +141,10 @@ class CRM_ACL_Form_WordPress_Permissions extends CRM_Core_Form {
         }
         if (!empty($warningPermissionNames)) {
           CRM_Core_Session::setStatus(
-            ts('The %1 role was assigned one or more permissions that may prove dangerous for users of that role to have. Please reconsider assigning %2 to them.', array(1 => $wp_roles->role_names[$role], 2 => implode(', ', $warningPermissionNames))),
+            ts('The %1 role was assigned one or more permissions that may prove dangerous for users of that role to have. Please reconsider assigning %2 to them.', array(
+                1 => $wp_roles->role_names[$role],
+                2 => implode(', ', $warningPermissionNames),
+              )),
             ts('Unsafe Permission Settings')
           );
         }
@@ -186,4 +189,5 @@ class CRM_ACL_Form_WordPress_Permissions extends CRM_Core_Form {
 
     return $perms_array;
   }
+
 }