Passed
Push — master ( da283d...1ab329 )
by Andreas
09:35
created
lib/fi/protie/navigation/main.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -202,8 +202,8 @@  discard block
 block discarded – undo
202 202
         $classes = [];
203 203
 
204 204
         if ($item[MIDCOM_NAV_TYPE] === 'node') {
205
-            if (   $item[MIDCOM_NAV_ID] === $this->_nap->get_current_node()
206
-                && (   !$this->_nap->get_current_leaf()
205
+            if ($item[MIDCOM_NAV_ID] === $this->_nap->get_current_node()
206
+                && (!$this->_nap->get_current_leaf()
207 207
                     || !$this->_nap->get_leaf($this->_nap->get_current_leaf()))) {
208 208
                 $classes[] = $this->css_active;
209 209
             }
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
         }
234 234
 
235 235
         // Add information about the object's status
236
-        if (   $this->object_status_to_class
236
+        if ($this->object_status_to_class
237 237
             && isset($item[MIDCOM_NAV_OBJECT])
238 238
             && $css_status_class = midcom::get()->metadata->get_object_classes($item[MIDCOM_NAV_OBJECT])) {
239 239
             $classes[] = $css_status_class;
@@ -253,11 +253,11 @@  discard block
 block discarded – undo
253 253
         echo "<a href=\"{$item[MIDCOM_NAV_ABSOLUTEURL]}\"{$link_class}>" . htmlspecialchars($item[MIDCOM_NAV_NAME]) . "</a>";
254 254
         // If either of the follow nodes switches is on, follow all the nodes
255 255
 
256
-        if (   $item[MIDCOM_NAV_TYPE] === 'node'
257
-            && (   $this->list_levels === 0
256
+        if ($item[MIDCOM_NAV_TYPE] === 'node'
257
+            && ($this->list_levels === 0
258 258
                 || $this->_level < $this->list_levels)) {
259
-            if (   $this->follow_all
260
-                || (   $this->follow_selected
259
+            if ($this->follow_all
260
+                || ($this->follow_selected
261 261
                     && in_array($item[MIDCOM_NAV_ID], $this->node_path, true))) {
262 262
                 $this->_level++;
263 263
                 $this->_list_child_elements($item[MIDCOM_NAV_ID]);
Please login to merge, or discard this patch.