Passed
Push — master ( e2040d...f4498c )
by Andreas
10:28
created
lib/org/openpsa/user/handler/person/account.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
         $workflow = $this->get_workflow('datamanager', ['controller' => $data['controller']]);
45 45
         $response = $workflow->run($request);
46 46
 
47
-        if (   $workflow->get_state() == 'save'
47
+        if ($workflow->get_state() == 'save'
48 48
             && $this->create_account($this->person, $data["controller"]->get_form_values())) {
49 49
             midcom::get()->uimessages->add($this->_l10n->get('org.openpsa.user'), sprintf($this->_l10n->get('person %s created'), $this->person->name));
50 50
         }
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
         $person = new midcom_db_person($guid);
78 78
         $accounthelper = new org_openpsa_user_accounthelper($person);
79 79
         if ($accounthelper->welcome_email()) {
80
-            midcom::get()->uimessages->add($this->_l10n->get($this->_component), sprintf($this->_l10n->get('password reset and mail to %s sent'), $person->email ));
80
+            midcom::get()->uimessages->add($this->_l10n->get($this->_component), sprintf($this->_l10n->get('password reset and mail to %s sent'), $person->email));
81 81
         } else {
82 82
             midcom::get()->uimessages->add($this->_l10n->get($this->_component), $accounthelper->errstr, 'error');
83 83
         }
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
         $accounthelper = new org_openpsa_user_accounthelper($this->person);
134 134
 
135 135
         // Update account
136
-        if (   !$accounthelper->set_account($controller->get_form_values()["username"], $password)
136
+        if (!$accounthelper->set_account($controller->get_form_values()["username"], $password)
137 137
             && midcom_connection::get_error() != MGD_ERR_OK) {
138 138
             // Failure, give a message
139 139
             midcom::get()->uimessages->add($this->_l10n->get('org.openpsa.user'), $this->_l10n->get("failed to update the user account, reason") . ': ' . midcom_connection::get_error_string(), 'error');
Please login to merge, or discard this patch.