Passed
Push — master ( cf00ea...cda971 )
by Andreas
09:47
created
lib/net/nemein/wiki/resolver.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
             $localpath = $path;
151 151
             $matches['latest_parent'] = $folder_tree['/'];
152 152
             $missing_levels = 0;
153
-            while (   $localpath
153
+            while ($localpath
154 154
                    && $localpath != '/') {
155 155
                 $localpath = dirname($localpath);
156 156
                 $missing_levels++;
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
 
178 178
         $root_folder = $folder;
179 179
         $max = 100;
180
-        while (   $folder[MIDCOM_NAV_COMPONENT] == 'net.nemein.wiki'
180
+        while ($folder[MIDCOM_NAV_COMPONENT] == 'net.nemein.wiki'
181 181
                && (($parent = $folder[MIDCOM_NAV_NODEID]) != -1)
182 182
                && $max > 0) {
183 183
             $root_folder = $folder;
Please login to merge, or discard this patch.
lib/midcom/services/cache/module/nap.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
             // Get parent from DB and compare to catch moves
55 55
             if ($parent = $napobject[MIDCOM_NAV_OBJECT]->get_parent()) {
56 56
                 $parent_entry = $this->get_guid($parent->guid);
57
-                if (   $parent_entry
57
+                if ($parent_entry
58 58
                     && $parent_entry[MIDCOM_NAV_ID] != $cached_node_id) {
59 59
                     $this->backend->deleteItem($parent_entry[MIDCOM_NAV_ID] . '-leaves');
60 60
                 }
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
             $parent_id = $napobject[MIDCOM_NAV_NODEID];
70 70
             $parent_entry = $this->get_node($parent_id);
71 71
 
72
-            if (   $parent_entry
72
+            if ($parent_entry
73 73
                 && array_key_exists(MIDCOM_NAV_SUBNODES, $parent_entry)) {
74 74
                 unset($parent_entry[MIDCOM_NAV_SUBNODES]);
75 75
                 $this->put_node($parent_id, $parent_entry);
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
             if ($parent = $napobject[MIDCOM_NAV_OBJECT]->get_parent()) {
80 80
                 $parent_entry_from_object = $this->get_guid($parent->guid);
81 81
 
82
-                if (    !empty($parent_entry_from_object[MIDCOM_NAV_ID])
82
+                if (!empty($parent_entry_from_object[MIDCOM_NAV_ID])
83 83
                      && !empty($parent_entry[MIDCOM_NAV_ID])
84 84
                      && $parent_entry_from_object[MIDCOM_NAV_ID] != $parent_entry[MIDCOM_NAV_ID]) {
85 85
                     unset($parent_entry_from_object[MIDCOM_NAV_SUBNODES]);
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
             if ($object instanceof midcom_db_topic) {
104 104
                 return $nav->get_node($object->id);
105 105
             }
106
-            if (   ($node = $nav->find_closest_topic($object))
106
+            if (($node = $nav->find_closest_topic($object))
107 107
                 && $nodeobject = $nav->get_node($node->id)) {
108 108
                 return $nav->get_leaf($nodeobject[MIDCOM_NAV_ID] . '-' . $object->id);
109 109
             }
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -107,7 +107,8 @@
 block discarded – undo
107 107
                 && $nodeobject = $nav->get_node($node->id)) {
108 108
                 return $nav->get_leaf($nodeobject[MIDCOM_NAV_ID] . '-' . $object->id);
109 109
             }
110
-        } catch (midcom_error $e) {
110
+        }
111
+        catch (midcom_error $e) {
111 112
             $e->log();
112 113
         }
113 114
         return null;
Please login to merge, or discard this patch.
lib/org/openpsa/user/style/show-group.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <div class="content-with-sidebar">
2 2
     <div class="main">
3 3
 	    <?php
4
-	    $data['view']->display_view(true);
4
+        $data['view']->display_view(true);
5 5
         $prefix = midcom_core_context::get()->get_key(MIDCOM_CONTEXT_ANCHORPREFIX);
6 6
         midcom::get()->dynamic_load($prefix . 'members/' . $data['group']->guid . '/');
7 7
         ?>
Please login to merge, or discard this patch.
lib/org/openpsa/user/handler/group/privileges.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,9 +23,9 @@
 block discarded – undo
23 23
         $schemadb = schemadb::from_path($this->_config->get('schemadb_acl'));
24 24
 
25 25
         // Get the calendar root event
26
-        if (   class_exists('org_openpsa_calendar_interface')
26
+        if (class_exists('org_openpsa_calendar_interface')
27 27
             && $root_event = org_openpsa_calendar_interface::find_root_event()) {
28
-            $field =& $schemadb->get('default')->get_field('calendar');
28
+            $field = & $schemadb->get('default')->get_field('calendar');
29 29
             $field['type_config']['privilege_object'] = $root_event;
30 30
             $field['type_config']['assignee'] = 'group:' . $group->guid;
31 31
         }
Please login to merge, or discard this patch.
src/midcom/workflow/delete.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
             ])
88 88
             ->setRequired('object')
89 89
             ->setAllowedTypes('object', midcom_core_dbaobject::class)
90
-            ->setNormalizer('label', function ($options, $value) {
90
+            ->setNormalizer('label', function($options, $value) {
91 91
                 return $value ?? midcom_helper_reflector::get_object_title($options['object']);
92 92
             });
93 93
     }
Please login to merge, or discard this patch.
lib/org/openpsa/calendar/event/member.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
 
67 67
         $event ??= new org_openpsa_calendar_event_dba($this->eid);
68 68
 
69
-        if (    $recipient->id == midcom_connection::get_user()
69
+        if ($recipient->id == midcom_connection::get_user()
70 70
              && !$event->send_notify_me) {
71 71
             //Do not send notification to current user
72 72
             debug_add('event->send_notify_me is false and recipient is current user, aborting notify');
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
 
193 193
             if (isset($events_by_date[$ymd])) {
194 194
                 foreach ($events_by_date[$ymd] as $event) {
195
-                    if (   $event->end <= $workday_starts_ts
195
+                    if ($event->end <= $workday_starts_ts
196 196
                         || $event->start >= $workday_ends_ts) {
197 197
                         // We need not consider this event, it is outside the defined workday
198 198
                         continue;
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
                 }
211 211
             }
212 212
             // End of day slot
213
-            if (   $last_end_time < $workday_ends_ts
213
+            if ($last_end_time < $workday_ends_ts
214 214
                 && (($workday_ends_ts - $last_end_time) >= $amount)) {
215 215
                 $slots[] = self::_create_slot($last_end_time, $workday_ends_ts, $last_event);
216 216
             }
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -141,7 +141,8 @@
 block discarded – undo
141 141
                 debug_add('person #' . $person->id . 'has no email address, aborting');
142 142
                 return null;
143 143
             }
144
-        } catch (midcom_error) {
144
+        }
145
+        catch (midcom_error) {
145 146
             return null;
146 147
         }
147 148
 
Please login to merge, or discard this patch.
lib/midcom/core/nullcomponent/handler/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
         midcom::get()->metadata->set_request_metadata($this->_topic->metadata->revised, $this->_topic->guid);
25 25
         $data['node'] = $this->_topic;
26 26
 
27
-        if (   $this->_topic->id == midcom_core_context::get()->get_key(MIDCOM_CONTEXT_ROOTTOPIC)->id
27
+        if ($this->_topic->id == midcom_core_context::get()->get_key(MIDCOM_CONTEXT_ROOTTOPIC)->id
28 28
             && !midcom::get()->config->get('midcom_root_component')) {
29 29
             // if we have an ad hoc root topic, give user some options to do the initial setup
30 30
             return new midcom_response_relocate($this->router->generate('wizard'));
Please login to merge, or discard this patch.
src/midcom/httpkernel/subscriber.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
     public function on_request(RequestEvent $event)
65 65
     {
66 66
         $request = $event->getRequest();
67
-        if (   $event->isMainRequest()
67
+        if ($event->isMainRequest()
68 68
             && $response = $this->initialize($request)) {
69 69
             $event->setResponse($response);
70 70
             return;
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
         $i = array_search('__request_data__', $arguments, true);
99 99
         if ($i !== false) {
100 100
             $context = $event->getRequest()->attributes->get('context');
101
-            $arguments[$i] =& $context->get_custom_key('request_data');
101
+            $arguments[$i] = & $context->get_custom_key('request_data');
102 102
             $event->setArguments($arguments);
103 103
         }
104 104
     }
Please login to merge, or discard this patch.
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.