@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | if ($result === true) { |
| 21 | 21 | $result = []; |
| 22 | 22 | } |
| 23 | - if ( empty($fields['end']) |
|
| 23 | + if (empty($fields['end']) |
|
| 24 | 24 | && empty($fields['continuous'])) { |
| 25 | 25 | $result['end'] = midcom::get()->i18n->get_string('select either end date or continuous', 'org.openpsa.sales'); |
| 26 | 26 | } |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | public function validate_units(array $fields) |
| 34 | 34 | { |
| 35 | 35 | $result = []; |
| 36 | - if ( empty($fields['invoiceByActualUnits']) |
|
| 36 | + if (empty($fields['invoiceByActualUnits']) |
|
| 37 | 37 | && empty($fields['plannedUnits'])) { |
| 38 | 38 | $result['plannedUnits'] = midcom::get()->i18n->get_string('select either planned units or invoice by actual units', 'org.openpsa.sales'); |
| 39 | 39 | return $result; |
@@ -61,11 +61,11 @@ |
||
| 61 | 61 | $fields[$key] = $this->detect_schema($key, $value); |
| 62 | 62 | } |
| 63 | 63 | |
| 64 | - if ( !isset($this->config->_local[$key]) |
|
| 64 | + if (!isset($this->config->_local[$key]) |
|
| 65 | 65 | || $this->config->_local[$key] == $this->config->_global[$key]) { |
| 66 | 66 | // No local configuration setting, note to user that this is the global value |
| 67 | 67 | $fields[$key]['title'] = $schema->get_l10n()->get($fields[$key]['title']); |
| 68 | - $fields[$key]['title'] .= " <span class=\"global\">(" . midcom::get()->i18n->get_string('global value', 'midgard.admin.asgard') .")</span>"; |
|
| 68 | + $fields[$key]['title'] .= " <span class=\"global\">(" . midcom::get()->i18n->get_string('global value', 'midgard.admin.asgard') . ")</span>"; |
|
| 69 | 69 | } |
| 70 | 70 | } |
| 71 | 71 | |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | { |
| 59 | 59 | $result = $this->is_username_available($fields); |
| 60 | 60 | |
| 61 | - if ( $fields['password']['switch'] |
|
| 61 | + if ($fields['password']['switch'] |
|
| 62 | 62 | && !$this->get_accounthelper()->check_password_strength((string) $fields['password']['password'])) { |
| 63 | 63 | $result = ['password' => $this->l10n->get('password weak')]; |
| 64 | 64 | } |
@@ -162,10 +162,10 @@ discard block |
||
| 162 | 162 | $result = []; |
| 163 | 163 | |
| 164 | 164 | $accounthelper = $this->get_accounthelper(new midcom_db_person($fields["person"])); |
| 165 | - if (!$accounthelper->check_password_reuse($fields['new_password'])){ |
|
| 165 | + if (!$accounthelper->check_password_reuse($fields['new_password'])) { |
|
| 166 | 166 | $result['password'] = $this->l10n->get('password was already used'); |
| 167 | 167 | } |
| 168 | - if (!$accounthelper->check_password_strength($fields['new_password'])){ |
|
| 168 | + if (!$accounthelper->check_password_strength($fields['new_password'])) { |
|
| 169 | 169 | $result['password'] = $this->l10n->get('password weak'); |
| 170 | 170 | } |
| 171 | 171 | return $result ?: true; |