Passed
Push — master ( bc24ea...ec5c87 )
by Andreas
26:16
created
lib/org/openpsa/invoices/status.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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[] = [
Please login to merge, or discard this patch.
lib/org/openpsa/directmarketing/sender/backend/email.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -154,7 +154,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
lib/org/openpsa/contacts/handler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
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];
Please login to merge, or discard this patch.
src/midcom/datamanager/storage/blobs.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -139,7 +139,7 @@
 block discarded – undo
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
                 }
Please login to merge, or discard this patch.