@@ -46,7 +46,7 @@ |
||
| 46 | 46 | } |
| 47 | 47 | } |
| 48 | 48 | |
| 49 | - if ( !$request->request->has('midcom_services_auth_frontend_form_submit') |
|
| 49 | + if (!$request->request->has('midcom_services_auth_frontend_form_submit') |
|
| 50 | 50 | || !$request->request->has('username') |
| 51 | 51 | || !$request->request->has('password')) { |
| 52 | 52 | return null; |
@@ -4,7 +4,7 @@ |
||
| 4 | 4 | midcom::get()->auth->require_admin_user(); |
| 5 | 5 | $post = Request::createFromGlobals()->request; |
| 6 | 6 | |
| 7 | -if ( !$post->get('to') |
|
| 7 | +if (!$post->get('to') |
|
| 8 | 8 | || !$post->get('from')) { |
| 9 | 9 | ?> |
| 10 | 10 | <h2>Send test email</h2> |
@@ -1,9 +1,9 @@ |
||
| 1 | 1 | <div class="area org_openpsa_helper_box"> |
| 2 | -<h3><?php echo $data['l10n']->get('folders');?></h3> |
|
| 2 | +<h3><?php echo $data['l10n']->get('folders'); ?></h3> |
|
| 3 | 3 | <?php |
| 4 | 4 | $nap = new midcom_helper_nav(); |
| 5 | 5 | $current_node = $nap->get_node($nap->get_current_node()); |
| 6 | 6 | $url = $current_node[MIDCOM_NAV_RELATIVEURL]; |
| 7 | -midcom::get()->dynamic_load($url. "directory/navigation/"); |
|
| 7 | +midcom::get()->dynamic_load($url . "directory/navigation/"); |
|
| 8 | 8 | ?> |
| 9 | 9 | </div> |
| 10 | 10 | \ No newline at end of file |
@@ -4,7 +4,7 @@ |
||
| 4 | 4 | midcom::get()->auth->require_admin_user(); |
| 5 | 5 | $post = Request::createFromGlobals()->request; |
| 6 | 6 | |
| 7 | -if ( !$post->get('to') |
|
| 7 | +if (!$post->get('to') |
|
| 8 | 8 | || !$post->get('from')) { |
| 9 | 9 | ?> |
| 10 | 10 | <h2>Send test email</h2> |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | { |
| 63 | 63 | $entries = array_merge($this->get_status_entries(), $this->get_journal_entries()); |
| 64 | 64 | |
| 65 | - usort($entries, function (array $a, array $b) { |
|
| 65 | + usort($entries, function(array $a, array $b) { |
|
| 66 | 66 | if ($a['timestamp'] == $b['timestamp']) { |
| 67 | 67 | return $b['order'] <=> $a['order']; |
| 68 | 68 | } |
@@ -92,8 +92,8 @@ discard block |
||
| 92 | 92 | 'order' => 3 |
| 93 | 93 | ]; |
| 94 | 94 | } |
| 95 | - if ( $this->invoice->due |
|
| 96 | - && ( ( $this->invoice->due < time() |
|
| 95 | + if ($this->invoice->due |
|
| 96 | + && (($this->invoice->due < time() |
|
| 97 | 97 | && $this->invoice->paid == 0) |
| 98 | 98 | || $this->invoice->due < $this->invoice->paid)) { |
| 99 | 99 | $entries[] = [ |
@@ -154,7 +154,7 @@ |
||
| 154 | 154 | $address = addslashes($address); |
| 155 | 155 | return preg_replace_callback( |
| 156 | 156 | '/href="(http:\/\/.*?)"/i', |
| 157 | - function (array $match) use ($address) { |
|
| 157 | + function(array $match) use ($address) { |
|
| 158 | 158 | return 'href="' . str_replace("URL", rawurlencode($match[1]), $address) . '"'; |
| 159 | 159 | }, |
| 160 | 160 | $html); |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | $prefix = $nap->get_node($this->_topic->id)[MIDCOM_NAV_ABSOLUTEURL]; |
| 28 | 28 | |
| 29 | 29 | $tree = new org_openpsa_widgets_tree(org_openpsa_contacts_group_dba::class, 'owner'); |
| 30 | - $tree->link_callback = function (string $guid) use ($prefix) { |
|
| 30 | + $tree->link_callback = function(string $guid) use ($prefix) { |
|
| 31 | 31 | return $prefix . 'group/' . $guid . '/'; |
| 32 | 32 | }; |
| 33 | 33 | $tree->constraints[] = ['orgOpenpsaObtype', '<', org_openpsa_contacts_group_dba::ORGANIZATION]; |
@@ -139,7 +139,7 @@ |
||
| 139 | 139 | protected function save_attachment_list() : bool |
| 140 | 140 | { |
| 141 | 141 | if (!empty($this->config['widget_config']['sortable'])) { |
| 142 | - uasort($this->map, function (midcom_db_attachment $a, midcom_db_attachment $b) { |
|
| 142 | + uasort($this->map, function(midcom_db_attachment $a, midcom_db_attachment $b) { |
|
| 143 | 143 | if ($a->metadata->score == $b->metadata->score) { |
| 144 | 144 | return strnatcasecmp($a->name, $b->name); |
| 145 | 145 | } |
@@ -109,7 +109,7 @@ |
||
| 109 | 109 | $attachment->update(); |
| 110 | 110 | } else { |
| 111 | 111 | $attachment = $this->invoice->create_attachment($filename, $this->invoice->get_label(), "application/pdf"); |
| 112 | - if ( !$attachment |
|
| 112 | + if (!$attachment |
|
| 113 | 113 | || !$this->invoice->set_parameter("midcom.helper.datamanager2.type.blobs", $name, $attachment->guid . ":" . $attachment->guid)) { |
| 114 | 114 | throw new midcom_error("Failed to create invoice attachment for pdf: " . midcom_connection::get_error_string()); |
| 115 | 115 | } |