@@ -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 | } |