Passed
Push — master ( 7328de...3ad1c9 )
by Andreas
37:49 queued 25:28
created
lib/midcom/core/account.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -192,7 +192,7 @@
 block discarded – undo
192 192
             return false;
193 193
         }
194 194
 
195
-        if (   !empty($this->_old_username)
195
+        if (!empty($this->_old_username)
196 196
             && $this->_old_username !== $new_username) {
197 197
             $history = @unserialize($this->_person->get_parameter('midcom', 'username_history')) ?: [];
198 198
             $history[time()] = ['old' => $this->_old_username, 'new' => $new_username];
Please login to merge, or discard this patch.
lib/midcom/services/auth/frontend/form.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
lib/org/openpsa/mail/exec/test-html.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
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>
Please login to merge, or discard this patch.
lib/org/openpsa/documents/style/show-directory-navigation.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
lib/org/openpsa/mail/exec/test.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
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>
Please login to merge, or discard this patch.
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.